From ed17b870ff8f9fbf07302a0d53c8d6a843ed0832 Mon Sep 17 00:00:00 2001 From: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com> Date: Mon, 27 May 2024 07:55:07 +0000 Subject: [PATCH] Move VMware to main --- .../VMware.Autorest/Az.VMware.format.ps1xml | 2066 +++-- src/VMware/VMware.Autorest/Az.VMware.psd1 | 2 +- src/VMware/VMware.Autorest/README.md | 28 +- .../UX/Microsoft.AVS/locations.json | 2 +- .../privateClouds-authorizations.json | 10 +- .../privateClouds-cloudLinks.json | 10 +- .../privateClouds-clusters-datastores.json | 10 +- ...vateClouds-clusters-placementPolicies.json | 10 +- ...rivateClouds-clusters-virtualMachines.json | 6 +- .../Microsoft.AVS/privateClouds-clusters.json | 10 +- .../privateClouds-globalReachConnections.json | 10 +- .../UX/Microsoft.AVS/privateClouds.json | 82 +- src/VMware/VMware.Autorest/build-module.ps1 | 14 +- .../custom/New-AzVMwareAddon.ps1 | 2 +- .../New-AzVMwareAddonSrmPropertiesObject.ps1 | 44 - .../New-AzVMwareAddonSrmPropertyObject.ps1 | 47 + .../New-AzVMwareAddonVrPropertiesObject.ps1 | 44 - .../New-AzVMwareAddonVrPropertyObject.ps1 | 47 + ...rePSCredentialExecutionParameterObject.ps1 | 95 +- .../custom/New-AzVMwarePrivateCloud.ps1 | 2 +- ...ptSecureStringExecutionParameterObject.ps1 | 87 +- ...reScriptStringExecutionParameterObject.ps1 | 87 +- .../New-AzVMwareIdentitySourceObject.ps1 | 102 - ...VMwareVMPlacementPolicyPropertyObject.ps1} | 15 +- ...reVmHostPlacementPolicyPropertyObject.ps1} | 29 +- .../examples/Get-AzVMwareIscsiPath.md | 23 + .../examples/New-AzVMwareAddon.md | 2 +- ... => New-AzVMwareAddonSrmPropertyObject.md} | 2 +- ...d => New-AzVMwareAddonVrPropertyObject.md} | 2 +- .../New-AzVMwareIdentitySourceObject.md | 18 - .../examples/New-AzVMwareIscsiPath.md | 22 + ...arePSCredentialExecutionParameterObject.md | 9 +- .../examples/New-AzVMwarePlacementPolicy.md | 4 +- ...iptSecureStringExecutionParameterObject.md | 10 +- ...areScriptStringExecutionParameterObject.md | 6 +- ...zVMwareVMPlacementPolicyPropertyObject.md} | 2 +- ...areVmHostPlacementPolicyPropertyObject.md} | 2 +- .../examples/Remove-AzVMwareIscsiPath.md | 13 + .../examples/Update-AzVMwareCloudLink.md | 2 +- .../examples/Update-AzVMwareDatastore.md | 2 +- .../examples/Update-AzVMwareIscsiPath.md | 21 + .../examples/Update-AzVMwarePrivateCloud.md | 4 +- .../exports/Get-AzVMwareAddon.ps1 | 45 +- .../exports/Get-AzVMwareAuthorization.ps1 | 97 +- .../exports/Get-AzVMwareCloudLink.ps1 | 97 +- .../exports/Get-AzVMwareCluster.ps1 | 97 +- .../exports/Get-AzVMwareClusterZone.ps1 | 3 +- .../exports/Get-AzVMwareDatastore.ps1 | 144 +- .../Get-AzVMwareGlobalReachConnection.ps1 | 97 +- .../exports/Get-AzVMwareIscsiPath.ps1 | 233 + .../exports/Get-AzVMwarePlacementPolicy.ps1 | 144 +- .../exports/Get-AzVMwarePrivateCloud.ps1 | 54 +- ...et-AzVMwarePrivateCloudAdminCredential.ps1 | 1 + .../exports/Get-AzVMwareVirtualMachine.ps1 | 144 +- .../exports/New-AzVMwareAddon.ps1 | 4 +- ...=> New-AzVMwareAddonSrmPropertyObject.ps1} | 14 +- ... => New-AzVMwareAddonVrPropertyObject.ps1} | 12 +- .../exports/New-AzVMwareAuthorization.ps1 | 105 +- .../exports/New-AzVMwareCloudLink.ps1 | 99 +- .../exports/New-AzVMwareCluster.ps1 | 135 +- .../exports/New-AzVMwareDatastore.ps1 | 152 +- .../New-AzVMwareGlobalReachConnection.ps1 | 105 +- .../New-AzVMwareIdentitySourceObject.ps1 | 172 - .../exports/New-AzVMwareIscsiPath.ps1 | 247 + ...rePSCredentialExecutionParameterObject.ps1 | 11 +- .../exports/New-AzVMwarePlacementPolicy.ps1 | 156 +- .../exports/New-AzVMwarePrivateCloud.ps1 | 6 +- .../New-AzVMwarePrivateCloudNsxtPassword.ps1 | 46 +- ...ew-AzVMwarePrivateCloudVcenterPassword.ps1 | 46 +- ...ptSecureStringExecutionParameterObject.ps1 | 11 +- ...reScriptStringExecutionParameterObject.ps1 | 6 +- ...VMwareVMPlacementPolicyPropertyObject.ps1} | 15 +- ...reVmHostPlacementPolicyPropertyObject.ps1} | 23 +- .../exports/ProxyCmdletDefinitions.ps1 | 4799 ++++++----- .../exports/Remove-AzVMwareAddon.ps1 | 45 +- .../exports/Remove-AzVMwareAuthorization.ps1 | 97 +- .../exports/Remove-AzVMwareCloudLink.ps1 | 97 +- .../exports/Remove-AzVMwareCluster.ps1 | 97 +- .../exports/Remove-AzVMwareDatastore.ps1 | 144 +- .../Remove-AzVMwareGlobalReachConnection.ps1 | 97 +- .../exports/Remove-AzVMwareIscsiPath.ps1 | 249 + .../Remove-AzVMwarePlacementPolicy.ps1 | 144 +- .../exports/Remove-AzVMwarePrivateCloud.ps1 | 45 +- ...Test-AzVMwareLocationQuotaAvailability.ps1 | 3 +- ...Test-AzVMwareLocationTrialAvailability.ps1 | 33 +- .../exports/Update-AzVMwareAuthorization.ps1 | 99 +- .../exports/Update-AzVMwareCloudLink.ps1 | 107 +- .../exports/Update-AzVMwareCluster.ps1 | 133 +- .../exports/Update-AzVMwareDatastore.ps1 | 171 +- .../Update-AzVMwareGlobalReachConnection.ps1 | 117 +- .../exports/Update-AzVMwareIscsiPath.ps1 | 241 + .../Update-AzVMwarePlacementPolicy.ps1 | 144 +- .../exports/Update-AzVMwarePrivateCloud.ps1 | 138 +- .../generated/api/Models/Addon.PowerShell.cs | 56 + .../generated/api/Models/Addon.cs | 77 +- .../generated/api/Models/Addon.json.cs | 9 +- .../api/Models/AddonArcProperties.cs | 2 +- .../api/Models/AddonHcxProperties.cs | 2 +- ...Shell.cs => AddonListResult.PowerShell.cs} | 50 +- ...er.cs => AddonListResult.TypeConverter.cs} | 28 +- .../{AddonList.cs => AddonListResult.cs} | 64 +- ...onList.json.cs => AddonListResult.json.cs} | 40 +- .../generated/api/Models/AddonProperties.cs | 12 +- .../api/Models/AddonProperties.json.cs | 16 +- .../api/Models/AddonSrmProperties.cs | 2 +- .../generated/api/Models/AddonVrProperties.cs | 2 +- .../api/Models/CloudLink.PowerShell.cs | 64 + .../generated/api/Models/CloudLink.cs | 95 +- .../generated/api/Models/CloudLink.json.cs | 9 +- ...l.cs => CloudLinkListResult.PowerShell.cs} | 128 +- ...s => CloudLinkListResult.TypeConverter.cs} | 28 +- ...loudLinkList.cs => CloudLinkListResult.cs} | 64 +- ...st.json.cs => CloudLinkListResult.json.cs} | 40 +- .../Models/CloudLinkProperties.PowerShell.cs | 8 + .../api/Models/CloudLinkProperties.cs | 25 + .../api/Models/CloudLinkProperties.json.cs | 5 + .../api/Models/Cluster.PowerShell.cs | 104 +- .../generated/api/Models/Cluster.cs | 220 +- .../generated/api/Models/Cluster.json.cs | 11 +- ...ell.cs => ClusterListResult.PowerShell.cs} | 94 +- ....cs => ClusterListResult.TypeConverter.cs} | 28 +- .../{ClusterList.cs => ClusterListResult.cs} | 64 +- ...List.json.cs => ClusterListResult.json.cs} | 40 +- .../Models/ClusterProperties.PowerShell.cs | 24 +- .../generated/api/Models/ClusterProperties.cs | 133 +- .../api/Models/ClusterProperties.json.cs | 26 +- .../api/Models/ClusterUpdate.PowerShell.cs | 48 + .../generated/api/Models/ClusterUpdate.cs | 129 + .../api/Models/ClusterUpdate.json.cs | 2 + .../api/Models/CommonClusterProperties.cs | 122 - .../Models/CommonClusterProperties.json.cs | 128 - .../api/Models/Datastore.PowerShell.cs | 72 + .../generated/api/Models/Datastore.cs | 125 +- .../generated/api/Models/Datastore.json.cs | 9 +- ...l.cs => DatastoreListResult.PowerShell.cs} | 128 +- ...s => DatastoreListResult.TypeConverter.cs} | 28 +- ...atastoreList.cs => DatastoreListResult.cs} | 64 +- ...st.json.cs => DatastoreListResult.json.cs} | 40 +- .../Models/DatastoreProperties.PowerShell.cs | 16 + .../api/Models/DatastoreProperties.cs | 45 +- .../api/Models/DatastoreProperties.json.cs | 2 + .../generated/api/Models/DiskPoolVolume.cs | 12 +- .../api/Models/ElasticSanVolume.PowerShell.cs | 164 + ...r.cs => ElasticSanVolume.TypeConverter.cs} | 28 +- .../generated/api/Models/ElasticSanVolume.cs | 54 + ...rties.json.cs => ElasticSanVolume.json.cs} | 40 +- .../api/Models/Endpoints.PowerShell.cs | 24 + .../generated/api/Models/Endpoints.cs | 93 +- .../generated/api/Models/Endpoints.json.cs | 15 + .../ExpressRouteAuthorization.PowerShell.cs | 56 + .../api/Models/ExpressRouteAuthorization.cs | 85 +- .../Models/ExpressRouteAuthorization.json.cs | 6 +- ...RouteAuthorizationListResult.PowerShell.cs | 174 + ...teAuthorizationListResult.TypeConverter.cs | 149 + ...=> ExpressRouteAuthorizationListResult.cs} | 64 +- ...pressRouteAuthorizationListResult.json.cs} | 39 +- .../ExpressRouteAuthorizationProperties.cs | 6 +- .../GlobalReachConnection.PowerShell.cs | 56 + .../api/Models/GlobalReachConnection.cs | 129 +- .../api/Models/GlobalReachConnection.json.cs | 9 +- ...balReachConnectionListResult.PowerShell.cs | 172 + ...ReachConnectionListResult.TypeConverter.cs | 148 + ....cs => GlobalReachConnectionListResult.cs} | 64 +- ...> GlobalReachConnectionListResult.json.cs} | 38 +- .../Models/GlobalReachConnectionProperties.cs | 52 +- .../Models/HcxEnterpriseSite.PowerShell.cs | 64 + .../generated/api/Models/HcxEnterpriseSite.cs | 95 +- .../api/Models/HcxEnterpriseSite.json.cs | 6 +- ...HcxEnterpriseSiteListResult.PowerShell.cs} | 84 +- ...EnterpriseSiteListResult.TypeConverter.cs} | 28 +- ...List.cs => HcxEnterpriseSiteListResult.cs} | 64 +- ...cs => HcxEnterpriseSiteListResult.json.cs} | 38 +- .../HcxEnterpriseSiteProperties.PowerShell.cs | 8 + .../api/Models/HcxEnterpriseSiteProperties.cs | 25 + .../HcxEnterpriseSiteProperties.json.cs | 5 + .../api/Models/IdentitySource.PowerShell.cs | 4 +- .../generated/api/Models/IdentitySource.cs | 34 +- .../api/Models/IdentitySource.json.cs | 4 +- .../api/Models/IscsiPath.PowerShell.cs | 260 + ...onverter.cs => IscsiPath.TypeConverter.cs} | 28 +- .../generated/api/Models/IscsiPath.cs | 165 + .../generated/api/Models/IscsiPath.json.cs | 111 + ...l.cs => IscsiPathListResult.PowerShell.cs} | 94 +- ...s => IscsiPathListResult.TypeConverter.cs} | 28 +- .../api/Models/IscsiPathListResult.cs | 74 + .../api/Models/IscsiPathListResult.json.cs | 118 + ...l.cs => IscsiPathProperties.PowerShell.cs} | 102 +- ...s => IscsiPathProperties.TypeConverter.cs} | 28 +- .../api/Models/IscsiPathProperties.cs | 79 + .../api/Models/IscsiPathProperties.json.cs | 116 + .../Models/LogSpecification.TypeConverter.cs | 147 - .../generated/api/Models/LogSpecification.cs | 94 - .../Models/ManagementCluster.PowerShell.cs | 24 +- .../generated/api/Models/ManagementCluster.cs | 133 +- .../api/Models/ManagementCluster.json.cs | 26 +- .../generated/api/Models/MetricDimension.cs | 120 - .../Models/MetricSpecification.PowerShell.cs | 260 - .../api/Models/MetricSpecification.cs | 312 - .../api/Models/MetricSpecification.json.cs | 156 - .../api/Models/Operation.PowerShell.cs | 38 +- .../generated/api/Models/Operation.cs | 232 +- .../generated/api/Models/Operation.json.cs | 22 +- .../api/Models/OperationDisplay.PowerShell.cs | 4 +- .../generated/api/Models/OperationDisplay.cs | 65 +- .../api/Models/OperationDisplay.json.cs | 2 +- .../api/Models/OperationList.TypeConverter.cs | 147 - ...l.cs => OperationListResult.PowerShell.cs} | 54 +- .../OperationListResult.TypeConverter.cs | 147 + ...perationList.cs => OperationListResult.cs} | 45 +- ...st.json.cs => OperationListResult.json.cs} | 25 +- .../api/Models/OperationProperties.cs | 80 - .../PlacementPoliciesList.PowerShell.cs | 172 - .../PlacementPoliciesList.TypeConverter.cs | 147 - .../api/Models/PlacementPolicy.PowerShell.cs | 56 + .../generated/api/Models/PlacementPolicy.cs | 77 +- .../api/Models/PlacementPolicy.json.cs | 9 +- ...> PlacementPolicyListResult.PowerShell.cs} | 50 +- ...lacementPolicyListResult.TypeConverter.cs} | 28 +- ...esList.cs => PlacementPolicyListResult.cs} | 64 +- ...n.cs => PlacementPolicyListResult.json.cs} | 38 +- .../api/Models/PlacementPolicyProperties.cs | 12 +- .../Models/PlacementPolicyProperties.json.cs | 8 +- .../api/Models/PrivateCloud.PowerShell.cs | 220 +- .../generated/api/Models/PrivateCloud.cs | 513 +- .../generated/api/Models/PrivateCloud.json.cs | 9 +- .../PrivateCloudIdentity.TypeConverter.cs | 147 - ...s => PrivateCloudListResult.PowerShell.cs} | 50 +- ...> PrivateCloudListResult.TypeConverter.cs} | 28 +- ...CloudList.cs => PrivateCloudListResult.cs} | 64 +- ...json.cs => PrivateCloudListResult.json.cs} | 38 +- .../PrivateCloudProperties.PowerShell.cs | 300 +- .../api/Models/PrivateCloudProperties.cs | 646 +- .../api/Models/PrivateCloudProperties.json.cs | 63 +- .../Models/PrivateCloudUpdate.PowerShell.cs | 128 +- .../api/Models/PrivateCloudUpdate.cs | 266 +- .../api/Models/PrivateCloudUpdate.json.cs | 8 +- ...PrivateCloudUpdateProperties.PowerShell.cs | 24 +- .../Models/PrivateCloudUpdateProperties.cs | 75 +- .../PrivateCloudUpdateProperties.json.cs | 2 + .../PrivateCloudUpdateTags.PowerShell.cs | 160 + ...> PrivateCloudUpdateTags.TypeConverter.cs} | 28 +- .../api/Models/PrivateCloudUpdateTags.cs | 35 + .../PrivateCloudUpdateTags.dictionary.cs | 75 + .../api/Models/PrivateCloudUpdateTags.json.cs | 109 + .../api/Models/ProxyResource.PowerShell.cs | 62 +- .../generated/api/Models/ProxyResource.cs | 51 +- .../api/Models/ProxyResource.json.cs | 4 +- ...CredentialExecutionParameter.PowerShell.cs | 20 +- .../Models/PsCredentialExecutionParameter.cs | 12 +- .../PsCredentialExecutionParameter.json.cs | 4 +- .../api/Models/Resource.PowerShell.cs | 62 +- .../generated/api/Models/Resource.cs | 166 +- .../generated/api/Models/Resource.json.cs | 9 +- .../api/Models/ResourceTags.TypeConverter.cs | 147 - .../api/Models/ScriptCmdlet.PowerShell.cs | 72 + .../generated/api/Models/ScriptCmdlet.cs | 97 +- .../generated/api/Models/ScriptCmdlet.json.cs | 5 +- ...s => ScriptCmdletListResult.PowerShell.cs} | 94 +- ...> ScriptCmdletListResult.TypeConverter.cs} | 28 +- ...dletsList.cs => ScriptCmdletListResult.cs} | 64 +- ...json.cs => ScriptCmdletListResult.json.cs} | 38 +- .../ScriptCmdletProperties.PowerShell.cs | 16 + .../api/Models/ScriptCmdletProperties.cs | 56 + .../api/Models/ScriptCmdletProperties.json.cs | 10 + .../api/Models/ScriptExecution.PowerShell.cs | 56 + .../generated/api/Models/ScriptExecution.cs | 91 +- .../api/Models/ScriptExecution.json.cs | 5 +- ...> ScriptExecutionListResult.PowerShell.cs} | 50 +- ...criptExecutionListResult.TypeConverter.cs} | 28 +- ...nsList.cs => ScriptExecutionListResult.cs} | 64 +- ...n.cs => ScriptExecutionListResult.json.cs} | 38 +- .../ScriptExecutionParameter.PowerShell.cs | 16 +- .../api/Models/ScriptExecutionParameter.cs | 8 +- .../Models/ScriptExecutionParameter.json.cs | 12 +- .../api/Models/ScriptExecutionProperties.cs | 28 +- .../api/Models/ScriptPackage.PowerShell.cs | 64 + .../generated/api/Models/ScriptPackage.cs | 69 +- .../api/Models/ScriptPackage.json.cs | 5 +- ... => ScriptPackageListResult.PowerShell.cs} | 84 +- ... ScriptPackageListResult.TypeConverter.cs} | 28 +- ...agesList.cs => ScriptPackageListResult.cs} | 64 +- ...son.cs => ScriptPackageListResult.json.cs} | 38 +- .../ScriptPackageProperties.PowerShell.cs | 8 + .../api/Models/ScriptPackageProperties.cs | 25 + .../Models/ScriptPackageProperties.json.cs | 5 + .../Models/ScriptPackagesList.PowerShell.cs | 172 - .../ScriptPackagesList.TypeConverter.cs | 147 - .../generated/api/Models/ScriptParameter.cs | 24 +- ...cureStringExecutionParameter.PowerShell.cs | 20 +- .../ScriptSecureStringExecutionParameter.cs | 12 +- ...riptSecureStringExecutionParameter.json.cs | 4 +- ...riptStringExecutionParameter.PowerShell.cs | 16 +- .../Models/ScriptStringExecutionParameter.cs | 2 +- .../Models/ServiceSpecification.PowerShell.cs | 172 - .../ServiceSpecification.TypeConverter.cs | 147 - .../api/Models/ServiceSpecification.cs | 74 - .../api/Models/ServiceSpecification.json.cs | 126 - .../generated/api/Models/Sku.PowerShell.cs | 32 + .../generated/api/Models/Sku.cs | 120 +- .../generated/api/Models/Sku.json.cs | 8 + ...stemAssignedServiceIdentity.PowerShell.cs} | 54 +- ...mAssignedServiceIdentity.TypeConverter.cs} | 28 +- ...ty.cs => SystemAssignedServiceIdentity.cs} | 63 +- ... => SystemAssignedServiceIdentity.json.cs} | 20 +- ...PowerShell.cs => SystemData.PowerShell.cs} | 90 +- ...nverter.cs => SystemData.TypeConverter.cs} | 29 +- .../generated/api/Models/SystemData.cs | 158 + .../generated/api/Models/SystemData.json.cs | 116 + .../api/Models/TrackedResource.PowerShell.cs | 70 +- .../generated/api/Models/TrackedResource.cs | 81 +- .../api/Models/TrackedResource.json.cs | 11 +- ...l.cs => TrackedResourceTags.PowerShell.cs} | 76 +- .../TrackedResourceTags.TypeConverter.cs | 147 + ...ResourceTags.cs => TrackedResourceTags.cs} | 20 +- ...y.cs => TrackedResourceTags.dictionary.cs} | 4 +- ...gs.json.cs => TrackedResourceTags.json.cs} | 52 +- .../Models/VMHostPlacementPolicyProperties.cs | 2 +- .../api/Models/VMPlacementPolicyProperties.cs | 2 +- .../api/Models/VMwareIdentity.PowerShell.cs | 152 +- .../generated/api/Models/VMwareIdentity.cs | 222 +- .../api/Models/VMwareIdentity.json.cs | 54 +- .../api/Models/VirtualMachine.PowerShell.cs | 64 + .../generated/api/Models/VirtualMachine.cs | 69 +- .../api/Models/VirtualMachine.json.cs | 5 +- ...=> VirtualMachineListResult.PowerShell.cs} | 84 +- .../VirtualMachineListResult.TypeConverter.cs | 147 + ...nesList.cs => VirtualMachineListResult.cs} | 64 +- ...on.cs => VirtualMachineListResult.json.cs} | 38 +- .../VirtualMachineProperties.PowerShell.cs | 8 + .../api/Models/VirtualMachineProperties.cs | 25 + .../Models/VirtualMachineProperties.json.cs | 5 + .../api/Models/WorkloadNetwork.PowerShell.cs | 72 + .../generated/api/Models/WorkloadNetwork.cs | 77 +- .../api/Models/WorkloadNetwork.json.cs | 5 + .../Models/WorkloadNetworkDhcp.PowerShell.cs | 56 + .../api/Models/WorkloadNetworkDhcp.cs | 57 +- .../api/Models/WorkloadNetworkDhcp.json.cs | 5 +- .../WorkloadNetworkDhcpEntity.PowerShell.cs | 6 +- .../api/Models/WorkloadNetworkDhcpEntity.cs | 13 +- .../Models/WorkloadNetworkDhcpEntity.json.cs | 11 +- ...loadNetworkDhcpEntityUpdate.PowerShell.cs} | 100 +- ...adNetworkDhcpEntityUpdate.TypeConverter.cs | 148 + .../Models/WorkloadNetworkDhcpEntityUpdate.cs | 101 + ...> WorkloadNetworkDhcpEntityUpdate.json.cs} | 74 +- ...rkloadNetworkDhcpListResult.PowerShell.cs} | 92 +- ...loadNetworkDhcpListResult.TypeConverter.cs | 147 + ...st.cs => WorkloadNetworkDhcpListResult.cs} | 64 +- ... => WorkloadNetworkDhcpListResult.json.cs} | 38 +- ...kloadNetworkDhcpRelayUpdate.PowerShell.cs} | 152 +- ...adNetworkDhcpRelayUpdate.TypeConverter.cs} | 28 +- .../Models/WorkloadNetworkDhcpRelayUpdate.cs | 86 + ...=> WorkloadNetworkDhcpRelayUpdate.json.cs} | 64 +- .../WorkloadNetworkDhcpServer.PowerShell.cs | 4 +- .../api/Models/WorkloadNetworkDhcpServer.cs | 10 +- .../Models/WorkloadNetworkDhcpServer.json.cs | 4 +- ...kloadNetworkDhcpServerUpdate.PowerShell.cs | 196 + ...adNetworkDhcpServerUpdate.TypeConverter.cs | 148 + .../Models/WorkloadNetworkDhcpServerUpdate.cs | 106 + .../WorkloadNetworkDhcpServerUpdate.json.cs | 112 + ...> WorkloadNetworkDhcpUpdate.PowerShell.cs} | 108 +- ...orkloadNetworkDhcpUpdate.TypeConverter.cs} | 28 +- .../api/Models/WorkloadNetworkDhcpUpdate.cs | 99 + .../Models/WorkloadNetworkDhcpUpdate.json.cs | 108 + .../WorkloadNetworkDnsService.PowerShell.cs | 56 + .../api/Models/WorkloadNetworkDnsService.cs | 63 +- .../Models/WorkloadNetworkDnsService.json.cs | 5 +- ...NetworkDnsServiceListResult.PowerShell.cs} | 52 +- ...tworkDnsServiceListResult.TypeConverter.cs | 149 + ...=> WorkloadNetworkDnsServiceListResult.cs} | 64 +- ...rkloadNetworkDnsServiceListResult.json.cs} | 39 +- .../WorkloadNetworkDnsServiceProperties.cs | 4 +- ...kloadNetworkDnsServiceUpdate.PowerShell.cs | 228 + ...adNetworkDnsServiceUpdate.TypeConverter.cs | 148 + .../Models/WorkloadNetworkDnsServiceUpdate.cs | 194 + .../WorkloadNetworkDnsServiceUpdate.json.cs | 108 + .../WorkloadNetworkDnsZone.PowerShell.cs | 60 +- .../api/Models/WorkloadNetworkDnsZone.cs | 71 +- .../api/Models/WorkloadNetworkDnsZone.json.cs | 5 +- ...oadNetworkDnsZoneListResult.PowerShell.cs} | 50 +- ...NetworkDnsZoneListResult.TypeConverter.cs} | 28 +- ...cs => WorkloadNetworkDnsZoneListResult.cs} | 64 +- ... WorkloadNetworkDnsZoneListResult.json.cs} | 38 +- ...loadNetworkDnsZoneProperties.PowerShell.cs | 4 +- .../WorkloadNetworkDnsZoneProperties.cs | 14 +- .../WorkloadNetworkDnsZoneProperties.json.cs | 4 +- ...WorkloadNetworkDnsZoneUpdate.PowerShell.cs | 220 + ...loadNetworkDnsZoneUpdate.TypeConverter.cs} | 28 +- .../Models/WorkloadNetworkDnsZoneUpdate.cs | 170 + .../WorkloadNetworkDnsZoneUpdate.json.cs | 108 + .../WorkloadNetworkGateway.PowerShell.cs | 64 + .../api/Models/WorkloadNetworkGateway.cs | 71 +- .../api/Models/WorkloadNetworkGateway.json.cs | 5 +- ...oadNetworkGatewayListResult.PowerShell.cs} | 50 +- ...NetworkGatewayListResult.TypeConverter.cs} | 29 +- ...cs => WorkloadNetworkGatewayListResult.cs} | 64 +- ... WorkloadNetworkGatewayListResult.json.cs} | 38 +- ...loadNetworkGatewayProperties.PowerShell.cs | 8 + .../WorkloadNetworkGatewayProperties.cs | 25 + .../WorkloadNetworkGatewayProperties.json.cs | 5 + .../WorkloadNetworkListResult.PowerShell.cs | 172 + ...WorkloadNetworkListResult.TypeConverter.cs | 147 + ...rkList.cs => WorkloadNetworkListResult.cs} | 64 +- ...n.cs => WorkloadNetworkListResult.json.cs} | 38 +- ...WorkloadNetworkPortMirroring.PowerShell.cs | 56 + .../Models/WorkloadNetworkPortMirroring.cs | 61 +- .../WorkloadNetworkPortMirroring.json.cs | 5 +- ...tworkPortMirroringListResult.PowerShell.cs | 175 + ...rkPortMirroringListResult.TypeConverter.cs | 151 + ...WorkloadNetworkPortMirroringListResult.cs} | 64 +- ...oadNetworkPortMirroringListResult.json.cs} | 39 +- .../WorkloadNetworkPortMirroringProperties.cs | 4 +- ...adNetworkPortMirroringUpdate.PowerShell.cs | 222 + ...tworkPortMirroringUpdate.TypeConverter.cs} | 28 +- .../WorkloadNetworkPortMirroringUpdate.cs | 177 + ...WorkloadNetworkPortMirroringUpdate.json.cs | 109 + .../WorkloadNetworkProperties.PowerShell.cs | 164 + ...WorkloadNetworkProperties.TypeConverter.cs | 147 + .../api/Models/WorkloadNetworkProperties.cs | 59 + .../Models/WorkloadNetworkProperties.json.cs | 111 + .../WorkloadNetworkPublicIP.PowerShell.cs | 56 + .../api/Models/WorkloadNetworkPublicIP.cs | 55 +- .../Models/WorkloadNetworkPublicIP.json.cs | 5 +- ...adNetworkPublicIPListResult.PowerShell.cs} | 52 +- ...NetworkPublicIPListResult.TypeConverter.cs | 148 + ...s => WorkloadNetworkPublicIPListResult.cs} | 64 +- ...WorkloadNetworkPublicIPListResult.json.cs} | 38 +- .../WorkloadNetworkPublicIPProperties.cs | 4 +- .../WorkloadNetworkSegment.PowerShell.cs | 56 + .../api/Models/WorkloadNetworkSegment.cs | 61 +- .../api/Models/WorkloadNetworkSegment.json.cs | 5 +- ...oadNetworkSegmentListResult.PowerShell.cs} | 50 +- ...dNetworkSegmentListResult.TypeConverter.cs | 148 + ...cs => WorkloadNetworkSegmentListResult.cs} | 64 +- ... WorkloadNetworkSegmentListResult.json.cs} | 38 +- .../WorkloadNetworkSegmentProperties.cs | 4 +- ...WorkloadNetworkSegmentUpdate.PowerShell.cs | 236 + ...kloadNetworkSegmentUpdate.TypeConverter.cs | 147 + .../Models/WorkloadNetworkSegmentUpdate.cs | 200 + .../WorkloadNetworkSegmentUpdate.json.cs | 108 + .../WorkloadNetworkVMGroup.PowerShell.cs | 56 + .../api/Models/WorkloadNetworkVMGroup.cs | 57 +- .../api/Models/WorkloadNetworkVMGroup.json.cs | 5 +- ...oadNetworkVMGroupListResult.PowerShell.cs} | 50 +- ...dNetworkVMGroupListResult.TypeConverter.cs | 148 + ...cs => WorkloadNetworkVMGroupListResult.cs} | 64 +- ... WorkloadNetworkVMGroupListResult.json.cs} | 38 +- .../WorkloadNetworkVMGroupProperties.cs | 4 +- ...WorkloadNetworkVMGroupUpdate.PowerShell.cs | 204 + ...loadNetworkVMGroupUpdate.TypeConverter.cs} | 28 +- .../Models/WorkloadNetworkVMGroupUpdate.cs | 141 + .../WorkloadNetworkVMGroupUpdate.json.cs | 108 + ...rkloadNetworkVMGroupsList.TypeConverter.cs | 147 - ...orkloadNetworkVirtualMachine.PowerShell.cs | 64 + .../Models/WorkloadNetworkVirtualMachine.cs | 71 +- .../WorkloadNetworkVirtualMachine.json.cs | 5 +- ...orkVirtualMachineListResult.PowerShell.cs} | 51 +- ...kVirtualMachineListResult.TypeConverter.cs | 151 + ...orkloadNetworkVirtualMachineListResult.cs} | 64 +- ...adNetworkVirtualMachineListResult.json.cs} | 39 +- ...workVirtualMachineProperties.PowerShell.cs | 8 + ...WorkloadNetworkVirtualMachineProperties.cs | 25 + ...oadNetworkVirtualMachineProperties.json.cs | 5 + .../VMware.Autorest/generated/api/VMware.cs | 7159 ++++++++++------- .../generated/cmdlets/GetAzVMwareAddon_Get.cs | 18 +- .../GetAzVMwareAddon_GetViaIdentity.cs | 6 +- ...zVMwareAddon_GetViaIdentityPrivateCloud.cs | 12 +- .../cmdlets/GetAzVMwareAddon_List.cs | 22 +- .../cmdlets/GetAzVMwareAuthorization_Get.cs | 18 +- ...GetAzVMwareAuthorization_GetViaIdentity.cs | 6 +- ...uthorization_GetViaIdentityPrivateCloud.cs | 12 +- .../cmdlets/GetAzVMwareAuthorization_List.cs | 22 +- .../cmdlets/GetAzVMwareCloudLink_Get.cs | 18 +- .../GetAzVMwareCloudLink_GetViaIdentity.cs | 6 +- ...areCloudLink_GetViaIdentityPrivateCloud.cs | 12 +- .../cmdlets/GetAzVMwareCloudLink_List.cs | 22 +- .../cmdlets/GetAzVMwareClusterZone_List.cs | 14 +- .../cmdlets/GetAzVMwareCluster_Get.cs | 18 +- .../GetAzVMwareCluster_GetViaIdentity.cs | 6 +- ...MwareCluster_GetViaIdentityPrivateCloud.cs | 12 +- .../cmdlets/GetAzVMwareCluster_List.cs | 22 +- .../cmdlets/GetAzVMwareDatastore_Get.cs | 24 +- .../GetAzVMwareDatastore_GetViaIdentity.cs | 6 +- ...AzVMwareDatastore_GetViaIdentityCluster.cs | 12 +- ...areDatastore_GetViaIdentityPrivateCloud.cs | 18 +- .../cmdlets/GetAzVMwareDatastore_List.cs | 28 +- .../GetAzVMwareGlobalReachConnection_Get.cs | 18 +- ...areGlobalReachConnection_GetViaIdentity.cs | 6 +- ...chConnection_GetViaIdentityPrivateCloud.cs | 12 +- .../GetAzVMwareGlobalReachConnection_List.cs | 22 +- .../cmdlets/GetAzVMwareIscsiPath_Get.cs | 507 ++ .../GetAzVMwareIscsiPath_GetViaIdentity.cs | 485 ++ .../cmdlets/GetAzVMwareIscsiPath_List.cs | 534 ++ .../cmdlets/GetAzVMwareOperation_List.cs | 16 +- .../cmdlets/GetAzVMwarePlacementPolicy_Get.cs | 26 +- ...tAzVMwarePlacementPolicy_GetViaIdentity.cs | 6 +- ...rePlacementPolicy_GetViaIdentityCluster.cs | 14 +- ...cementPolicy_GetViaIdentityPrivateCloud.cs | 20 +- .../GetAzVMwarePlacementPolicy_List.cs | 28 +- ...zVMwarePrivateCloudAdminCredential_List.cs | 8 +- .../cmdlets/GetAzVMwarePrivateCloud_Get.cs | 12 +- .../GetAzVMwarePrivateCloud_GetViaIdentity.cs | 6 +- .../cmdlets/GetAzVMwarePrivateCloud_List.cs | 44 +- .../cmdlets/GetAzVMwarePrivateCloud_List1.cs | 44 +- .../cmdlets/GetAzVMwareScriptCmdlet_Get.cs | 26 +- .../GetAzVMwareScriptCmdlet_GetViaIdentity.cs | 8 +- ...ScriptCmdlet_GetViaIdentityPrivateCloud.cs | 20 +- ...criptCmdlet_GetViaIdentityScriptPackage.cs | 14 +- .../cmdlets/GetAzVMwareScriptCmdlet_List.cs | 30 +- .../GetAzVMwareScriptExecutionLog_Get.cs | 14 +- ...VMwareScriptExecutionLog_GetViaIdentity.cs | 2 +- ...ExecutionLog_GetViaIdentityPrivateCloud.cs | 8 +- .../cmdlets/GetAzVMwareScriptExecution_Get.cs | 18 +- ...tAzVMwareScriptExecution_GetViaIdentity.cs | 6 +- ...iptExecution_GetViaIdentityPrivateCloud.cs | 12 +- .../GetAzVMwareScriptExecution_List.cs | 22 +- .../cmdlets/GetAzVMwareScriptPackage_Get.cs | 18 +- ...GetAzVMwareScriptPackage_GetViaIdentity.cs | 6 +- ...criptPackage_GetViaIdentityPrivateCloud.cs | 12 +- .../cmdlets/GetAzVMwareScriptPackage_List.cs | 22 +- .../cmdlets/GetAzVMwareVirtualMachine_Get.cs | 24 +- ...etAzVMwareVirtualMachine_GetViaIdentity.cs | 6 +- ...areVirtualMachine_GetViaIdentityCluster.cs | 12 +- ...rtualMachine_GetViaIdentityPrivateCloud.cs | 18 +- .../cmdlets/GetAzVMwareVirtualMachine_List.cs | 28 +- .../GetAzVMwareWorkloadNetworkDhcp_Get.cs | 18 +- ...MwareWorkloadNetworkDhcp_GetViaIdentity.cs | 6 +- ...orkDhcp_GetViaIdentityDhcpConfiguration.cs | 6 +- .../GetAzVMwareWorkloadNetworkDhcp_List.cs | 22 +- ...etAzVMwareWorkloadNetworkDnsService_Get.cs | 20 +- ...orkloadNetworkDnsService_GetViaIdentity.cs | 6 +- ...rkDnsService_GetViaIdentityPrivateCloud.cs | 14 +- ...tAzVMwareWorkloadNetworkDnsService_List.cs | 22 +- .../GetAzVMwareWorkloadNetworkDnsZone_Get.cs | 18 +- ...reWorkloadNetworkDnsZone_GetViaIdentity.cs | 6 +- ...tworkDnsZone_GetViaIdentityPrivateCloud.cs | 12 +- .../GetAzVMwareWorkloadNetworkDnsZone_List.cs | 22 +- .../GetAzVMwareWorkloadNetworkGateway_Get.cs | 18 +- ...reWorkloadNetworkGateway_GetViaIdentity.cs | 6 +- ...tworkGateway_GetViaIdentityPrivateCloud.cs | 12 +- .../GetAzVMwareWorkloadNetworkGateway_List.cs | 22 +- ...zVMwareWorkloadNetworkPortMirroring_Get.cs | 20 +- ...loadNetworkPortMirroring_GetViaIdentity.cs | 6 +- ...ortMirroring_GetViaIdentityPrivateCloud.cs | 14 +- ...VMwareWorkloadNetworkPortMirroring_List.cs | 22 +- .../GetAzVMwareWorkloadNetworkPublicIP_Get.cs | 20 +- ...eWorkloadNetworkPublicIP_GetViaIdentity.cs | 6 +- ...workPublicIP_GetViaIdentityPrivateCloud.cs | 14 +- ...GetAzVMwareWorkloadNetworkPublicIP_List.cs | 22 +- .../GetAzVMwareWorkloadNetworkSegment_Get.cs | 18 +- ...reWorkloadNetworkSegment_GetViaIdentity.cs | 6 +- ...tworkSegment_GetViaIdentityPrivateCloud.cs | 12 +- .../GetAzVMwareWorkloadNetworkSegment_List.cs | 22 +- .../GetAzVMwareWorkloadNetworkVMGroup_Get.cs | 18 +- ...reWorkloadNetworkVMGroup_GetViaIdentity.cs | 6 +- ...tworkVMGroup_GetViaIdentityPrivateCloud.cs | 12 +- .../GetAzVMwareWorkloadNetworkVMGroup_List.cs | 22 +- .../GetAzVMwareWorkloadNetworkVM_Get.cs | 18 +- ...zVMwareWorkloadNetworkVM_GetViaIdentity.cs | 6 +- ...oadNetworkVM_GetViaIdentityPrivateCloud.cs | 12 +- .../GetAzVMwareWorkloadNetworkVM_List.cs | 22 +- .../cmdlets/GetAzVMwareWorkloadNetwork_Get.cs | 14 +- ...tAzVMwareWorkloadNetwork_GetViaIdentity.cs | 8 +- .../GetAzVMwareWorkloadNetwork_List.cs | 22 +- ...VirtualMachineMovement_RestrictExpanded.cs | 20 +- ...ment_RestrictViaIdentityClusterExpanded.cs | 8 +- ...ineMovement_RestrictViaIdentityExpanded.cs | 2 +- ...RestrictViaIdentityPrivateCloudExpanded.cs | 14 +- .../NewAzVMwareAddon_CreateExpanded.cs | 30 +- ...AzVMwareAddon_CreateViaIdentityExpanded.cs | 12 +- ...n_CreateViaIdentityPrivateCloudExpanded.cs | 18 +- ...NewAzVMwareAuthorization_CreateExpanded.cs | 35 +- ...Authorization_CreateViaIdentityExpanded.cs | 17 +- ...n_CreateViaIdentityPrivateCloudExpanded.cs | 23 +- .../NewAzVMwareCloudLink_CreateExpanded.cs | 24 +- ...wareCloudLink_CreateViaIdentityExpanded.cs | 6 +- ...k_CreateViaIdentityPrivateCloudExpanded.cs | 12 +- .../NewAzVMwareCluster_CreateExpanded.cs | 96 +- ...VMwareCluster_CreateViaIdentityExpanded.cs | 78 +- ...r_CreateViaIdentityPrivateCloudExpanded.cs | 84 +- .../NewAzVMwareDatastore_CreateExpanded.cs | 41 +- ...astore_CreateViaIdentityClusterExpanded.cs | 29 +- ...wareDatastore_CreateViaIdentityExpanded.cs | 23 +- ...e_CreateViaIdentityPrivateCloudExpanded.cs | 35 +- ...areGlobalReachConnection_CreateExpanded.cs | 42 +- ...achConnection_CreateViaIdentityExpanded.cs | 24 +- ...n_CreateViaIdentityPrivateCloudExpanded.cs | 30 +- .../NewAzVMwareIscsiPath_CreateExpanded.cs | 604 ++ ...wareIscsiPath_CreateViaIdentityExpanded.cs | 582 ++ ...wAzVMwarePlacementPolicy_CreateExpanded.cs | 32 +- ...Policy_CreateViaIdentityClusterExpanded.cs | 20 +- ...acementPolicy_CreateViaIdentityExpanded.cs | 12 +- ...y_CreateViaIdentityPrivateCloudExpanded.cs | 26 +- ...AzVMwarePrivateCloudNsxtPassword_Rotate.cs | 8 +- ...vateCloudNsxtPassword_RotateViaIdentity.cs | 2 +- ...MwarePrivateCloudVcenterPassword_Rotate.cs | 8 +- ...eCloudVcenterPassword_RotateViaIdentity.cs | 2 +- .../NewAzVMwarePrivateCloud_CreateExpanded.cs | 167 +- ...wAzVMwareScriptExecution_CreateExpanded.cs | 36 +- ...riptExecution_CreateViaIdentityExpanded.cs | 18 +- ...n_CreateViaIdentityPrivateCloudExpanded.cs | 24 +- ...MwareWorkloadNetworkDhcp_CreateExpanded.cs | 18 +- ...adNetworkDhcp_CreateViaIdentityExpanded.cs | 6 +- ...p_CreateViaIdentityPrivateCloudExpanded.cs | 12 +- ...orkloadNetworkDnsService_CreateExpanded.cs | 20 +- ...orkDnsService_CreateViaIdentityExpanded.cs | 6 +- ...e_CreateViaIdentityPrivateCloudExpanded.cs | 14 +- ...reWorkloadNetworkDnsZone_CreateExpanded.cs | 22 +- ...etworkDnsZone_CreateViaIdentityExpanded.cs | 10 +- ...e_CreateViaIdentityPrivateCloudExpanded.cs | 16 +- ...loadNetworkPortMirroring_CreateExpanded.cs | 20 +- ...PortMirroring_CreateViaIdentityExpanded.cs | 6 +- ...g_CreateViaIdentityPrivateCloudExpanded.cs | 14 +- ...eWorkloadNetworkPublicIP_CreateExpanded.cs | 20 +- ...tworkPublicIP_CreateViaIdentityExpanded.cs | 6 +- ...P_CreateViaIdentityPrivateCloudExpanded.cs | 14 +- ...reWorkloadNetworkSegment_CreateExpanded.cs | 18 +- ...etworkSegment_CreateViaIdentityExpanded.cs | 6 +- ...t_CreateViaIdentityPrivateCloudExpanded.cs | 12 +- ...reWorkloadNetworkVMGroup_CreateExpanded.cs | 18 +- ...etworkVMGroup_CreateViaIdentityExpanded.cs | 6 +- ...p_CreateViaIdentityPrivateCloudExpanded.cs | 12 +- .../cmdlets/RemoveAzVMwareAddon_Delete.cs | 18 +- .../RemoveAzVMwareAddon_DeleteViaIdentity.cs | 6 +- ...wareAddon_DeleteViaIdentityPrivateCloud.cs | 12 +- .../RemoveAzVMwareAuthorization_Delete.cs | 18 +- ...AzVMwareAuthorization_DeleteViaIdentity.cs | 6 +- ...orization_DeleteViaIdentityPrivateCloud.cs | 12 +- .../cmdlets/RemoveAzVMwareCloudLink_Delete.cs | 18 +- ...moveAzVMwareCloudLink_DeleteViaIdentity.cs | 6 +- ...CloudLink_DeleteViaIdentityPrivateCloud.cs | 12 +- .../cmdlets/RemoveAzVMwareCluster_Delete.cs | 18 +- ...RemoveAzVMwareCluster_DeleteViaIdentity.cs | 6 +- ...reCluster_DeleteViaIdentityPrivateCloud.cs | 12 +- .../cmdlets/RemoveAzVMwareDatastore_Delete.cs | 24 +- ...moveAzVMwareDatastore_DeleteViaIdentity.cs | 6 +- ...MwareDatastore_DeleteViaIdentityCluster.cs | 12 +- ...Datastore_DeleteViaIdentityPrivateCloud.cs | 18 +- ...oveAzVMwareGlobalReachConnection_Delete.cs | 18 +- ...GlobalReachConnection_DeleteViaIdentity.cs | 6 +- ...onnection_DeleteViaIdentityPrivateCloud.cs | 12 +- .../cmdlets/RemoveAzVMwareIscsiPath_Delete.cs | 610 ++ ...moveAzVMwareIscsiPath_DeleteViaIdentity.cs | 588 ++ .../RemoveAzVMwarePlacementPolicy_Delete.cs | 26 +- ...VMwarePlacementPolicy_DeleteViaIdentity.cs | 6 +- ...lacementPolicy_DeleteViaIdentityCluster.cs | 14 +- ...entPolicy_DeleteViaIdentityPrivateCloud.cs | 20 +- .../RemoveAzVMwarePrivateCloud_Delete.cs | 12 +- ...eAzVMwarePrivateCloud_DeleteViaIdentity.cs | 6 +- .../RemoveAzVMwareScriptExecution_Delete.cs | 18 +- ...VMwareScriptExecution_DeleteViaIdentity.cs | 6 +- ...Execution_DeleteViaIdentityPrivateCloud.cs | 12 +- ...emoveAzVMwareWorkloadNetworkDhcp_Delete.cs | 18 +- ...reWorkloadNetworkDhcp_DeleteViaIdentity.cs | 6 +- ...tworkDhcp_DeleteViaIdentityPrivateCloud.cs | 12 +- ...zVMwareWorkloadNetworkDnsService_Delete.cs | 20 +- ...loadNetworkDnsService_DeleteViaIdentity.cs | 6 +- ...kDnsService_DeleteViaIdentityDnsService.cs | 6 +- ...veAzVMwareWorkloadNetworkDnsZone_Delete.cs | 18 +- ...orkloadNetworkDnsZone_DeleteViaIdentity.cs | 6 +- ...NetworkDnsZone_DeleteViaIdentityDnsZone.cs | 6 +- ...wareWorkloadNetworkPortMirroring_Delete.cs | 20 +- ...dNetworkPortMirroring_DeleteViaIdentity.cs | 6 +- ...g_DeleteViaIdentityPortMirroringProfile.cs | 6 +- ...eAzVMwareWorkloadNetworkPublicIP_Delete.cs | 20 +- ...rkloadNetworkPublicIP_DeleteViaIdentity.cs | 6 +- ...tworkPublicIP_DeleteViaIdentityPublicIP.cs | 6 +- ...veAzVMwareWorkloadNetworkSegment_Delete.cs | 18 +- ...orkloadNetworkSegment_DeleteViaIdentity.cs | 6 +- ...rkSegment_DeleteViaIdentityPrivateCloud.cs | 12 +- ...veAzVMwareWorkloadNetworkVMGroup_Delete.cs | 18 +- ...orkloadNetworkVMGroup_DeleteViaIdentity.cs | 6 +- ...NetworkVMGroup_DeleteViaIdentityVMGroup.cs | 6 +- ...AzVMwareLocationQuotaAvailability_Check.cs | 14 +- ...LocationTrialAvailability_CheckExpanded.cs | 75 +- ...ateAzVMwareAuthorization_UpdateExpanded.cs | 22 +- ...Authorization_UpdateViaIdentityExpanded.cs | 4 +- ...n_UpdateViaIdentityPrivateCloudExpanded.cs | 10 +- .../UpdateAzVMwareCloudLink_UpdateExpanded.cs | 38 +- ...wareCloudLink_UpdateViaIdentityExpanded.cs | 20 +- ...k_UpdateViaIdentityPrivateCloudExpanded.cs | 26 +- .../UpdateAzVMwareCluster_UpdateExpanded.cs | 84 +- ...VMwareCluster_UpdateViaIdentityExpanded.cs | 72 +- ...r_UpdateViaIdentityPrivateCloudExpanded.cs | 78 +- .../UpdateAzVMwareDatastore_UpdateExpanded.cs | 86 +- ...astore_UpdateViaIdentityClusterExpanded.cs | 74 +- ...wareDatastore_UpdateViaIdentityExpanded.cs | 68 +- ...e_UpdateViaIdentityPrivateCloudExpanded.cs | 80 +- ...areGlobalReachConnection_UpdateExpanded.cs | 74 +- ...achConnection_UpdateViaIdentityExpanded.cs | 56 +- ...n_UpdateViaIdentityPrivateCloudExpanded.cs | 62 +- .../UpdateAzVMwareIscsiPath_UpdateExpanded.cs | 600 ++ ...wareIscsiPath_UpdateViaIdentityExpanded.cs | 580 ++ ...eAzVMwarePlacementPolicy_UpdateExpanded.cs | 26 +- ...Policy_UpdateViaIdentityClusterExpanded.cs | 14 +- ...acementPolicy_UpdateViaIdentityExpanded.cs | 6 +- ...y_UpdateViaIdentityPrivateCloudExpanded.cs | 20 +- ...dateAzVMwarePrivateCloud_UpdateExpanded.cs | 279 +- ...ePrivateCloud_UpdateViaIdentityExpanded.cs | 278 +- ...MwareWorkloadNetworkDhcp_UpdateExpanded.cs | 22 +- ...adNetworkDhcp_UpdateViaIdentityExpanded.cs | 10 +- ...p_UpdateViaIdentityPrivateCloudExpanded.cs | 16 +- ...orkloadNetworkDnsService_UpdateExpanded.cs | 24 +- ...orkDnsService_UpdateViaIdentityExpanded.cs | 10 +- ...e_UpdateViaIdentityPrivateCloudExpanded.cs | 18 +- ...reWorkloadNetworkDnsZone_UpdateExpanded.cs | 26 +- ...etworkDnsZone_UpdateViaIdentityExpanded.cs | 14 +- ...e_UpdateViaIdentityPrivateCloudExpanded.cs | 20 +- ...loadNetworkPortMirroring_UpdateExpanded.cs | 24 +- ...PortMirroring_UpdateViaIdentityExpanded.cs | 10 +- ...g_UpdateViaIdentityPrivateCloudExpanded.cs | 18 +- ...reWorkloadNetworkSegment_UpdateExpanded.cs | 22 +- ...etworkSegment_UpdateViaIdentityExpanded.cs | 10 +- ...t_UpdateViaIdentityPrivateCloudExpanded.cs | 16 +- ...reWorkloadNetworkVMGroup_UpdateExpanded.cs | 22 +- ...etworkVMGroup_UpdateViaIdentityExpanded.cs | 10 +- ...p_UpdateViaIdentityPrivateCloudExpanded.cs | 16 +- src/VMware/VMware.Autorest/help/Az.VMware.md | 85 +- .../help/Get-AzVMwareAuthorization.md | 7 +- .../help/Get-AzVMwareCloudLink.md | 7 +- .../help/Get-AzVMwareCluster.md | 7 +- .../help/Get-AzVMwareClusterZone.md | 3 +- .../help/Get-AzVMwareDatastore.md | 9 +- .../help/Get-AzVMwareGlobalReachConnection.md | 7 +- .../help/Get-AzVMwareIscsiPath.md | 154 + .../help/Get-AzVMwarePlacementPolicy.md | 9 +- .../help/Get-AzVMwarePrivateCloud.md | 11 +- ...Get-AzVMwarePrivateCloudAdminCredential.md | 1 + .../help/Get-AzVMwareVirtualMachine.md | 9 +- .../VMware.Autorest/help/New-AzVMwareAddon.md | 2 +- ... => New-AzVMwareAddonSrmPropertyObject.md} | 14 +- ...d => New-AzVMwareAddonVrPropertyObject.md} | 12 +- .../help/New-AzVMwareAuthorization.md | 34 +- .../help/New-AzVMwareCloudLink.md | 9 +- .../help/New-AzVMwareCluster.md | 104 +- .../help/New-AzVMwareDatastore.md | 45 +- .../help/New-AzVMwareGlobalReachConnection.md | 15 +- .../help/New-AzVMwareIdentitySourceObject.md | 210 - .../help/New-AzVMwareIscsiPath.md | 225 + ...arePSCredentialExecutionParameterObject.md | 21 +- .../help/New-AzVMwarePlacementPolicy.md | 15 +- .../New-AzVMwarePrivateCloudNsxtPassword.md | 1 + ...New-AzVMwarePrivateCloudVcenterPassword.md | 1 + ...iptSecureStringExecutionParameterObject.md | 20 +- ...areScriptStringExecutionParameterObject.md | 12 +- ...zVMwareVMPlacementPolicyPropertyObject.md} | 23 +- ...areVmHostPlacementPolicyPropertyObject.md} | 52 +- .../help/Remove-AzVMwareAuthorization.md | 7 +- .../help/Remove-AzVMwareCloudLink.md | 7 +- .../help/Remove-AzVMwareCluster.md | 7 +- .../help/Remove-AzVMwareDatastore.md | 9 +- .../Remove-AzVMwareGlobalReachConnection.md | 7 +- .../help/Remove-AzVMwareIscsiPath.md | 216 + .../help/Remove-AzVMwarePlacementPolicy.md | 9 +- .../Test-AzVMwareLocationQuotaAvailability.md | 3 +- .../Test-AzVMwareLocationTrialAvailability.md | 73 +- .../help/Update-AzVMwareAuthorization.md | 9 +- .../help/Update-AzVMwareCloudLink.md | 36 +- .../help/Update-AzVMwareCluster.md | 96 +- .../help/Update-AzVMwareDatastore.md | 91 +- .../Update-AzVMwareGlobalReachConnection.md | 61 +- .../help/Update-AzVMwareIscsiPath.md | 209 + .../help/Update-AzVMwarePlacementPolicy.md | 9 +- .../help/Update-AzVMwarePrivateCloud.md | 156 +- .../internal/Get-AzVMwareAddon.ps1 | 97 +- .../internal/Get-AzVMwareOperation.ps1 | 4 +- .../internal/Get-AzVMwareScriptCmdlet.ps1 | 144 +- .../internal/Get-AzVMwareScriptExecution.ps1 | 97 +- .../Get-AzVMwareScriptExecutionLog.ps1 | 93 +- .../internal/Get-AzVMwareScriptPackage.ps1 | 97 +- .../internal/Get-AzVMwareWorkloadNetwork.ps1 | 50 +- .../Get-AzVMwareWorkloadNetworkDhcp.ps1 | 98 +- .../Get-AzVMwareWorkloadNetworkDnsService.ps1 | 98 +- .../Get-AzVMwareWorkloadNetworkDnsZone.ps1 | 98 +- .../Get-AzVMwareWorkloadNetworkGateway.ps1 | 98 +- ...t-AzVMwareWorkloadNetworkPortMirroring.ps1 | 98 +- .../Get-AzVMwareWorkloadNetworkPublicIP.ps1 | 98 +- .../Get-AzVMwareWorkloadNetworkSegment.ps1 | 98 +- .../Get-AzVMwareWorkloadNetworkVM.ps1 | 97 +- .../Get-AzVMwareWorkloadNetworkVMGroup.ps1 | 98 +- .../Lock-AzVMwareVirtualMachineMovement.ps1 | 140 +- .../internal/New-AzVMwareAddon.ps1 | 107 +- .../internal/New-AzVMwarePrivateCloud.ps1 | 101 +- .../internal/New-AzVMwareScriptExecution.ps1 | 109 +- .../New-AzVMwareWorkloadNetworkDhcp.ps1 | 98 +- .../New-AzVMwareWorkloadNetworkDnsService.ps1 | 98 +- .../New-AzVMwareWorkloadNetworkDnsZone.ps1 | 100 +- ...w-AzVMwareWorkloadNetworkPortMirroring.ps1 | 98 +- .../New-AzVMwareWorkloadNetworkPublicIP.ps1 | 98 +- .../New-AzVMwareWorkloadNetworkSegment.ps1 | 98 +- .../New-AzVMwareWorkloadNetworkVMGroup.ps1 | 98 +- .../internal/ProxyCmdletDefinitions.ps1 | 4130 +++++----- .../internal/Remove-AzVMwareAddon.ps1 | 97 +- .../internal/Remove-AzVMwarePrivateCloud.ps1 | 50 +- .../Remove-AzVMwareScriptExecution.ps1 | 97 +- .../Remove-AzVMwareWorkloadNetworkDhcp.ps1 | 98 +- ...move-AzVMwareWorkloadNetworkDnsService.ps1 | 98 +- .../Remove-AzVMwareWorkloadNetworkDnsZone.ps1 | 98 +- ...e-AzVMwareWorkloadNetworkPortMirroring.ps1 | 98 +- ...Remove-AzVMwareWorkloadNetworkPublicIP.ps1 | 98 +- .../Remove-AzVMwareWorkloadNetworkSegment.ps1 | 98 +- .../Remove-AzVMwareWorkloadNetworkVMGroup.ps1 | 98 +- .../Update-AzVMwareWorkloadNetworkDhcp.ps1 | 98 +- ...date-AzVMwareWorkloadNetworkDnsService.ps1 | 98 +- .../Update-AzVMwareWorkloadNetworkDnsZone.ps1 | 100 +- ...e-AzVMwareWorkloadNetworkPortMirroring.ps1 | 98 +- .../Update-AzVMwareWorkloadNetworkSegment.ps1 | 98 +- .../Update-AzVMwareWorkloadNetworkVMGroup.ps1 | 98 +- .../test/AzVMwareAddon.Recording.json | 90 +- .../test/AzVMwareAddon.Tests.ps1 | 4 +- ... AzVMwareAddonSrmPropertyObject.Tests.ps1} | 6 +- ...> AzVMwareAddonVrPropertyObject.Tests.ps1} | 6 +- .../test/AzVMwareAuthorization.Recording.json | 82 +- .../test/AzVMwareCloudLink.Recording.json | 66 +- .../test/AzVMwareCluster.Recording.json | 154 +- .../test/AzVMwareDatastore.Recording.json | 80 +- ...VMwareGlobalReachConnection.Recording.json | 130 +- ...reLocationQuotaAvailability.Recording.json | 10 +- ...reLocationTrialAvailability.Recording.json | 6 +- ...edentialExecutionParameterObject.Tests.ps1 | 3 +- .../AzVMwarePlacementPolicy.Recording.json | 132 +- .../test/AzVMwarePlacementPolicy.Tests.ps1 | 2 +- .../test/AzVMwarePrivateCloud.Recording.json | 358 +- .../test/AzVMwarePrivateCloud.Tests.ps1 | 4 +- ...PrivateCloudAdminCredential.Recording.json | 12 +- ...arePrivateCloudNsxtPassword.Recording.json | 12 +- ...PrivateCloudVcenterPassword.Recording.json | 12 +- ...reStringExecutionParameterObject.Tests.ps1 | 5 +- ...VMPlacementPolicyPropertyObject.Tests.ps1} | 6 +- .../AzVMwareVirtualMachine.Recording.json | 24 +- ...stPlacementPolicyPropertyObject.Tests.ps1} | 6 +- .../test/Get-AzVMwareAuthorization.Tests.ps1 | 4 + .../test/Get-AzVMwareCloudLink.Tests.ps1 | 4 + .../test/Get-AzVMwareCluster.Tests.ps1 | 4 + .../test/Get-AzVMwareDatastore.Tests.ps1 | 8 + ...et-AzVMwareGlobalReachConnection.Tests.ps1 | 4 + .../Get-AzVMwareHcxEnterpriseSite.Tests.ps1 | 33 - ...ts.ps1 => Get-AzVMwareIscsiPath.Tests.ps1} | 12 +- .../Get-AzVMwarePlacementPolicy.Tests.ps1 | 8 + .../test/Get-AzVMwareScriptCmdlet.Tests.ps1 | 37 - .../Get-AzVMwareScriptExecution.Tests.ps1 | 33 - .../test/Get-AzVMwareScriptPackage.Tests.ps1 | 33 - .../test/Get-AzVMwareVirtualMachine.Tests.ps1 | 8 + .../Get-AzVMwareWorkloadNetworkDhcp.Tests.ps1 | 33 - ...zVMwareWorkloadNetworkDnsService.Tests.ps1 | 33 - ...t-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 | 33 - ...t-AzVMwareWorkloadNetworkGateway.Tests.ps1 | 33 - ...wareWorkloadNetworkPortMirroring.Tests.ps1 | 33 - ...-AzVMwareWorkloadNetworkPublicIP.Tests.ps1 | 33 - ...t-AzVMwareWorkloadNetworkSegment.Tests.ps1 | 33 - .../Get-AzVMwareWorkloadNetworkVM.Tests.ps1 | 33 - ...t-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 | 33 - ...k-AzVMwareVirtualMachineMovement.Tests.ps1 | 33 - .../test/New-AzVMWareAuthorization.Tests.ps1 | 8 + .../test/New-AzVMWareCluster.Tests.ps1 | 8 + ...-AzVMwareAddonSrmPropertyObject.Tests.ps1} | 6 +- ...w-AzVMwareAddonVrPropertyObject.Tests.ps1} | 6 +- .../test/New-AzVMwareCloudLink.Tests.ps1 | 8 + .../test/New-AzVMwareDatastore.Tests.ps1 | 12 + ...ew-AzVMwareGlobalReachConnection.Tests.ps1 | 8 + .../New-AzVMwareHcxEnterpriseSite.Tests.ps1 | 29 - ...ts.ps1 => New-AzVMwareIscsiPath.Tests.ps1} | 12 +- .../New-AzVMwarePlacementPolicy.Tests.ps1 | 12 + .../New-AzVMwareScriptExecution.Tests.ps1 | 29 - ...VMPlacementPolicyPropertyObject.Tests.ps1} | 6 +- ...stPlacementPolicyPropertyObject.Tests.ps1} | 6 +- .../New-AzVMwareWorkloadNetworkDhcp.Tests.ps1 | 29 - ...zVMwareWorkloadNetworkDnsService.Tests.ps1 | 29 - ...w-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 | 29 - ...wareWorkloadNetworkPortMirroring.Tests.ps1 | 29 - ...-AzVMwareWorkloadNetworkPublicIP.Tests.ps1 | 29 - ...w-AzVMwareWorkloadNetworkSegment.Tests.ps1 | 29 - ...w-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 | 29 - .../Remove-AzVMwareAuthorization.Tests.ps1 | 4 + .../test/Remove-AzVMwareCloudLink.Tests.ps1 | 4 + .../test/Remove-AzVMwareCluster.Tests.ps1 | 4 + .../test/Remove-AzVMwareDatastore.Tests.ps1 | 8 + ...ve-AzVMwareGlobalReachConnection.Tests.ps1 | 4 + ...Remove-AzVMwareHcxEnterpriseSite.Tests.ps1 | 29 - ...ps1 => Remove-AzVMwareIscsiPath.Tests.ps1} | 10 +- .../Remove-AzVMwarePlacementPolicy.Tests.ps1 | 8 + ...move-AzVMwareWorkloadNetworkDhcp.Tests.ps1 | 29 - ...zVMwareWorkloadNetworkDnsService.Tests.ps1 | 29 - ...e-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 | 29 - ...wareWorkloadNetworkPortMirroring.Tests.ps1 | 29 - ...-AzVMwareWorkloadNetworkPublicIP.Tests.ps1 | 29 - ...e-AzVMwareWorkloadNetworkSegment.Tests.ps1 | 29 - ...e-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 | 29 - ...zVMWareLocationTrialAvailability.Tests.ps1 | 8 - .../test/Update-AzVMwareCluster.Tests.ps1 | 4 + ...ps1 => Update-AzVMwareIscsiPath.Tests.ps1} | 10 +- .../Update-AzVMwarePlacementPolicy.Tests.ps1 | 8 + ...zVMwareWorkloadNetworkDnsService.Tests.ps1 | 29 - ...e-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 | 29 - ...wareWorkloadNetworkPortMirroring.Tests.ps1 | 29 - ...e-AzVMwareWorkloadNetworkSegment.Tests.ps1 | 29 - ...e-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 | 29 - src/VMware/VMware.Autorest/test/env.json | 26 +- src/VMware/VMware/Az.VMware.psd1 | 33 +- src/VMware/VMware/help/Az.VMware.md | 85 +- src/VMware/VMware/help/Get-AzVMwareAddon.md | 21 +- .../VMware/help/Get-AzVMwareAuthorization.md | 30 +- .../VMware/help/Get-AzVMwareCloudLink.md | 30 +- src/VMware/VMware/help/Get-AzVMwareCluster.md | 30 +- .../VMware/help/Get-AzVMwareClusterZone.md | 20 +- .../VMware/help/Get-AzVMwareDatastore.md | 34 +- .../help/Get-AzVMwareGlobalReachConnection.md | 30 +- .../VMware/help/Get-AzVMwareIscsiPath.md | 169 + .../help/Get-AzVMwarePlacementPolicy.md | 34 +- .../VMware/help/Get-AzVMwarePrivateCloud.md | 36 +- ...Get-AzVMwarePrivateCloudAdminCredential.md | 18 +- .../VMware/help/Get-AzVMwareVirtualMachine.md | 34 +- src/VMware/VMware/help/New-AzVMwareAddon.md | 19 +- ... => New-AzVMwareAddonSrmPropertyObject.md} | 29 +- ...d => New-AzVMwareAddonVrPropertyObject.md} | 27 +- .../VMware/help/New-AzVMwareAuthorization.md | 52 +- .../VMware/help/New-AzVMwareCloudLink.md | 30 +- src/VMware/VMware/help/New-AzVMwareCluster.md | 119 +- .../VMware/help/New-AzVMwareDatastore.md | 63 +- .../help/New-AzVMwareGlobalReachConnection.md | 36 +- .../help/New-AzVMwareIdentitySourceObject.md | 209 - .../VMware/help/New-AzVMwareIscsiPath.md | 239 + ...arePSCredentialExecutionParameterObject.md | 36 +- .../help/New-AzVMwarePlacementPolicy.md | 38 +- .../VMware/help/New-AzVMwarePrivateCloud.md | 17 +- .../New-AzVMwarePrivateCloudNsxtPassword.md | 20 +- ...New-AzVMwarePrivateCloudVcenterPassword.md | 20 +- ...iptSecureStringExecutionParameterObject.md | 36 +- ...areScriptStringExecutionParameterObject.md | 29 +- ...zVMwareVMPlacementPolicyPropertyObject.md} | 24 +- ...areVmHostPlacementPolicyPropertyObject.md} | 56 +- .../VMware/help/Remove-AzVMwareAddon.md | 19 +- .../help/Remove-AzVMwareAuthorization.md | 28 +- .../VMware/help/Remove-AzVMwareCloudLink.md | 28 +- .../VMware/help/Remove-AzVMwareCluster.md | 28 +- .../VMware/help/Remove-AzVMwareDatastore.md | 32 +- .../Remove-AzVMwareGlobalReachConnection.md | 28 +- .../VMware/help/Remove-AzVMwareIscsiPath.md | 231 + .../help/Remove-AzVMwarePlacementPolicy.md | 32 +- .../help/Remove-AzVMwarePrivateCloud.md | 19 +- .../Test-AzVMwareLocationQuotaAvailability.md | 20 +- .../Test-AzVMwareLocationTrialAvailability.md | 88 +- .../help/Update-AzVMwareAuthorization.md | 30 +- .../VMware/help/Update-AzVMwareCloudLink.md | 54 +- .../VMware/help/Update-AzVMwareCluster.md | 115 +- .../VMware/help/Update-AzVMwareDatastore.md | 109 +- .../Update-AzVMwareGlobalReachConnection.md | 82 +- .../VMware/help/Update-AzVMwareIscsiPath.md | 224 + .../help/Update-AzVMwarePlacementPolicy.md | 32 +- .../help/Update-AzVMwarePrivateCloud.md | 158 +- 949 files changed, 46720 insertions(+), 25573 deletions(-) delete mode 100644 src/VMware/VMware.Autorest/custom/New-AzVMwareAddonSrmPropertiesObject.ps1 create mode 100644 src/VMware/VMware.Autorest/custom/New-AzVMwareAddonSrmPropertyObject.ps1 delete mode 100644 src/VMware/VMware.Autorest/custom/New-AzVMwareAddonVrPropertiesObject.ps1 create mode 100644 src/VMware/VMware.Autorest/custom/New-AzVMwareAddonVrPropertyObject.ps1 delete mode 100644 src/VMware/VMware.Autorest/custom/autogen-model-cmdlets/New-AzVMwareIdentitySourceObject.ps1 rename src/VMware/VMware.Autorest/custom/{New-AzVMwareVMPlacementPolicyPropertiesObject.ps1 => autogen-model-cmdlets/New-AzVMwareVMPlacementPolicyPropertyObject.ps1} (83%) rename src/VMware/VMware.Autorest/custom/{New-AzVMwareVmHostPlacementPolicyPropertiesObject.ps1 => autogen-model-cmdlets/New-AzVMwareVmHostPlacementPolicyPropertyObject.ps1} (75%) create mode 100644 src/VMware/VMware.Autorest/examples/Get-AzVMwareIscsiPath.md rename src/VMware/VMware.Autorest/examples/{New-AzVMwareAddonSrmPropertiesObject.md => New-AzVMwareAddonSrmPropertyObject.md} (80%) rename src/VMware/VMware.Autorest/examples/{New-AzVMwareAddonVrPropertiesObject.md => New-AzVMwareAddonVrPropertyObject.md} (85%) delete mode 100644 src/VMware/VMware.Autorest/examples/New-AzVMwareIdentitySourceObject.md create mode 100644 src/VMware/VMware.Autorest/examples/New-AzVMwareIscsiPath.md rename src/VMware/VMware.Autorest/examples/{New-AzVMwareVMPlacementPolicyPropertiesObject.md => New-AzVMwareVMPlacementPolicyPropertyObject.md} (74%) rename src/VMware/VMware.Autorest/examples/{New-AzVMwareVmHostPlacementPolicyPropertiesObject.md => New-AzVMwareVmHostPlacementPolicyPropertyObject.md} (76%) create mode 100644 src/VMware/VMware.Autorest/examples/Remove-AzVMwareIscsiPath.md create mode 100644 src/VMware/VMware.Autorest/examples/Update-AzVMwareIscsiPath.md create mode 100644 src/VMware/VMware.Autorest/exports/Get-AzVMwareIscsiPath.ps1 rename src/VMware/VMware.Autorest/exports/{New-AzVMwareAddonSrmPropertiesObject.ps1 => New-AzVMwareAddonSrmPropertyObject.ps1} (93%) rename src/VMware/VMware.Autorest/exports/{New-AzVMwareAddonVrPropertiesObject.ps1 => New-AzVMwareAddonVrPropertyObject.ps1} (94%) delete mode 100644 src/VMware/VMware.Autorest/exports/New-AzVMwareIdentitySourceObject.ps1 create mode 100644 src/VMware/VMware.Autorest/exports/New-AzVMwareIscsiPath.ps1 rename src/VMware/VMware.Autorest/exports/{New-AzVMwareVMPlacementPolicyPropertiesObject.ps1 => New-AzVMwareVMPlacementPolicyPropertyObject.ps1} (91%) rename src/VMware/VMware.Autorest/exports/{New-AzVMwareVmHostPlacementPolicyPropertiesObject.ps1 => New-AzVMwareVmHostPlacementPolicyPropertyObject.ps1} (89%) create mode 100644 src/VMware/VMware.Autorest/exports/Remove-AzVMwareIscsiPath.ps1 create mode 100644 src/VMware/VMware.Autorest/exports/Update-AzVMwareIscsiPath.ps1 rename src/VMware/VMware.Autorest/generated/api/Models/{DatastoreList.PowerShell.cs => AddonListResult.PowerShell.cs} (73%) rename src/VMware/VMware.Autorest/generated/api/Models/{MetricDimension.TypeConverter.cs => AddonListResult.TypeConverter.cs} (89%) rename src/VMware/VMware.Autorest/generated/api/Models/{AddonList.cs => AddonListResult.cs} (55%) rename src/VMware/VMware.Autorest/generated/api/Models/{AddonList.json.cs => AddonListResult.json.cs} (78%) rename src/VMware/VMware.Autorest/generated/api/Models/{VirtualMachinesList.PowerShell.cs => CloudLinkListResult.PowerShell.cs} (76%) rename src/VMware/VMware.Autorest/generated/api/Models/{MetricSpecification.TypeConverter.cs => CloudLinkListResult.TypeConverter.cs} (88%) rename src/VMware/VMware.Autorest/generated/api/Models/{CloudLinkList.cs => CloudLinkListResult.cs} (54%) rename src/VMware/VMware.Autorest/generated/api/Models/{CloudLinkList.json.cs => CloudLinkListResult.json.cs} (78%) rename src/VMware/VMware.Autorest/generated/api/Models/{ScriptCmdletsList.PowerShell.cs => ClusterListResult.PowerShell.cs} (75%) rename src/VMware/VMware.Autorest/generated/api/Models/{ScriptCmdletsList.TypeConverter.cs => ClusterListResult.TypeConverter.cs} (89%) rename src/VMware/VMware.Autorest/generated/api/Models/{ClusterList.cs => ClusterListResult.cs} (55%) rename src/VMware/VMware.Autorest/generated/api/Models/{ClusterList.json.cs => ClusterListResult.json.cs} (78%) delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/CommonClusterProperties.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/CommonClusterProperties.json.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkList.PowerShell.cs => DatastoreListResult.PowerShell.cs} (76%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkList.TypeConverter.cs => DatastoreListResult.TypeConverter.cs} (88%) rename src/VMware/VMware.Autorest/generated/api/Models/{DatastoreList.cs => DatastoreListResult.cs} (54%) rename src/VMware/VMware.Autorest/generated/api/Models/{DatastoreList.json.cs => DatastoreListResult.json.cs} (78%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/ElasticSanVolume.PowerShell.cs rename src/VMware/VMware.Autorest/generated/api/Models/{PrivateCloudList.TypeConverter.cs => ElasticSanVolume.TypeConverter.cs} (89%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/ElasticSanVolume.cs rename src/VMware/VMware.Autorest/generated/api/Models/{OperationProperties.json.cs => ElasticSanVolume.json.cs} (79%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationListResult.PowerShell.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationListResult.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{ExpressRouteAuthorizationList.cs => ExpressRouteAuthorizationListResult.cs} (55%) rename src/VMware/VMware.Autorest/generated/api/Models/{ExpressRouteAuthorizationList.json.cs => ExpressRouteAuthorizationListResult.json.cs} (80%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionListResult.PowerShell.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionListResult.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{GlobalReachConnectionList.cs => GlobalReachConnectionListResult.cs} (54%) rename src/VMware/VMware.Autorest/generated/api/Models/{GlobalReachConnectionList.json.cs => GlobalReachConnectionListResult.json.cs} (81%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkVMGroupsList.PowerShell.cs => HcxEnterpriseSiteListResult.PowerShell.cs} (75%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkSegmentsList.TypeConverter.cs => HcxEnterpriseSiteListResult.TypeConverter.cs} (88%) rename src/VMware/VMware.Autorest/generated/api/Models/{HcxEnterpriseSiteList.cs => HcxEnterpriseSiteListResult.cs} (55%) rename src/VMware/VMware.Autorest/generated/api/Models/{HcxEnterpriseSiteList.json.cs => HcxEnterpriseSiteListResult.json.cs} (80%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/IscsiPath.PowerShell.cs rename src/VMware/VMware.Autorest/generated/api/Models/{AddonList.TypeConverter.cs => IscsiPath.TypeConverter.cs} (89%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/IscsiPath.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/IscsiPath.json.cs rename src/VMware/VMware.Autorest/generated/api/Models/{ClusterList.PowerShell.cs => IscsiPathListResult.PowerShell.cs} (71%) rename src/VMware/VMware.Autorest/generated/api/Models/{VirtualMachinesList.TypeConverter.cs => IscsiPathListResult.TypeConverter.cs} (88%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/IscsiPathListResult.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/IscsiPathListResult.json.cs rename src/VMware/VMware.Autorest/generated/api/Models/{AddonList.PowerShell.cs => IscsiPathProperties.PowerShell.cs} (71%) rename src/VMware/VMware.Autorest/generated/api/Models/{OperationProperties.TypeConverter.cs => IscsiPathProperties.TypeConverter.cs} (89%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/IscsiPathProperties.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/IscsiPathProperties.json.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/LogSpecification.TypeConverter.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/LogSpecification.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/MetricDimension.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/MetricSpecification.PowerShell.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/MetricSpecification.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/MetricSpecification.json.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/OperationList.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{OperationList.PowerShell.cs => OperationListResult.PowerShell.cs} (70%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/OperationListResult.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{OperationList.cs => OperationListResult.cs} (60%) rename src/VMware/VMware.Autorest/generated/api/Models/{OperationList.json.cs => OperationListResult.json.cs} (87%) delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/OperationProperties.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/PlacementPoliciesList.PowerShell.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/PlacementPoliciesList.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{GlobalReachConnectionList.PowerShell.cs => PlacementPolicyListResult.PowerShell.cs} (75%) rename src/VMware/VMware.Autorest/generated/api/Models/{GlobalReachConnectionList.TypeConverter.cs => PlacementPolicyListResult.TypeConverter.cs} (88%) rename src/VMware/VMware.Autorest/generated/api/Models/{PlacementPoliciesList.cs => PlacementPolicyListResult.cs} (53%) rename src/VMware/VMware.Autorest/generated/api/Models/{PlacementPoliciesList.json.cs => PlacementPolicyListResult.json.cs} (79%) delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudIdentity.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{PrivateCloudList.PowerShell.cs => PrivateCloudListResult.PowerShell.cs} (72%) rename src/VMware/VMware.Autorest/generated/api/Models/{DatastoreList.TypeConverter.cs => PrivateCloudListResult.TypeConverter.cs} (84%) rename src/VMware/VMware.Autorest/generated/api/Models/{PrivateCloudList.cs => PrivateCloudListResult.cs} (54%) rename src/VMware/VMware.Autorest/generated/api/Models/{PrivateCloudList.json.cs => PrivateCloudListResult.json.cs} (80%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.PowerShell.cs rename src/VMware/VMware.Autorest/generated/api/Models/{HcxEnterpriseSiteList.TypeConverter.cs => PrivateCloudUpdateTags.TypeConverter.cs} (84%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.dictionary.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.json.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/ResourceTags.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{CloudLinkList.PowerShell.cs => ScriptCmdletListResult.PowerShell.cs} (70%) rename src/VMware/VMware.Autorest/generated/api/Models/{CloudLinkList.TypeConverter.cs => ScriptCmdletListResult.TypeConverter.cs} (84%) rename src/VMware/VMware.Autorest/generated/api/Models/{ScriptCmdletsList.cs => ScriptCmdletListResult.cs} (54%) rename src/VMware/VMware.Autorest/generated/api/Models/{ScriptCmdletsList.json.cs => ScriptCmdletListResult.json.cs} (79%) rename src/VMware/VMware.Autorest/generated/api/Models/{ScriptExecutionsList.PowerShell.cs => ScriptExecutionListResult.PowerShell.cs} (70%) rename src/VMware/VMware.Autorest/generated/api/Models/{ScriptExecutionsList.TypeConverter.cs => ScriptExecutionListResult.TypeConverter.cs} (85%) rename src/VMware/VMware.Autorest/generated/api/Models/{ScriptExecutionsList.cs => ScriptExecutionListResult.cs} (53%) rename src/VMware/VMware.Autorest/generated/api/Models/{ScriptExecutionsList.json.cs => ScriptExecutionListResult.json.cs} (79%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkDhcpList.PowerShell.cs => ScriptPackageListResult.PowerShell.cs} (75%) rename src/VMware/VMware.Autorest/generated/api/Models/{CommonClusterProperties.TypeConverter.cs => ScriptPackageListResult.TypeConverter.cs} (88%) rename src/VMware/VMware.Autorest/generated/api/Models/{ScriptPackagesList.cs => ScriptPackageListResult.cs} (53%) rename src/VMware/VMware.Autorest/generated/api/Models/{ScriptPackagesList.json.cs => ScriptPackageListResult.json.cs} (79%) delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/ScriptPackagesList.PowerShell.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/ScriptPackagesList.TypeConverter.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/ServiceSpecification.PowerShell.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/ServiceSpecification.TypeConverter.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/ServiceSpecification.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/ServiceSpecification.json.cs rename src/VMware/VMware.Autorest/generated/api/Models/{PrivateCloudIdentity.PowerShell.cs => SystemAssignedServiceIdentity.PowerShell.cs} (69%) rename src/VMware/VMware.Autorest/generated/api/Models/{ExpressRouteAuthorizationList.TypeConverter.cs => SystemAssignedServiceIdentity.TypeConverter.cs} (86%) rename src/VMware/VMware.Autorest/generated/api/Models/{PrivateCloudIdentity.cs => SystemAssignedServiceIdentity.cs} (51%) rename src/VMware/VMware.Autorest/generated/api/Models/{PrivateCloudIdentity.json.cs => SystemAssignedServiceIdentity.json.cs} (87%) rename src/VMware/VMware.Autorest/generated/api/Models/{OperationProperties.PowerShell.cs => SystemData.PowerShell.cs} (55%) rename src/VMware/VMware.Autorest/generated/api/Models/{ClusterList.TypeConverter.cs => SystemData.TypeConverter.cs} (86%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/SystemData.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/SystemData.json.cs rename src/VMware/VMware.Autorest/generated/api/Models/{ResourceTags.PowerShell.cs => TrackedResourceTags.PowerShell.cs} (82%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/TrackedResourceTags.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{ResourceTags.cs => TrackedResourceTags.cs} (55%) rename src/VMware/VMware.Autorest/generated/api/Models/{ResourceTags.dictionary.cs => TrackedResourceTags.dictionary.cs} (96%) rename src/VMware/VMware.Autorest/generated/api/Models/{ResourceTags.json.cs => TrackedResourceTags.json.cs} (84%) rename src/VMware/VMware.Autorest/generated/api/Models/{HcxEnterpriseSiteList.PowerShell.cs => VirtualMachineListResult.PowerShell.cs} (69%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineListResult.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{VirtualMachinesList.cs => VirtualMachineListResult.cs} (53%) rename src/VMware/VMware.Autorest/generated/api/Models/{VirtualMachinesList.json.cs => VirtualMachineListResult.json.cs} (79%) rename src/VMware/VMware.Autorest/generated/api/Models/{LogSpecification.PowerShell.cs => WorkloadNetworkDhcpEntityUpdate.PowerShell.cs} (67%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntityUpdate.TypeConverter.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntityUpdate.cs rename src/VMware/VMware.Autorest/generated/api/Models/{MetricDimension.json.cs => WorkloadNetworkDhcpEntityUpdate.json.cs} (67%) rename src/VMware/VMware.Autorest/generated/api/Models/{ExpressRouteAuthorizationList.PowerShell.cs => WorkloadNetworkDhcpListResult.PowerShell.cs} (74%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpListResult.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkDhcpList.cs => WorkloadNetworkDhcpListResult.cs} (55%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkDhcpList.json.cs => WorkloadNetworkDhcpListResult.json.cs} (80%) rename src/VMware/VMware.Autorest/generated/api/Models/{CommonClusterProperties.PowerShell.cs => WorkloadNetworkDhcpRelayUpdate.PowerShell.cs} (62%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkDnsServicesList.TypeConverter.cs => WorkloadNetworkDhcpRelayUpdate.TypeConverter.cs} (87%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpRelayUpdate.cs rename src/VMware/VMware.Autorest/generated/api/Models/{LogSpecification.json.cs => WorkloadNetworkDhcpRelayUpdate.json.cs} (71%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServerUpdate.PowerShell.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServerUpdate.TypeConverter.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServerUpdate.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServerUpdate.json.cs rename src/VMware/VMware.Autorest/generated/api/Models/{MetricDimension.PowerShell.cs => WorkloadNetworkDhcpUpdate.PowerShell.cs} (64%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkDhcpList.TypeConverter.cs => WorkloadNetworkDhcpUpdate.TypeConverter.cs} (85%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpUpdate.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpUpdate.json.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkDnsServicesList.PowerShell.cs => WorkloadNetworkDnsServiceListResult.PowerShell.cs} (70%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceListResult.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkDnsServicesList.cs => WorkloadNetworkDnsServiceListResult.cs} (55%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkDnsServicesList.json.cs => WorkloadNetworkDnsServiceListResult.json.cs} (81%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceUpdate.PowerShell.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceUpdate.TypeConverter.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceUpdate.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceUpdate.json.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkPortMirroringList.PowerShell.cs => WorkloadNetworkDnsZoneListResult.PowerShell.cs} (74%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkPortMirroringList.TypeConverter.cs => WorkloadNetworkDnsZoneListResult.TypeConverter.cs} (87%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkDnsZonesList.cs => WorkloadNetworkDnsZoneListResult.cs} (54%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkDnsZonesList.json.cs => WorkloadNetworkDnsZoneListResult.json.cs} (80%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneUpdate.PowerShell.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkPublicIPsList.TypeConverter.cs => WorkloadNetworkDnsZoneUpdate.TypeConverter.cs} (87%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneUpdate.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneUpdate.json.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkGatewayList.PowerShell.cs => WorkloadNetworkGatewayListResult.PowerShell.cs} (71%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkGatewayList.TypeConverter.cs => WorkloadNetworkGatewayListResult.TypeConverter.cs} (85%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkGatewayList.cs => WorkloadNetworkGatewayListResult.cs} (54%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkGatewayList.json.cs => WorkloadNetworkGatewayListResult.json.cs} (81%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkListResult.PowerShell.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkListResult.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkList.cs => WorkloadNetworkListResult.cs} (55%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkList.json.cs => WorkloadNetworkListResult.json.cs} (80%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringListResult.PowerShell.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringListResult.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkPortMirroringList.cs => WorkloadNetworkPortMirroringListResult.cs} (57%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkPortMirroringList.json.cs => WorkloadNetworkPortMirroringListResult.json.cs} (80%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringUpdate.PowerShell.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkVirtualMachinesList.TypeConverter.cs => WorkloadNetworkPortMirroringUpdate.TypeConverter.cs} (87%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringUpdate.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringUpdate.json.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkProperties.PowerShell.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkProperties.TypeConverter.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkProperties.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkProperties.json.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkPublicIPsList.PowerShell.cs => WorkloadNetworkPublicIPListResult.PowerShell.cs} (70%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPListResult.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkPublicIPsList.cs => WorkloadNetworkPublicIPListResult.cs} (55%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkPublicIPsList.json.cs => WorkloadNetworkPublicIPListResult.json.cs} (80%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkSegmentsList.PowerShell.cs => WorkloadNetworkSegmentListResult.PowerShell.cs} (71%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentListResult.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkSegmentsList.cs => WorkloadNetworkSegmentListResult.cs} (54%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkSegmentsList.json.cs => WorkloadNetworkSegmentListResult.json.cs} (80%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentUpdate.PowerShell.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentUpdate.TypeConverter.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentUpdate.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentUpdate.json.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkDnsZonesList.PowerShell.cs => WorkloadNetworkVMGroupListResult.PowerShell.cs} (69%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupListResult.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkVMGroupsList.cs => WorkloadNetworkVMGroupListResult.cs} (54%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkVMGroupsList.json.cs => WorkloadNetworkVMGroupListResult.json.cs} (80%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupUpdate.PowerShell.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkDnsZonesList.TypeConverter.cs => WorkloadNetworkVMGroupUpdate.TypeConverter.cs} (84%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupUpdate.cs create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupUpdate.json.cs delete mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupsList.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkVirtualMachinesList.PowerShell.cs => WorkloadNetworkVirtualMachineListResult.PowerShell.cs} (70%) create mode 100644 src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineListResult.TypeConverter.cs rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkVirtualMachinesList.cs => WorkloadNetworkVirtualMachineListResult.cs} (55%) rename src/VMware/VMware.Autorest/generated/api/Models/{WorkloadNetworkVirtualMachinesList.json.cs => WorkloadNetworkVirtualMachineListResult.json.cs} (81%) create mode 100644 src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareIscsiPath_Get.cs create mode 100644 src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareIscsiPath_GetViaIdentity.cs create mode 100644 src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareIscsiPath_List.cs create mode 100644 src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareIscsiPath_CreateExpanded.cs create mode 100644 src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareIscsiPath_CreateViaIdentityExpanded.cs create mode 100644 src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareIscsiPath_Delete.cs create mode 100644 src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareIscsiPath_DeleteViaIdentity.cs create mode 100644 src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareIscsiPath_UpdateExpanded.cs create mode 100644 src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareIscsiPath_UpdateViaIdentityExpanded.cs create mode 100644 src/VMware/VMware.Autorest/help/Get-AzVMwareIscsiPath.md rename src/VMware/VMware.Autorest/help/{New-AzVMwareAddonSrmPropertiesObject.md => New-AzVMwareAddonSrmPropertyObject.md} (74%) rename src/VMware/VMware.Autorest/help/{New-AzVMwareAddonVrPropertiesObject.md => New-AzVMwareAddonVrPropertyObject.md} (75%) delete mode 100644 src/VMware/VMware.Autorest/help/New-AzVMwareIdentitySourceObject.md create mode 100644 src/VMware/VMware.Autorest/help/New-AzVMwareIscsiPath.md rename src/VMware/VMware.Autorest/help/{New-AzVMwareVMPlacementPolicyPropertiesObject.md => New-AzVMwareVMPlacementPolicyPropertyObject.md} (77%) rename src/VMware/VMware.Autorest/help/{New-AzVMwareVmHostPlacementPolicyPropertiesObject.md => New-AzVMwareVmHostPlacementPolicyPropertyObject.md} (73%) create mode 100644 src/VMware/VMware.Autorest/help/Remove-AzVMwareIscsiPath.md create mode 100644 src/VMware/VMware.Autorest/help/Update-AzVMwareIscsiPath.md rename src/VMware/VMware.Autorest/test/{AzVMwareAddonSrmPropertiesObject.Tests.ps1 => AzVMwareAddonSrmPropertyObject.Tests.ps1} (78%) rename src/VMware/VMware.Autorest/test/{AzVMwareAddonVrPropertiesObject.Tests.ps1 => AzVMwareAddonVrPropertyObject.Tests.ps1} (81%) rename src/VMware/VMware.Autorest/test/{AzVMwareVMPlacementPolicyPropertiesObject.Tests.ps1 => AzVMwareVMPlacementPolicyPropertyObject.Tests.ps1} (73%) rename src/VMware/VMware.Autorest/test/{AzVMwareVmHostPlacementPolicyPropertiesObject.Tests.ps1 => AzVMwareVmHostPlacementPolicyPropertyObject.Tests.ps1} (70%) delete mode 100644 src/VMware/VMware.Autorest/test/Get-AzVMwareHcxEnterpriseSite.Tests.ps1 rename src/VMware/VMware.Autorest/test/{Get-AzVMwareScriptExecutionLog.Tests.ps1 => Get-AzVMwareIscsiPath.Tests.ps1} (73%) delete mode 100644 src/VMware/VMware.Autorest/test/Get-AzVMwareScriptCmdlet.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Get-AzVMwareScriptExecution.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Get-AzVMwareScriptPackage.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkDhcp.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkDnsService.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkGateway.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkPortMirroring.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkPublicIP.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkSegment.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkVM.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Lock-AzVMwareVirtualMachineMovement.Tests.ps1 rename src/VMware/VMware.Autorest/test/{New-AzVMwareAddonVrPropertiesObject.Tests.ps1 => New-AzVMwareAddonSrmPropertyObject.Tests.ps1} (86%) rename src/VMware/VMware.Autorest/test/{New-AzVMwareAddonSrmPropertiesObject.Tests.ps1 => New-AzVMwareAddonVrPropertyObject.Tests.ps1} (86%) delete mode 100644 src/VMware/VMware.Autorest/test/New-AzVMwareHcxEnterpriseSite.Tests.ps1 rename src/VMware/VMware.Autorest/test/{New-AzVMwareIdentitySourceObject.Tests.ps1 => New-AzVMwareIscsiPath.Tests.ps1} (68%) delete mode 100644 src/VMware/VMware.Autorest/test/New-AzVMwareScriptExecution.Tests.ps1 rename src/VMware/VMware.Autorest/test/{New-AzVMwareVMPlacementPolicyPropertiesObject.Tests.ps1 => New-AzVMwareVMPlacementPolicyPropertyObject.Tests.ps1} (83%) rename src/VMware/VMware.Autorest/test/{New-AzVMwareVmHostPlacementPolicyPropertiesObject.Tests.ps1 => New-AzVMwareVmHostPlacementPolicyPropertyObject.Tests.ps1} (82%) delete mode 100644 src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkDhcp.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkDnsService.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkPortMirroring.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkPublicIP.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkSegment.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Remove-AzVMwareHcxEnterpriseSite.Tests.ps1 rename src/VMware/VMware.Autorest/test/{Remove-AzVMwareScriptExecution.Tests.ps1 => Remove-AzVMwareIscsiPath.Tests.ps1} (72%) delete mode 100644 src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkDhcp.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkDnsService.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkPortMirroring.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkPublicIP.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkSegment.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 rename src/VMware/VMware.Autorest/test/{Update-AzVMwareWorkloadNetworkDhcp.Tests.ps1 => Update-AzVMwareIscsiPath.Tests.ps1} (71%) delete mode 100644 src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkDnsService.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkPortMirroring.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkSegment.Tests.ps1 delete mode 100644 src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 create mode 100644 src/VMware/VMware/help/Get-AzVMwareIscsiPath.md rename src/VMware/VMware/help/{New-AzVMwareAddonSrmPropertiesObject.md => New-AzVMwareAddonSrmPropertyObject.md} (62%) rename src/VMware/VMware/help/{New-AzVMwareAddonVrPropertiesObject.md => New-AzVMwareAddonVrPropertyObject.md} (62%) delete mode 100644 src/VMware/VMware/help/New-AzVMwareIdentitySourceObject.md create mode 100644 src/VMware/VMware/help/New-AzVMwareIscsiPath.md rename src/VMware/VMware/help/{New-AzVMwareVMPlacementPolicyPropertiesObject.md => New-AzVMwareVMPlacementPolicyPropertyObject.md} (78%) rename src/VMware/VMware/help/{New-AzVMwareVmHostPlacementPolicyPropertiesObject.md => New-AzVMwareVmHostPlacementPolicyPropertyObject.md} (67%) create mode 100644 src/VMware/VMware/help/Remove-AzVMwareIscsiPath.md create mode 100644 src/VMware/VMware/help/Update-AzVMwareIscsiPath.md diff --git a/src/VMware/VMware.Autorest/Az.VMware.format.ps1xml b/src/VMware/VMware.Autorest/Az.VMware.format.ps1xml index 2587402beb61..42aab4574e02 100644 --- a/src/VMware/VMware.Autorest/Az.VMware.format.ps1xml +++ b/src/VMware/VMware.Autorest/Az.VMware.format.ps1xml @@ -11,6 +11,24 @@ + + + + + + + + + + + + + + + + + + @@ -21,6 +39,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + ResourceGroupName @@ -98,9 +134,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonListResult#Multiple @@ -327,6 +363,24 @@ + + + + + + + + + + + + + + + + + + @@ -337,6 +391,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + ResourceGroupName @@ -346,9 +418,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkListResult#Multiple @@ -377,6 +449,9 @@ + + + @@ -387,6 +462,9 @@ LinkedCloud + + ProvisioningState + Status @@ -405,6 +483,24 @@ + + + + + + + + + + + + + + + + + + @@ -415,6 +511,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + ResourceGroupName @@ -424,9 +538,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterListResult#Multiple @@ -461,6 +575,9 @@ + + + @@ -474,6 +591,9 @@ ProvisioningState + + VsanDatastoreName + @@ -523,40 +643,6 @@ - - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CommonClusterProperties - - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CommonClusterProperties#Multiple - - - - - - - - - - - - - - - - - - ClusterId - - - ClusterSize - - - ProvisioningState - - - - - - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Datastore @@ -598,9 +684,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DatastoreList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DatastoreListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DatastoreList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DatastoreListResult#Multiple @@ -687,6 +773,28 @@ + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ElasticSanVolume + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ElasticSanVolume#Multiple + + + + + + + + + + + + TargetId + + + + + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Encryption @@ -771,9 +879,18 @@ + + + + + + + + + @@ -784,9 +901,18 @@ HcxCloudManager + + HcxCloudManagerIP + NsxtManager + + NsxtManagerIP + + + VcenterIP + Vcsa @@ -839,6 +965,24 @@ + + + + + + + + + + + + + + + + + + @@ -849,6 +993,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + ResourceGroupName @@ -858,9 +1020,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationListResult#Multiple @@ -929,6 +1091,24 @@ + + + + + + + + + + + + + + + + + + @@ -939,6 +1119,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + ResourceGroupName @@ -948,9 +1146,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnectionList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnectionListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnectionList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnectionListResult#Multiple @@ -1031,6 +1229,24 @@ + + + + + + + + + + + + + + + + + + @@ -1041,6 +1257,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + ResourceGroupName @@ -1050,9 +1284,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSiteList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSiteListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSiteList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSiteListResult#Multiple @@ -1081,6 +1315,9 @@ + + + @@ -1091,6 +1328,9 @@ ActivationKey + + ProvisioningState + Status @@ -1121,9 +1361,6 @@ - - - @@ -1155,9 +1392,6 @@ Name - - Password - PrimaryServer @@ -1176,33 +1410,63 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.LogSpecification + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPath - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.LogSpecification#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPath#Multiple - + - + - + + + + + + + + + + + + + + + + - BlobDuration + Name - DisplayName + SystemDataCreatedAt - Name + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + ResourceGroupName @@ -1210,33 +1474,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ManagementCluster + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPathListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ManagementCluster#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPathListResult#Multiple - - - - - - - + - ClusterId - - - ClusterSize - - - ProvisioningState + NextLink @@ -1244,39 +1496,27 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.MetricDimension + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPathProperties - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.MetricDimension#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPathProperties#Multiple - - - - - - - + - + - DisplayName - - - InternalName - - - Name + NetworkBlock - ToBeExportedForShoebox + ProvisioningState @@ -1284,75 +1524,39 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.MetricSpecification + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ManagementCluster - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.MetricSpecification#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ManagementCluster#Multiple - - - - - - - - - - - - - - - - - - - + - + - + - + - AggregationType - - - Category - - - DisplayDescription - - - DisplayName - - - EnableRegionalMdmAccount - - - FillGapWithZero - - - Name + ClusterId - SourceMdmAccount + ClusterSize - SourceMdmNamespace + ProvisioningState - Unit + VsanDatastoreName @@ -1366,6 +1570,9 @@ + + + @@ -1379,6 +1586,9 @@ + + ActionType + IsDataAction @@ -1434,9 +1644,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationListResult#Multiple @@ -1456,21 +1666,63 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPoliciesList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicy - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPoliciesList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicy#Multiple - + + + + + + + + + + + + + + + + + + + + + + - NextLink + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + ResourceGroupName @@ -1478,27 +1730,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicy + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicyListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicy#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicyListResult#Multiple - - - - + - Name - - - ResourceGroupName + NextLink @@ -1586,6 +1832,24 @@ + + + + + + + + + + + + + + + + + + @@ -1600,35 +1864,25 @@ Name - ResourceGroupName + SystemDataCreatedAt - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudIdentity - - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudIdentity#Multiple - - - - - - - - - - - - - - PrincipalId + SystemDataCreatedBy - TenantId + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + ResourceGroupName @@ -1636,9 +1890,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudListResult#Multiple @@ -1665,47 +1919,11 @@ - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1718,9 +1936,6 @@ - - - @@ -1731,7 +1946,7 @@ - + @@ -1741,47 +1956,11 @@ - AvailabilitySecondaryZone - - - AvailabilityStrategy - - - AvailabilityZone - - - EncryptionStatus + DnsZoneType Internet - - KeyVaultPropertyAutoDetectedKeyVersion - - - KeyVaultPropertyKeyName - - - KeyVaultPropertyKeyState - - - KeyVaultPropertyKeyVaultUrl - - - KeyVaultPropertyKeyVersion - - - KeyVaultPropertyVersionType - - - ManagementClusterId - - - ManagementClusterProvisioningState - - - ManagementClusterSize - ManagementNetwork @@ -1794,9 +1973,6 @@ NsxtCertificateThumbprint - - NsxtPassword - ProvisioningNetwork @@ -1807,7 +1983,7 @@ VcenterCertificateThumbprint - VcenterPassword + VirtualNetworkId VmotionNetwork @@ -1824,6 +2000,9 @@ + + + @@ -1831,6 +2010,9 @@ + + DnsZoneType + Internet @@ -1840,21 +2022,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdateTags - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdateTags#Multiple - + - Name + Item @@ -1862,9 +2044,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PsCredentialExecutionParameter + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PsCredentialExecutionParameter#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource#Multiple @@ -1872,10 +2054,22 @@ - + - + + + + + + + + + + + + + @@ -1885,10 +2079,22 @@ Name - Password + SystemDataCreatedAt - Username + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType @@ -1896,21 +2102,27 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Quota + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PsCredentialExecutionParameter - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Quota#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PsCredentialExecutionParameter#Multiple - + + + + - Enabled + Name + + + Username @@ -1918,21 +2130,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.QuotaHostsRemaining + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Quota - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.QuotaHostsRemaining#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Quota#Multiple - + - Item + Enabled @@ -1940,21 +2152,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.QuotaHostsRemaining - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.QuotaHostsRemaining#Multiple - + - Name + Item @@ -1962,21 +2174,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ResourceTags + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ResourceTags#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource#Multiple - + - Item + Name @@ -1993,6 +2205,24 @@ + + + + + + + + + + + + + + + + + + @@ -2003,6 +2233,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + ResourceGroupName @@ -2012,27 +2260,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletProperties + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletProperties#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletListResult#Multiple - - - - + - Description - - - Timeout + NextLink @@ -2040,21 +2282,39 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletsList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletProperties - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletsList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletProperties#Multiple - + + + + + + + + + + - NextLink + Audience + + + Description + + + ProvisioningState + + + Timeout @@ -2071,6 +2331,24 @@ + + + + + + + + + + + + + + + + + + @@ -2081,6 +2359,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + ResourceGroupName @@ -2089,6 +2385,28 @@ + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionListResult + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionListResult#Multiple + + + + + + + + + + + + NextLink + + + + + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionParameter @@ -2176,21 +2494,63 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionsList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackage - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionsList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackage#Multiple - + + + + + + + + + + + + + + + + + + + + + + - NextLink + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + ResourceGroupName @@ -2198,27 +2558,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackage + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackageListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackage#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackageListResult#Multiple - - - - + - Name - - - ResourceGroupName + NextLink @@ -2238,6 +2592,9 @@ + + + @@ -2255,32 +2612,13 @@ Description - Uri + ProvisioningState - Version + Uri - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackagesList - - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackagesList#Multiple - - - - - - - - - - - NextLink + Version @@ -2337,9 +2675,6 @@ - - - @@ -2347,9 +2682,6 @@ Name - - SecureValue - @@ -2390,43 +2722,67 @@ + + + + + + + + + + + + + + Capacity + + + Family + Name + + Size + + + Tier + - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.TrackedResource + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemAssignedServiceIdentity - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.TrackedResource#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemAssignedServiceIdentity#Multiple - + - + - Name + PrincipalId - Location + TenantId @@ -2434,37 +2790,61 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Trial + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemData - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Trial#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemData#Multiple - + - + + + + + + + + + + + + + - AvailableHost + CreatedAt - Status + CreatedBy - - - - - - - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachine + + CreatedByType + + + LastModifiedAt + + + LastModifiedBy + + + LastModifiedByType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.TrackedResource - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachine#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.TrackedResource#Multiple @@ -2472,7 +2852,25 @@ - + + + + + + + + + + + + + + + + + + + @@ -2482,7 +2880,25 @@ Name - ResourceGroupName + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location @@ -2490,39 +2906,113 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineProperties + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.TrackedResourceTags - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineProperties#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.TrackedResourceTags#Multiple - + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Trial + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Trial#Multiple + + + + + - + + + + + + + + AvailableHost + + + Status + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachine + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachine#Multiple + + + + + - + - + + + + + + + + + + + + + + + + - DisplayName + Name - FolderPath + SystemDataCreatedAt - MoRefId + SystemDataCreatedBy - RestrictMovement + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + ResourceGroupName @@ -2530,12 +3020,46 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineRestrictMovement + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineRestrictMovement#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineListResult#Multiple + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineProperties + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineProperties#Multiple + + + + + + + + + + + + + + + @@ -2543,6 +3067,18 @@ + + DisplayName + + + FolderPath + + + MoRefId + + + ProvisioningState + RestrictMovement @@ -2552,21 +3088,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachinesList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineRestrictMovement - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachinesList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineRestrictMovement#Multiple - + - NextLink + RestrictMovement @@ -2744,9 +3280,6 @@ - - - @@ -2823,9 +3356,6 @@ VirtualMachineId - - WorkloadNetworkName - @@ -2841,6 +3371,24 @@ + + + + + + + + + + + + + + + + + + @@ -2851,6 +3399,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + ResourceGroupName @@ -2869,6 +3435,24 @@ + + + + + + + + + + + + + + + + + + @@ -2879,6 +3463,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + ResourceGroupName @@ -2928,21 +3530,33 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpEntityUpdate - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpEntityUpdate#Multiple - + + + + + + + - NextLink + DhcpType + + + DisplayName + + + Revision @@ -2950,19 +3564,41 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpRelay + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpRelay#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpListResult#Multiple - - - - + - + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpRelay + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpRelay#Multiple + + + + + + + + + + @@ -2989,6 +3625,40 @@ + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpRelayUpdate + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpRelayUpdate#Multiple + + + + + + + + + + + + + + + + + + DhcpType + + + DisplayName + + + Revision + + + + + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpServer @@ -3041,6 +3711,52 @@ + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpServerUpdate + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpServerUpdate#Multiple + + + + + + + + + + + + + + + + + + + + + + + + DhcpType + + + DisplayName + + + Revision + + + LeaseTime + + + ServerAddress + + + + + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsService @@ -3051,6 +3767,24 @@ + + + + + + + + + + + + + + + + + + @@ -3061,6 +3795,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + ResourceGroupName @@ -3069,6 +3821,28 @@ + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServiceListResult + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServiceListResult#Multiple + + + + + + + + + + + + NextLink + + + + + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServiceProperties @@ -3128,21 +3902,63 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServicesList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZone - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServicesList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZone#Multiple - + + + + + + + + + + + + + + + + + + + + + + - NextLink + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + ResourceGroupName @@ -3150,27 +3966,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZone + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZoneListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZone#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZoneListResult#Multiple - - - - + - Name - - - ResourceGroupName + NextLink @@ -3223,28 +4033,6 @@ - - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZonesList - - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZonesList#Multiple - - - - - - - - - - - - NextLink - - - - - - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGateway @@ -3255,6 +4043,24 @@ + + + + + + + + + + + + + + + + + + @@ -3265,6 +4071,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + ResourceGroupName @@ -3274,9 +4098,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGatewayList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGatewayListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGatewayList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGatewayListResult#Multiple @@ -3308,6 +4132,9 @@ + + + @@ -3318,15 +4145,18 @@ Path + + ProvisioningState + - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkListResult#Multiple @@ -3355,6 +4185,24 @@ + + + + + + + + + + + + + + + + + + @@ -3365,6 +4213,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + ResourceGroupName @@ -3374,9 +4240,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringListResult#Multiple @@ -3453,6 +4319,28 @@ + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkProperties + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkProperties#Multiple + + + + + + + + + + + + ProvisioningState + + + + + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIP @@ -3463,6 +4351,24 @@ + + + + + + + + + + + + + + + + + + @@ -3473,6 +4379,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + ResourceGroupName @@ -3481,6 +4405,28 @@ + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIPListResult + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIPListResult#Multiple + + + + + + + + + + + + NextLink + + + + + + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIPProperties @@ -3522,21 +4468,63 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIPsList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegment - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIPsList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegment#Multiple - + + + + + + + + + + + + + + + + + + + + + + - NextLink + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + ResourceGroupName @@ -3544,27 +4532,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegment + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegment#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentListResult#Multiple - - - - + - Name - - - ResourceGroupName + NextLink @@ -3640,21 +4622,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentsList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentSubnet - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentsList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentSubnet#Multiple - + - NextLink + GatewayAddress @@ -3662,21 +4644,63 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentSubnet + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachine - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentSubnet#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachine#Multiple - + + + + + + + + + + + + + + + + + + + + + + - GatewayAddress + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + ResourceGroupName @@ -3684,27 +4708,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachine + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachineListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachine#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachineListResult#Multiple - - - - + - Name - - - ResourceGroupName + NextLink @@ -3721,6 +4739,9 @@ + + + @@ -3731,6 +4752,9 @@ DisplayName + + ProvisioningState + VMType @@ -3740,21 +4764,63 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachinesList + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroup - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachinesList#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroup#Multiple - + + + + + + + + + + + + + + + + + + + + + + - NextLink + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + ResourceGroupName @@ -3762,27 +4828,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroup + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupListResult - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroup#Multiple + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupListResult#Multiple - - - - + - Name - - - ResourceGroupName + NextLink @@ -3829,27 +4889,5 @@ - - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupsList - - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupsList#Multiple - - - - - - - - - - - - NextLink - - - - - - \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/Az.VMware.psd1 b/src/VMware/VMware.Autorest/Az.VMware.psd1 index 424c2ddd1dc2..bf4c8056f02f 100644 --- a/src/VMware/VMware.Autorest/Az.VMware.psd1 +++ b/src/VMware/VMware.Autorest/Az.VMware.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.VMware.private.dll' FormatsToProcess = './Az.VMware.format.ps1xml' - FunctionsToExport = 'Get-AzVMwareAddon', 'Get-AzVMwareAuthorization', 'Get-AzVMwareCloudLink', 'Get-AzVMwareCluster', 'Get-AzVMwareClusterZone', 'Get-AzVMwareDatastore', 'Get-AzVMwareGlobalReachConnection', 'Get-AzVMwarePlacementPolicy', 'Get-AzVMwarePrivateCloud', 'Get-AzVMwarePrivateCloudAdminCredential', 'Get-AzVMwareVirtualMachine', 'New-AzVMwareAddon', 'New-AzVMwareAddonSrmPropertiesObject', 'New-AzVMwareAddonVrPropertiesObject', 'New-AzVMwareAuthorization', 'New-AzVMwareCloudLink', 'New-AzVMwareCluster', 'New-AzVMwareDatastore', 'New-AzVMwareGlobalReachConnection', 'New-AzVMwareIdentitySourceObject', 'New-AzVMwarePlacementPolicy', 'New-AzVMwarePrivateCloud', 'New-AzVMwarePrivateCloudNsxtPassword', 'New-AzVMwarePrivateCloudVcenterPassword', 'New-AzVMwarePSCredentialExecutionParameterObject', 'New-AzVMwareScriptSecureStringExecutionParameterObject', 'New-AzVMwareScriptStringExecutionParameterObject', 'New-AzVMwareVmHostPlacementPolicyPropertiesObject', 'New-AzVMwareVMPlacementPolicyPropertiesObject', 'Remove-AzVMwareAddon', 'Remove-AzVMwareAuthorization', 'Remove-AzVMwareCloudLink', 'Remove-AzVMwareCluster', 'Remove-AzVMwareDatastore', 'Remove-AzVMwareGlobalReachConnection', 'Remove-AzVMwarePlacementPolicy', 'Remove-AzVMwarePrivateCloud', 'Test-AzVMwareLocationQuotaAvailability', 'Test-AzVMwareLocationTrialAvailability', 'Update-AzVMwareAuthorization', 'Update-AzVMwareCloudLink', 'Update-AzVMwareCluster', 'Update-AzVMwareDatastore', 'Update-AzVMwareGlobalReachConnection', 'Update-AzVMwarePlacementPolicy', 'Update-AzVMwarePrivateCloud' + FunctionsToExport = 'Get-AzVMwareAddon', 'Get-AzVMwareAuthorization', 'Get-AzVMwareCloudLink', 'Get-AzVMwareCluster', 'Get-AzVMwareClusterZone', 'Get-AzVMwareDatastore', 'Get-AzVMwareGlobalReachConnection', 'Get-AzVMwareIscsiPath', 'Get-AzVMwarePlacementPolicy', 'Get-AzVMwarePrivateCloud', 'Get-AzVMwarePrivateCloudAdminCredential', 'Get-AzVMwareVirtualMachine', 'New-AzVMwareAddon', 'New-AzVMwareAddonSrmPropertyObject', 'New-AzVMwareAddonVrPropertyObject', 'New-AzVMwareAuthorization', 'New-AzVMwareCloudLink', 'New-AzVMwareCluster', 'New-AzVMwareDatastore', 'New-AzVMwareGlobalReachConnection', 'New-AzVMwareIscsiPath', 'New-AzVMwarePlacementPolicy', 'New-AzVMwarePrivateCloud', 'New-AzVMwarePrivateCloudNsxtPassword', 'New-AzVMwarePrivateCloudVcenterPassword', 'New-AzVMwarePSCredentialExecutionParameterObject', 'New-AzVMwareScriptSecureStringExecutionParameterObject', 'New-AzVMwareScriptStringExecutionParameterObject', 'New-AzVMwareVmHostPlacementPolicyPropertyObject', 'New-AzVMwareVMPlacementPolicyPropertyObject', 'Remove-AzVMwareAddon', 'Remove-AzVMwareAuthorization', 'Remove-AzVMwareCloudLink', 'Remove-AzVMwareCluster', 'Remove-AzVMwareDatastore', 'Remove-AzVMwareGlobalReachConnection', 'Remove-AzVMwareIscsiPath', 'Remove-AzVMwarePlacementPolicy', 'Remove-AzVMwarePrivateCloud', 'Test-AzVMwareLocationQuotaAvailability', 'Test-AzVMwareLocationTrialAvailability', 'Update-AzVMwareAuthorization', 'Update-AzVMwareCloudLink', 'Update-AzVMwareCluster', 'Update-AzVMwareDatastore', 'Update-AzVMwareGlobalReachConnection', 'Update-AzVMwareIscsiPath', 'Update-AzVMwarePlacementPolicy', 'Update-AzVMwarePrivateCloud' PrivateData = @{ PSData = @{ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'VMware' diff --git a/src/VMware/VMware.Autorest/README.md b/src/VMware/VMware.Autorest/README.md index a8c94d7ddf60..7bfe56faa074 100644 --- a/src/VMware/VMware.Autorest/README.md +++ b/src/VMware/VMware.Autorest/README.md @@ -44,17 +44,15 @@ In this directory, run AutoRest: > see https://aka.ms/autorest ``` yaml -commit: 0baf811c3c76c87b3c127d098519bd97141222dd +commit: e934daa5febe039d94794aa0ffc53a7f996db11f require: - $(this-folder)/../../readme.azure.noprofile.md input-file: - - $(repo)/specification/vmware/resource-manager/Microsoft.AVS/stable/2023-03-01/vmware.json + - $(repo)/specification/vmware/resource-manager/Microsoft.AVS/stable/2023-09-01/vmware.json module-version: 0.4.0 title: VMware subject-prefix: $(service-name) -disable-transform-identity-type: true -flatten-userassignedidentity: false support-json-input: false @@ -157,17 +155,19 @@ directive: - no-inline: - AddonProperties - PlacementPolicyProperties - - model-cmdlet: - - model-name: IdentitySource # Re-name and custom it - # - model-cmdlet: - # - VMPlacementPolicyProperties - # - VmHostPlacementPolicyProperties - # - ScriptSecureStringExecutionParameter - # - ScriptStringExecutionParameter - # - PSCredentialExecutionParameter - # - AddonSrmProperties - # - AddonVrProperties + - model-cmdlet: + - model-name: VMPlacementPolicyProperties + cmdlet-name: New-AzVMwareVMPlacementPolicyPropertyObject + - model-name: VmHostPlacementPolicyProperties + cmdlet-name: New-AzVMwareVmHostPlacementPolicyPropertyObject + # - model-name: ScriptSecureStringExecutionParameter + # - model-name: ScriptStringExecutionParameter + # - model-name: PSCredentialExecutionParameter + # - model-name: AddonSrmProperties + # cmdlet-name: New-AzVMwareAddonSrmPropertyObject + # - model-name: AddonVrProperties + # cmdlet-name: New-AzVMwareAddonVrPropertyObject - where: verb: Get subject: ^PrivateCloudAdminCredentials$ diff --git a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/locations.json b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/locations.json index 41e2799f344c..5a7d76dcaa97 100644 --- a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/locations.json +++ b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/locations.json @@ -1,6 +1,6 @@ { "resourceType": "locations", - "apiVersion": "2023-03-01", + "apiVersion": "2023-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.vmware" }, diff --git a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-authorizations.json b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-authorizations.json index 94d8600cc81d..649f8c7f9f9f 100644 --- a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-authorizations.json +++ b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-authorizations.json @@ -1,13 +1,13 @@ { "resourceType": "privateClouds/authorizations", - "apiVersion": "2023-03-01", + "apiVersion": "2023-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.vmware" }, "commands": [ { "name": "Get-AzVMwareAuthorization", - "description": "Get an ExpressRoute Circuit Authorization by name in a private cloud", + "description": "Get a ExpressRouteAuthorization", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", "help": { "learnMore": { @@ -26,7 +26,7 @@ }, "examples": [ { - "description": "Get an ExpressRoute Circuit Authorization by name in a private cloud", + "description": "Get a ExpressRouteAuthorization", "parameters": [ { "name": "-Name", @@ -50,7 +50,7 @@ }, { "name": "Remove-AzVMwareAuthorization", - "description": "Delete an ExpressRoute Circuit Authorization in a private cloud", + "description": "Delete a ExpressRouteAuthorization", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", "help": { "learnMore": { @@ -69,7 +69,7 @@ }, "examples": [ { - "description": "Delete an ExpressRoute Circuit Authorization in a private cloud", + "description": "Delete a ExpressRouteAuthorization", "parameters": [ { "name": "-Name", diff --git a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-cloudLinks.json b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-cloudLinks.json index 673a13f4486b..e1f42758c9ae 100644 --- a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-cloudLinks.json +++ b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-cloudLinks.json @@ -1,13 +1,13 @@ { "resourceType": "privateClouds/cloudLinks", - "apiVersion": "2023-03-01", + "apiVersion": "2023-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.vmware" }, "commands": [ { "name": "Get-AzVMwareCloudLink", - "description": "Get an cloud link by name in a private cloud", + "description": "Get a CloudLink", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", "help": { "learnMore": { @@ -26,7 +26,7 @@ }, "examples": [ { - "description": "Get an cloud link by name in a private cloud", + "description": "Get a CloudLink", "parameters": [ { "name": "-Name", @@ -50,7 +50,7 @@ }, { "name": "Remove-AzVMwareCloudLink", - "description": "Delete a cloud link in a private cloud", + "description": "Delete a CloudLink", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", "help": { "learnMore": { @@ -69,7 +69,7 @@ }, "examples": [ { - "description": "Delete a cloud link in a private cloud", + "description": "Delete a CloudLink", "parameters": [ { "name": "-Name", diff --git a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters-datastores.json b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters-datastores.json index 686be6375cd3..3e65e3996051 100644 --- a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters-datastores.json +++ b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters-datastores.json @@ -1,13 +1,13 @@ { "resourceType": "privateClouds/clusters/datastores", - "apiVersion": "2023-03-01", + "apiVersion": "2023-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.vmware" }, "commands": [ { "name": "Get-AzVMwareDatastore", - "description": "Get a datastore in a private cloud cluster", + "description": "Get a Datastore", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", "help": { "learnMore": { @@ -27,7 +27,7 @@ }, "examples": [ { - "description": "Get a datastore in a private cloud cluster", + "description": "Get a Datastore", "parameters": [ { "name": "-ClusterName", @@ -55,7 +55,7 @@ }, { "name": "Remove-AzVMwareDatastore", - "description": "Delete a datastore in a private cloud cluster", + "description": "Delete a Datastore", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", "help": { "learnMore": { @@ -75,7 +75,7 @@ }, "examples": [ { - "description": "Delete a datastore in a private cloud cluster", + "description": "Delete a Datastore", "parameters": [ { "name": "-ClusterName", diff --git a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters-placementPolicies.json b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters-placementPolicies.json index 69cb075e68e5..335ea0fb0922 100644 --- a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters-placementPolicies.json +++ b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters-placementPolicies.json @@ -1,13 +1,13 @@ { "resourceType": "privateClouds/clusters/placementPolicies", - "apiVersion": "2023-03-01", + "apiVersion": "2023-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.vmware" }, "commands": [ { "name": "Get-AzVMwarePlacementPolicy", - "description": "Get a placement policy by name in a private cloud cluster", + "description": "Get a PlacementPolicy", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", "help": { "learnMore": { @@ -27,7 +27,7 @@ }, "examples": [ { - "description": "Get a placement policy by name in a private cloud cluster", + "description": "Get a PlacementPolicy", "parameters": [ { "name": "-ClusterName", @@ -55,7 +55,7 @@ }, { "name": "Remove-AzVMwarePlacementPolicy", - "description": "Delete a placement policy in a private cloud cluster", + "description": "Delete a PlacementPolicy", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", "help": { "learnMore": { @@ -75,7 +75,7 @@ }, "examples": [ { - "description": "Delete a placement policy in a private cloud cluster", + "description": "Delete a PlacementPolicy", "parameters": [ { "name": "-ClusterName", diff --git a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters-virtualMachines.json b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters-virtualMachines.json index 93858c0449a0..db15345b9eeb 100644 --- a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters-virtualMachines.json +++ b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters-virtualMachines.json @@ -1,13 +1,13 @@ { "resourceType": "privateClouds/clusters/virtualMachines", - "apiVersion": "2023-03-01", + "apiVersion": "2023-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.vmware" }, "commands": [ { "name": "Get-AzVMwareVirtualMachine", - "description": "Get a virtual machine by id in a private cloud cluster", + "description": "Get a VirtualMachine", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}", "help": { "learnMore": { @@ -27,7 +27,7 @@ }, "examples": [ { - "description": "Get a virtual machine by id in a private cloud cluster", + "description": "Get a VirtualMachine", "parameters": [ { "name": "-ClusterName", diff --git a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters.json b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters.json index aae124e85202..740cd32979e1 100644 --- a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters.json +++ b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-clusters.json @@ -1,13 +1,13 @@ { "resourceType": "privateClouds/clusters", - "apiVersion": "2023-03-01", + "apiVersion": "2023-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.vmware" }, "commands": [ { "name": "Get-AzVMwareCluster", - "description": "Get a cluster by name in a private cloud", + "description": "Get a Cluster", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", "help": { "learnMore": { @@ -26,7 +26,7 @@ }, "examples": [ { - "description": "Get a cluster by name in a private cloud", + "description": "Get a Cluster", "parameters": [ { "name": "-Name", @@ -50,7 +50,7 @@ }, { "name": "Remove-AzVMwareCluster", - "description": "Delete a cluster in a private cloud", + "description": "Delete a Cluster", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", "help": { "learnMore": { @@ -69,7 +69,7 @@ }, "examples": [ { - "description": "Delete a cluster in a private cloud", + "description": "Delete a Cluster", "parameters": [ { "name": "-Name", diff --git a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-globalReachConnections.json b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-globalReachConnections.json index 0e3859c18c26..2942935122a7 100644 --- a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-globalReachConnections.json +++ b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-globalReachConnections.json @@ -1,13 +1,13 @@ { "resourceType": "privateClouds/globalReachConnections", - "apiVersion": "2023-03-01", + "apiVersion": "2023-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.vmware" }, "commands": [ { "name": "Get-AzVMwareGlobalReachConnection", - "description": "Get a global reach connection by name in a private cloud", + "description": "Get a GlobalReachConnection", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", "help": { "learnMore": { @@ -26,7 +26,7 @@ }, "examples": [ { - "description": "Get a global reach connection by name in a private cloud", + "description": "Get a GlobalReachConnection", "parameters": [ { "name": "-Name", @@ -50,7 +50,7 @@ }, { "name": "Remove-AzVMwareGlobalReachConnection", - "description": "Delete a global reach connection in a private cloud", + "description": "Delete a GlobalReachConnection", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", "help": { "learnMore": { @@ -69,7 +69,7 @@ }, "examples": [ { - "description": "Delete a global reach connection in a private cloud", + "description": "Delete a GlobalReachConnection", "parameters": [ { "name": "-Name", diff --git a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds.json b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds.json index 90a4844a598a..2e96abe37143 100644 --- a/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds.json +++ b/src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds.json @@ -1,13 +1,51 @@ { "resourceType": "privateClouds", - "apiVersion": "2023-03-01", + "apiVersion": "2023-09-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.vmware" }, "commands": [ + { + "name": "Get-AzVMwareIscsiPath", + "description": "Get a IscsiPath", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareiscsipath" + }, + "parameterSets": [ + { + "parameters": [ + "-PrivateCloudName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Get a IscsiPath", + "parameters": [ + { + "name": "-PrivateCloudName", + "value": "[Path.privateCloudName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, { "name": "Get-AzVMwarePrivateCloud", - "description": "Get a private cloud", + "description": "Get a PrivateCloud", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}", "help": { "learnMore": { @@ -25,7 +63,7 @@ }, "examples": [ { - "description": "Get a private cloud", + "description": "Get a PrivateCloud", "parameters": [ { "name": "-Name", @@ -42,6 +80,44 @@ ] } ] + }, + { + "name": "Remove-AzVMwareIscsiPath", + "description": "Delete a IscsiPath", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareiscsipath" + }, + "parameterSets": [ + { + "parameters": [ + "-PrivateCloudName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Delete a IscsiPath", + "parameters": [ + { + "name": "-PrivateCloudName", + "value": "[Path.privateCloudName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] } ] } diff --git a/src/VMware/VMware.Autorest/build-module.ps1 b/src/VMware/VMware.Autorest/build-module.ps1 index bb2f2aed8745..a4b9b8cd7127 100644 --- a/src/VMware/VMware.Autorest/build-module.ps1 +++ b/src/VMware/VMware.Autorest/build-module.ps1 @@ -12,7 +12,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code # is regenerated. # ---------------------------------------------------------------------------------- -param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX) +param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX, [Switch]$DisableAfterBuildTasks) $ErrorActionPreference = 'Stop' if($PSEdition -ne 'Core') { @@ -130,7 +130,7 @@ $examplesFolder = Join-Path $PSScriptRoot 'examples' $null = New-Item -ItemType Directory -Force -Path $examplesFolder Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...' -$modelCmdlets = @(@{modelName="IdentitySource"; cmdletName=""}) +$modelCmdlets = @(@{modelName="VMPlacementPolicyProperties"; cmdletName="New-AzVMwareVMPlacementPolicyPropertyObject"}, @{modelName="VmHostPlacementPolicyProperties"; cmdletName="New-AzVMwareVmHostPlacementPolicyPropertyObject"}) $modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets' if (Test-Path $modelCmdletFolder) { $null = Remove-Item -Force -Recurse -Path $modelCmdletFolder @@ -177,4 +177,14 @@ if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')) . (Join-Path $PSScriptRoot 'generate-portal-ux.ps1') } +if (-not $DisableAfterBuildTasks){ + $afterBuildTasksPath = Join-Path $PSScriptRoot '' + $afterBuildTasksArgs = ConvertFrom-Json 'true' -AsHashtable + if(Test-Path -Path $afterBuildTasksPath -PathType leaf){ + Write-Host -ForegroundColor Green 'Running after build tasks...' + . $afterBuildTasksPath @afterBuildTasksArgs + } +} + + Write-Host -ForegroundColor Green '-------------Done-------------' diff --git a/src/VMware/VMware.Autorest/custom/New-AzVMwareAddon.ps1 b/src/VMware/VMware.Autorest/custom/New-AzVMwareAddon.ps1 index 99e7da339f8c..94c369a2238b 100644 --- a/src/VMware/VMware.Autorest/custom/New-AzVMwareAddon.ps1 +++ b/src/VMware/VMware.Autorest/custom/New-AzVMwareAddon.ps1 @@ -20,7 +20,7 @@ Create or update a addon in a private cloud .Description Create or update a addon in a private cloud .Example -PS C:\> $data = New-AzVMwareAddonVrPropertiesObject -VrsCount 2 +PS C:\> $data = New-AzVMwareAddonVrPropertyObject -VrsCount 2 PS C:\> New-AzVMwareAddon -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -Property $data Name Type ResourceGroupName diff --git a/src/VMware/VMware.Autorest/custom/New-AzVMwareAddonSrmPropertiesObject.ps1 b/src/VMware/VMware.Autorest/custom/New-AzVMwareAddonSrmPropertiesObject.ps1 deleted file mode 100644 index eb4894260f8f..000000000000 --- a/src/VMware/VMware.Autorest/custom/New-AzVMwareAddonSrmPropertiesObject.ps1 +++ /dev/null @@ -1,44 +0,0 @@ - # ---------------------------------------------------------------------------------- - # - # Copyright Microsoft Corporation - # Licensed under the Apache License, Version 2.0 (the \"License\"); - # you may not use this file except in compliance with the License. - # You may obtain a copy of the License at - # http://www.apache.org/licenses/LICENSE-2.0 - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an \"AS IS\" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # ---------------------------------------------------------------------------------- - - <# - .Synopsis - Create a in-memory object for AddonSrmProperties - .Description - Create a in-memory object for AddonSrmProperties - - .Outputs - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonSrmProperties - .Link - https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareAddonSrmPropertiesObject - #> - function New-AzVMwareAddonSrmPropertiesObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonSrmProperties')] - [CmdletBinding(PositionalBinding=$false)] - Param( - - [Parameter(Mandatory, HelpMessage="The Site Recovery Manager (SRM) license.")] - [string] - $LicenseKey - ) - - process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonSrmProperties]::New() - - $Object.LicenseKey = $LicenseKey - $Object.AddonType = "SRM" - return $Object - } - } - diff --git a/src/VMware/VMware.Autorest/custom/New-AzVMwareAddonSrmPropertyObject.ps1 b/src/VMware/VMware.Autorest/custom/New-AzVMwareAddonSrmPropertyObject.ps1 new file mode 100644 index 000000000000..c1fe63d6ddf3 --- /dev/null +++ b/src/VMware/VMware.Autorest/custom/New-AzVMwareAddonSrmPropertyObject.ps1 @@ -0,0 +1,47 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for AddonSrmProperties. +.Description +Create an in-memory object for AddonSrmProperties. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonSrmProperties +.Link +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwareaddonsrmpropertyobject +#> +function New-AzVMwareAddonSrmPropertyObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonSrmProperties')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(HelpMessage="The Site Recovery Manager (SRM) license.")] + [string] + $LicenseKey + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonSrmProperties]::New() + + if ($PSBoundParameters.ContainsKey('LicenseKey')) { + $Object.LicenseKey = $LicenseKey + } + return $Object + } +} + diff --git a/src/VMware/VMware.Autorest/custom/New-AzVMwareAddonVrPropertiesObject.ps1 b/src/VMware/VMware.Autorest/custom/New-AzVMwareAddonVrPropertiesObject.ps1 deleted file mode 100644 index c2e93fd59606..000000000000 --- a/src/VMware/VMware.Autorest/custom/New-AzVMwareAddonVrPropertiesObject.ps1 +++ /dev/null @@ -1,44 +0,0 @@ - # ---------------------------------------------------------------------------------- - # - # Copyright Microsoft Corporation - # Licensed under the Apache License, Version 2.0 (the \"License\"); - # you may not use this file except in compliance with the License. - # You may obtain a copy of the License at - # http://www.apache.org/licenses/LICENSE-2.0 - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an \"AS IS\" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # ---------------------------------------------------------------------------------- - - <# - .Synopsis - Create a in-memory object for AddonVrProperties - .Description - Create a in-memory object for AddonVrProperties - - .Outputs - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonVrProperties - .Link - https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareAddonVrPropertiesObject - #> - function New-AzVMwareAddonVrPropertiesObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonVrProperties')] - [CmdletBinding(PositionalBinding=$false)] - Param( - - [Parameter(Mandatory, HelpMessage="The vSphere Replication Server (VRS) count.")] - [int] - $VrsCount - ) - - process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonVrProperties]::New() - - $Object.VrsCount = $VrsCount - $Object.AddonType = "VR" - return $Object - } - } - diff --git a/src/VMware/VMware.Autorest/custom/New-AzVMwareAddonVrPropertyObject.ps1 b/src/VMware/VMware.Autorest/custom/New-AzVMwareAddonVrPropertyObject.ps1 new file mode 100644 index 000000000000..b3a5336171fe --- /dev/null +++ b/src/VMware/VMware.Autorest/custom/New-AzVMwareAddonVrPropertyObject.ps1 @@ -0,0 +1,47 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for AddonVrProperties. +.Description +Create an in-memory object for AddonVrProperties. + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonVrProperties +.Link +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwareaddonvrpropertyobject +#> +function New-AzVMwareAddonVrPropertyObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonVrProperties')] + [CmdletBinding(PositionalBinding=$false)] + Param( + + [Parameter(Mandatory, HelpMessage="The vSphere Replication Server (VRS) count.")] + [int] + $VrsCount + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonVrProperties]::New() + + if ($PSBoundParameters.ContainsKey('VrsCount')) { + $Object.VrsCount = $VrsCount + } + return $Object + } +} + diff --git a/src/VMware/VMware.Autorest/custom/New-AzVMwarePSCredentialExecutionParameterObject.ps1 b/src/VMware/VMware.Autorest/custom/New-AzVMwarePSCredentialExecutionParameterObject.ps1 index 985a99d1a5d3..847c04f12cf6 100644 --- a/src/VMware/VMware.Autorest/custom/New-AzVMwarePSCredentialExecutionParameterObject.ps1 +++ b/src/VMware/VMware.Autorest/custom/New-AzVMwarePSCredentialExecutionParameterObject.ps1 @@ -1,53 +1,60 @@ - # ---------------------------------------------------------------------------------- - # - # Copyright Microsoft Corporation - # Licensed under the Apache License, Version 2.0 (the \"License\"); - # you may not use this file except in compliance with the License. - # You may obtain a copy of the License at - # http://www.apache.org/licenses/LICENSE-2.0 - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an \"AS IS\" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # ---------------------------------------------------------------------------------- +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- - <# - .Synopsis - Create a in-memory object for PSCredentialExecutionParameter - .Description - Create a in-memory object for PSCredentialExecutionParameter +<# +.Synopsis +Create an in-memory object for PSCredentialExecutionParameter. +.Description +Create an in-memory object for PSCredentialExecutionParameter. - .Outputs - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PSCredentialExecutionParameter - .Link - https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwarePSCredentialExecutionParameterObject - #> - function New-AzVMwarePSCredentialExecutionParameterObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PSCredentialExecutionParameter')] - [CmdletBinding(PositionalBinding=$false)] - Param( - - [Parameter(HelpMessage="password for login.")] - [string] - $Password, - [Parameter(HelpMessage="username for login.")] - [string] - $Username, - [Parameter(Mandatory, HelpMessage="The parameter name.")] - [string] - $Name - ) +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PSCredentialExecutionParameter +.Link +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarepscredentialexecutionparameterobject +#> +function New-AzVMwarePSCredentialExecutionParameterObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PSCredentialExecutionParameter')] + [CmdletBinding(PositionalBinding=$false)] + Param( - process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PSCredentialExecutionParameter]::New() - + [Parameter(HelpMessage="password for login.")] + [System.Security.SecureString] + $Password, + [Parameter(HelpMessage="username for login.")] + [string] + $Username, + [Parameter(Mandatory, HelpMessage="The parameter name.")] + [string] + $Name + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PSCredentialExecutionParameter]::New() + + if ($PSBoundParameters.ContainsKey('Password')) { $Object.Password = $Password + } + if ($PSBoundParameters.ContainsKey('Username')) { $Object.Username = $Username + } + if ($PSBoundParameters.ContainsKey('Name')) { $Object.Name = $Name - $Object.Type = "Credential" - return $Object } + $Object.Type = "Credential" + return $Object } - +} + diff --git a/src/VMware/VMware.Autorest/custom/New-AzVMwarePrivateCloud.ps1 b/src/VMware/VMware.Autorest/custom/New-AzVMwarePrivateCloud.ps1 index e21edc216e4a..455e9a9b344e 100644 --- a/src/VMware/VMware.Autorest/custom/New-AzVMwarePrivateCloud.ps1 +++ b/src/VMware/VMware.Autorest/custom/New-AzVMwarePrivateCloud.ps1 @@ -191,7 +191,7 @@ function New-AzVMwarePrivateCloud { [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info(PossibleTypes=([System.String]))] [System.Collections.Hashtable] # Resource tags ${Tag}, diff --git a/src/VMware/VMware.Autorest/custom/New-AzVMwareScriptSecureStringExecutionParameterObject.ps1 b/src/VMware/VMware.Autorest/custom/New-AzVMwareScriptSecureStringExecutionParameterObject.ps1 index bbbf3119f132..c6b398ccbbea 100644 --- a/src/VMware/VMware.Autorest/custom/New-AzVMwareScriptSecureStringExecutionParameterObject.ps1 +++ b/src/VMware/VMware.Autorest/custom/New-AzVMwareScriptSecureStringExecutionParameterObject.ps1 @@ -1,49 +1,54 @@ - # ---------------------------------------------------------------------------------- - # - # Copyright Microsoft Corporation - # Licensed under the Apache License, Version 2.0 (the \"License\"); - # you may not use this file except in compliance with the License. - # You may obtain a copy of the License at - # http://www.apache.org/licenses/LICENSE-2.0 - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an \"AS IS\" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # ---------------------------------------------------------------------------------- +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- - <# - .Synopsis - Create a in-memory object for ScriptSecureStringExecutionParameter - .Description - Create a in-memory object for ScriptSecureStringExecutionParameter +<# +.Synopsis +Create an in-memory object for ScriptSecureStringExecutionParameter. +.Description +Create an in-memory object for ScriptSecureStringExecutionParameter. - .Outputs - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptSecureStringExecutionParameter - .Link - https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareScriptSecureStringExecutionParameterObject - #> - function New-AzVMwareScriptSecureStringExecutionParameterObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptSecureStringExecutionParameter')] - [CmdletBinding(PositionalBinding=$false)] - Param( - - [Parameter(HelpMessage="A secure value for the passed parameter, not to be stored in logs.")] - [string] - $SecureValue, - [Parameter(Mandatory, HelpMessage="The parameter name.")] - [string] - $Name - ) +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptSecureStringExecutionParameter +.Link +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarescriptsecurestringexecutionparameterobject +#> +function New-AzVMwareScriptSecureStringExecutionParameterObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptSecureStringExecutionParameter')] + [CmdletBinding(PositionalBinding=$false)] + Param( - process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptSecureStringExecutionParameter]::New() - + [Parameter(HelpMessage="A secure value for the passed parameter, not to be stored in logs.")] + [System.Security.SecureString] + $SecureValue, + [Parameter(Mandatory, HelpMessage="The parameter name.")] + [string] + $Name + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptSecureStringExecutionParameter]::New() + + if ($PSBoundParameters.ContainsKey('SecureValue')) { $Object.SecureValue = $SecureValue + } + if ($PSBoundParameters.ContainsKey('Name')) { $Object.Name = $Name - $Object.Type = "SecureValue" - return $Object } + $Object.Type = "SecureValue" + return $Object } - +} + diff --git a/src/VMware/VMware.Autorest/custom/New-AzVMwareScriptStringExecutionParameterObject.ps1 b/src/VMware/VMware.Autorest/custom/New-AzVMwareScriptStringExecutionParameterObject.ps1 index e927d67f46dc..d846406a7d10 100644 --- a/src/VMware/VMware.Autorest/custom/New-AzVMwareScriptStringExecutionParameterObject.ps1 +++ b/src/VMware/VMware.Autorest/custom/New-AzVMwareScriptStringExecutionParameterObject.ps1 @@ -1,49 +1,54 @@ - # ---------------------------------------------------------------------------------- - # - # Copyright Microsoft Corporation - # Licensed under the Apache License, Version 2.0 (the \"License\"); - # you may not use this file except in compliance with the License. - # You may obtain a copy of the License at - # http://www.apache.org/licenses/LICENSE-2.0 - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an \"AS IS\" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. - # ---------------------------------------------------------------------------------- +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- - <# - .Synopsis - Create a in-memory object for ScriptStringExecutionParameter - .Description - Create a in-memory object for ScriptStringExecutionParameter +<# +.Synopsis +Create an in-memory object for ScriptStringExecutionParameter. +.Description +Create an in-memory object for ScriptStringExecutionParameter. - .Outputs - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptStringExecutionParameter - .Link - https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareScriptStringExecutionParameterObject - #> - function New-AzVMwareScriptStringExecutionParameterObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptStringExecutionParameter')] - [CmdletBinding(PositionalBinding=$false)] - Param( - - [Parameter(HelpMessage="The value for the passed parameter.")] - [string] - $Value, - [Parameter(Mandatory, HelpMessage="The parameter name.")] - [string] - $Name - ) +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptStringExecutionParameter +.Link +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarescriptstringexecutionparameterobject +#> +function New-AzVMwareScriptStringExecutionParameterObject { + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptStringExecutionParameter')] + [CmdletBinding(PositionalBinding=$false)] + Param( - process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptStringExecutionParameter]::New() - + [Parameter(HelpMessage="The value for the passed parameter.")] + [string] + $Value, + [Parameter(Mandatory, HelpMessage="The parameter name.")] + [string] + $Name + ) + + process { + $Object = [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptStringExecutionParameter]::New() + + if ($PSBoundParameters.ContainsKey('Value')) { $Object.Value = $Value + } + if ($PSBoundParameters.ContainsKey('Name')) { $Object.Name = $Name - $Object.Type = "Value" - return $Object } + $Object.Type = "Value" + return $Object } - +} + diff --git a/src/VMware/VMware.Autorest/custom/autogen-model-cmdlets/New-AzVMwareIdentitySourceObject.ps1 b/src/VMware/VMware.Autorest/custom/autogen-model-cmdlets/New-AzVMwareIdentitySourceObject.ps1 deleted file mode 100644 index cb2806a18f66..000000000000 --- a/src/VMware/VMware.Autorest/custom/autogen-model-cmdlets/New-AzVMwareIdentitySourceObject.ps1 +++ /dev/null @@ -1,102 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for IdentitySource. -.Description -Create an in-memory object for IdentitySource. - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IdentitySource -.Link -https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwareidentitysourceobject -#> -function New-AzVMwareIdentitySourceObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IdentitySource')] - [CmdletBinding(PositionalBinding=$false)] - Param( - - [Parameter(HelpMessage="The domain's NetBIOS name.")] - [string] - $Alias, - [Parameter(HelpMessage="The base distinguished name for groups.")] - [string] - $BaseGroupDn, - [Parameter(HelpMessage="The base distinguished name for users.")] - [string] - $BaseUserDn, - [Parameter(HelpMessage="The domain's dns name.")] - [string] - $Domain, - [Parameter(HelpMessage="The name of the identity source.")] - [string] - $Name, - [Parameter(HelpMessage="The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups.")] - [string] - $Password, - [Parameter(HelpMessage="Primary server URL.")] - [string] - $PrimaryServer, - [Parameter(HelpMessage="Secondary server URL.")] - [string] - $SecondaryServer, - [Parameter(HelpMessage="Protect LDAP communication using SSL certificate (LDAPS).")] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [string] - $Ssl, - [Parameter(HelpMessage="The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group.")] - [string] - $Username - ) - - process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IdentitySource]::New() - - if ($PSBoundParameters.ContainsKey('Alias')) { - $Object.Alias = $Alias - } - if ($PSBoundParameters.ContainsKey('BaseGroupDn')) { - $Object.BaseGroupDn = $BaseGroupDn - } - if ($PSBoundParameters.ContainsKey('BaseUserDn')) { - $Object.BaseUserDn = $BaseUserDn - } - if ($PSBoundParameters.ContainsKey('Domain')) { - $Object.Domain = $Domain - } - if ($PSBoundParameters.ContainsKey('Name')) { - $Object.Name = $Name - } - if ($PSBoundParameters.ContainsKey('Password')) { - $Object.Password = $Password - } - if ($PSBoundParameters.ContainsKey('PrimaryServer')) { - $Object.PrimaryServer = $PrimaryServer - } - if ($PSBoundParameters.ContainsKey('SecondaryServer')) { - $Object.SecondaryServer = $SecondaryServer - } - if ($PSBoundParameters.ContainsKey('Ssl')) { - $Object.Ssl = $Ssl - } - if ($PSBoundParameters.ContainsKey('Username')) { - $Object.Username = $Username - } - return $Object - } -} - diff --git a/src/VMware/VMware.Autorest/custom/New-AzVMwareVMPlacementPolicyPropertiesObject.ps1 b/src/VMware/VMware.Autorest/custom/autogen-model-cmdlets/New-AzVMwareVMPlacementPolicyPropertyObject.ps1 similarity index 83% rename from src/VMware/VMware.Autorest/custom/New-AzVMwareVMPlacementPolicyPropertiesObject.ps1 rename to src/VMware/VMware.Autorest/custom/autogen-model-cmdlets/New-AzVMwareVMPlacementPolicyPropertyObject.ps1 index c911281b689c..2ffe936f8940 100644 --- a/src/VMware/VMware.Autorest/custom/New-AzVMwareVMPlacementPolicyPropertiesObject.ps1 +++ b/src/VMware/VMware.Autorest/custom/autogen-model-cmdlets/New-AzVMwareVMPlacementPolicyPropertyObject.ps1 @@ -23,14 +23,14 @@ Create an in-memory object for VMPlacementPolicyProperties. .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VMPlacementPolicyProperties .Link -https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareVMPlacementPolicyPropertiesObject +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarevmplacementpolicypropertyobject #> -function New-AzVMwareVMPlacementPolicyPropertiesObject { +function New-AzVMwareVMPlacementPolicyPropertyObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VMPlacementPolicyProperties')] [CmdletBinding(PositionalBinding=$false)] Param( - [Parameter(Mandatory, HelpMessage="placement policy affinity type.")] + [Parameter(Mandatory, HelpMessage="placement policy affinity type.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Affinity", "AntiAffinity")] [string] $AffinityType, @@ -43,11 +43,7 @@ function New-AzVMwareVMPlacementPolicyPropertiesObject { [Parameter(HelpMessage="Whether the placement policy is enabled or disabled.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] [string] - $State, - [Parameter(Mandatory, HelpMessage="placement policy type.")] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("VmVm", "VmHost")] - [string] - $Type + $State ) process { @@ -65,9 +61,6 @@ function New-AzVMwareVMPlacementPolicyPropertiesObject { if ($PSBoundParameters.ContainsKey('State')) { $Object.State = $State } - if ($PSBoundParameters.ContainsKey('Type')) { - $Object.Type = $Type - } return $Object } } diff --git a/src/VMware/VMware.Autorest/custom/New-AzVMwareVmHostPlacementPolicyPropertiesObject.ps1 b/src/VMware/VMware.Autorest/custom/autogen-model-cmdlets/New-AzVMwareVmHostPlacementPolicyPropertyObject.ps1 similarity index 75% rename from src/VMware/VMware.Autorest/custom/New-AzVMwareVmHostPlacementPolicyPropertiesObject.ps1 rename to src/VMware/VMware.Autorest/custom/autogen-model-cmdlets/New-AzVMwareVmHostPlacementPolicyPropertyObject.ps1 index 160e62c5562e..c946578fec5b 100644 --- a/src/VMware/VMware.Autorest/custom/New-AzVMwareVmHostPlacementPolicyPropertiesObject.ps1 +++ b/src/VMware/VMware.Autorest/custom/autogen-model-cmdlets/New-AzVMwareVmHostPlacementPolicyPropertyObject.ps1 @@ -21,19 +21,27 @@ Create an in-memory object for VmHostPlacementPolicyProperties. Create an in-memory object for VmHostPlacementPolicyProperties. .Outputs -Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Api20230301.VmHostPlacementPolicyProperties +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VmHostPlacementPolicyProperties .Link -https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareVmHostPlacementPolicyPropertiesObject +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarevmhostplacementpolicypropertyobject #> -function New-AzVMwareVmHostPlacementPolicyPropertiesObject { +function New-AzVMwareVmHostPlacementPolicyPropertyObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VmHostPlacementPolicyProperties')] [CmdletBinding(PositionalBinding=$false)] Param( + [Parameter(HelpMessage="vm-host placement policy affinity strength (should/must).")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Should", "Must")] + [string] + $AffinityStrength, [Parameter(Mandatory, HelpMessage="placement policy affinity type.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Affinity", "AntiAffinity")] [string] $AffinityType, + [Parameter(HelpMessage="placement policy azure hybrid benefit opt-in type.")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SqlHost", "None")] + [string] + $AzureHybridBenefitType, [Parameter(Mandatory, HelpMessage="Host members list.")] [string[]] $HostMember, @@ -46,19 +54,21 @@ function New-AzVMwareVmHostPlacementPolicyPropertiesObject { [Parameter(HelpMessage="Whether the placement policy is enabled or disabled.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] [string] - $State, - [Parameter(Mandatory, HelpMessage="placement policy type.")] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("VmVm", "VmHost")] - [string] - $Type + $State ) process { $Object = [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VmHostPlacementPolicyProperties]::New() + if ($PSBoundParameters.ContainsKey('AffinityStrength')) { + $Object.AffinityStrength = $AffinityStrength + } if ($PSBoundParameters.ContainsKey('AffinityType')) { $Object.AffinityType = $AffinityType } + if ($PSBoundParameters.ContainsKey('AzureHybridBenefitType')) { + $Object.AzureHybridBenefitType = $AzureHybridBenefitType + } if ($PSBoundParameters.ContainsKey('HostMember')) { $Object.HostMember = $HostMember } @@ -71,9 +81,6 @@ function New-AzVMwareVmHostPlacementPolicyPropertiesObject { if ($PSBoundParameters.ContainsKey('State')) { $Object.State = $State } - if ($PSBoundParameters.ContainsKey('Type')) { - $Object.Type = $Type - } return $Object } } diff --git a/src/VMware/VMware.Autorest/examples/Get-AzVMwareIscsiPath.md b/src/VMware/VMware.Autorest/examples/Get-AzVMwareIscsiPath.md new file mode 100644 index 000000000000..fa91c48995b4 --- /dev/null +++ b/src/VMware/VMware.Autorest/examples/Get-AzVMwareIscsiPath.md @@ -0,0 +1,23 @@ +### Example 1: Get a IscsiPath +```powershell +Get-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/i + scsiPaths/default +Name : default +NetworkBlock : 192.168.0.0/24 +ProvisioningState : Succeeded +ResourceGroupName : group1 +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : Microsoft.AVS/privateClouds/iscsiPaths +``` + + Get a IscsiPath + diff --git a/src/VMware/VMware.Autorest/examples/New-AzVMwareAddon.md b/src/VMware/VMware.Autorest/examples/New-AzVMwareAddon.md index 4e65325928e7..c4fb5758f0f1 100644 --- a/src/VMware/VMware.Autorest/examples/New-AzVMwareAddon.md +++ b/src/VMware/VMware.Autorest/examples/New-AzVMwareAddon.md @@ -1,6 +1,6 @@ ### Example 1: Create an addon in a private cloud ```powershell -$data = New-AzVMwareAddonVrPropertiesObject -VrsCount 2 +$data = New-AzVMwareAddonVrPropertyObject -VrsCount 2 New-AzVMwareAddon -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -Property $data ``` ```output diff --git a/src/VMware/VMware.Autorest/examples/New-AzVMwareAddonSrmPropertiesObject.md b/src/VMware/VMware.Autorest/examples/New-AzVMwareAddonSrmPropertyObject.md similarity index 80% rename from src/VMware/VMware.Autorest/examples/New-AzVMwareAddonSrmPropertiesObject.md rename to src/VMware/VMware.Autorest/examples/New-AzVMwareAddonSrmPropertyObject.md index 1b7b51851942..81feefec697d 100644 --- a/src/VMware/VMware.Autorest/examples/New-AzVMwareAddonSrmPropertiesObject.md +++ b/src/VMware/VMware.Autorest/examples/New-AzVMwareAddonSrmPropertyObject.md @@ -1,6 +1,6 @@ ### Example 1: Create a local SRM object for the Addon Property parameter ```powershell -New-AzVMwareAddonSrmPropertiesObject -LicenseKey "YourLicenseKeyValue" +New-AzVMwareAddonSrmPropertyObject -LicenseKey "YourLicenseKeyValue" ``` ```output AddonType LicenseKey ProvisioningState diff --git a/src/VMware/VMware.Autorest/examples/New-AzVMwareAddonVrPropertiesObject.md b/src/VMware/VMware.Autorest/examples/New-AzVMwareAddonVrPropertyObject.md similarity index 85% rename from src/VMware/VMware.Autorest/examples/New-AzVMwareAddonVrPropertiesObject.md rename to src/VMware/VMware.Autorest/examples/New-AzVMwareAddonVrPropertyObject.md index 8873bbb02979..49532a46bb98 100644 --- a/src/VMware/VMware.Autorest/examples/New-AzVMwareAddonVrPropertiesObject.md +++ b/src/VMware/VMware.Autorest/examples/New-AzVMwareAddonVrPropertyObject.md @@ -1,6 +1,6 @@ ### Example 1: Create a local VR object for the Addon Property parameter ```powershell -New-AzVMwareAddonVrPropertiesObject -VrsCount 2 +New-AzVMwareAddonVrPropertyObject -VrsCount 2 ``` ```output AddonType ProvisioningState VrsCount diff --git a/src/VMware/VMware.Autorest/examples/New-AzVMwareIdentitySourceObject.md b/src/VMware/VMware.Autorest/examples/New-AzVMwareIdentitySourceObject.md deleted file mode 100644 index 70068547f284..000000000000 --- a/src/VMware/VMware.Autorest/examples/New-AzVMwareIdentitySourceObject.md +++ /dev/null @@ -1,18 +0,0 @@ -### Example 1: Create an in-memory object for IdentitySource -```powershell -New-AzVMwareIdentitySourceObject -Alias test -``` -```output -Alias : test -BaseGroupDn : -BaseUserDn : -Domain : -Name : -Password : -PrimaryServer : -SecondaryServer : -Ssl : -Username : -``` - -Create an in-memory object for IdentitySource \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/examples/New-AzVMwareIscsiPath.md b/src/VMware/VMware.Autorest/examples/New-AzVMwareIscsiPath.md new file mode 100644 index 000000000000..e574f7d3f072 --- /dev/null +++ b/src/VMware/VMware.Autorest/examples/New-AzVMwareIscsiPath.md @@ -0,0 +1,22 @@ +### Example 1: Create a IscsiPath +```powershell +New-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/iscsiPaths/default +Name : default +NetworkBlock : 192.168.0.0/24 +ProvisioningState : Succeeded +ResourceGroupName : group1 +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : Microsoft.AVS/privateClouds/iscsiPaths +``` + +Create a IscsiPath + diff --git a/src/VMware/VMware.Autorest/examples/New-AzVMwarePSCredentialExecutionParameterObject.md b/src/VMware/VMware.Autorest/examples/New-AzVMwarePSCredentialExecutionParameterObject.md index 7414ca16f031..a34070cad73f 100644 --- a/src/VMware/VMware.Autorest/examples/New-AzVMwarePSCredentialExecutionParameterObject.md +++ b/src/VMware/VMware.Autorest/examples/New-AzVMwarePSCredentialExecutionParameterObject.md @@ -1,11 +1,12 @@ ### Example 1: Create a local PS Credential Execution object ```powershell -New-AzVMwarePSCredentialExecutionParameterObject -Name azps_test_credentialvalue -Password "passwordValue" -Username "usernameValue" +$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +New-AzVMwarePSCredentialExecutionParameterObject -Name azps_test_credentialvalue -Password $mypwd -Username "usernameValue" ``` ```output -Name Password Type Username ----- -------- ---- -------- -azps_test_credentialvalue passwordValue Credential usernameValue +Name Password Type Username +---- -------- ---- -------- +azps_test_credentialvalue System.Security.SecureString Credential usernameValue ``` Create a local PS Credential Execution object \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/examples/New-AzVMwarePlacementPolicy.md b/src/VMware/VMware.Autorest/examples/New-AzVMwarePlacementPolicy.md index 329999ea57bb..76084807b38e 100644 --- a/src/VMware/VMware.Autorest/examples/New-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware.Autorest/examples/New-AzVMwarePlacementPolicy.md @@ -1,6 +1,6 @@ ### Example 1: Create or update a placement policy in a private cloud cluster ```powershell -$abc = New-AzVMwareVMPlacementPolicyPropertiesObject -AffinityType 'Affinity' -Type 'VmVm' -VMMember @{"test"="test"} +$abc = New-AzVMwareVMPlacementPolicyPropertyObject -AffinityType 'Affinity' -VMMember @{"test"="test"} New-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 -Property $abc ``` ```output @@ -13,7 +13,7 @@ Create or update a placement policy in a private cloud cluster ### Example 2: Create or update a placement policy in a private cloud cluster ```powershell -$abc = New-AzVMwareVmHostPlacementPolicyPropertiesObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -Type 'VmHost' -VMMember @{"test"="test"} +$abc = New-AzVMwareVmHostPlacementPolicyPropertyObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -VMMember @{"test"="test"} New-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 -Property $abc ``` ```output diff --git a/src/VMware/VMware.Autorest/examples/New-AzVMwareScriptSecureStringExecutionParameterObject.md b/src/VMware/VMware.Autorest/examples/New-AzVMwareScriptSecureStringExecutionParameterObject.md index 92c3ce00ad68..aa36604ac5fd 100644 --- a/src/VMware/VMware.Autorest/examples/New-AzVMwareScriptSecureStringExecutionParameterObject.md +++ b/src/VMware/VMware.Autorest/examples/New-AzVMwareScriptSecureStringExecutionParameterObject.md @@ -1,11 +1,13 @@ ### Example 1: Create a local Script Secure String Execution object ```powershell -New-AzVMwareScriptSecureStringExecutionParameterObject -Name azps_test_securevalue -SecureValue "passwordValue" +$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +New-AzVMwareScriptSecureStringExecutionParameterObject -Name azps_test_securevalue -SecureValue $mypwd ``` ```output -Name SecureValue Type ----- ----------- ---- -azps_test_securevalue passwordValue SecureValue + +Name SecureValue Type +---- ----------- ---- +azps_test_securevalue System.Security.SecureString SecureValue ``` Create a local Script Secure String Execution object \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/examples/New-AzVMwareScriptStringExecutionParameterObject.md b/src/VMware/VMware.Autorest/examples/New-AzVMwareScriptStringExecutionParameterObject.md index 2a4af6b0f6d6..0f433f4de4d7 100644 --- a/src/VMware/VMware.Autorest/examples/New-AzVMwareScriptStringExecutionParameterObject.md +++ b/src/VMware/VMware.Autorest/examples/New-AzVMwareScriptStringExecutionParameterObject.md @@ -3,9 +3,9 @@ New-AzVMwareScriptStringExecutionParameterObject -Name azps_test_value -Value "passwordValue" ``` ```output -Name Value ----- ----------- -azps_test_value passwordValue +Name Type Value +---- ---- ----- +azps_test_value Value passwordValue ``` Create a local Script String Execution object \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/examples/New-AzVMwareVMPlacementPolicyPropertiesObject.md b/src/VMware/VMware.Autorest/examples/New-AzVMwareVMPlacementPolicyPropertyObject.md similarity index 74% rename from src/VMware/VMware.Autorest/examples/New-AzVMwareVMPlacementPolicyPropertiesObject.md rename to src/VMware/VMware.Autorest/examples/New-AzVMwareVMPlacementPolicyPropertyObject.md index bc8b5c2e2d77..c53c168875f4 100644 --- a/src/VMware/VMware.Autorest/examples/New-AzVMwareVMPlacementPolicyPropertiesObject.md +++ b/src/VMware/VMware.Autorest/examples/New-AzVMwareVMPlacementPolicyPropertyObject.md @@ -1,6 +1,6 @@ ### Example 1: Create an in-memory object for VMPlacementPolicyProperties. ```powershell - New-AzVMwareVMPlacementPolicyPropertiesObject -AffinityType 'Affinity' -Type 'VmVm' -VMMember @{"test"="test"} + New-AzVMwareVMPlacementPolicyPropertyObject -AffinityType 'Affinity' -VMMember @{"test"="test"} ``` ```output AffinityType : Affinity diff --git a/src/VMware/VMware.Autorest/examples/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md b/src/VMware/VMware.Autorest/examples/New-AzVMwareVmHostPlacementPolicyPropertyObject.md similarity index 76% rename from src/VMware/VMware.Autorest/examples/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md rename to src/VMware/VMware.Autorest/examples/New-AzVMwareVmHostPlacementPolicyPropertyObject.md index db24ec7cc767..764a706387c4 100644 --- a/src/VMware/VMware.Autorest/examples/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md +++ b/src/VMware/VMware.Autorest/examples/New-AzVMwareVmHostPlacementPolicyPropertyObject.md @@ -1,6 +1,6 @@ ### Example 1: Create an in-memory object for VmHostPlacementPolicyProperties. ```powershell -New-AzVMwareVmHostPlacementPolicyPropertiesObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -Type 'VmHost' -VMMember @{"test"="test"} +New-AzVMwareVmHostPlacementPolicyPropertyObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -VMMember @{"test"="test"} ``` ```output AffinityStrength : diff --git a/src/VMware/VMware.Autorest/examples/Remove-AzVMwareIscsiPath.md b/src/VMware/VMware.Autorest/examples/Remove-AzVMwareIscsiPath.md new file mode 100644 index 000000000000..2f5a04740741 --- /dev/null +++ b/src/VMware/VMware.Autorest/examples/Remove-AzVMwareIscsiPath.md @@ -0,0 +1,13 @@ +### Example 1: Delete a IscsiPath in a private cloud +```powershell +Remove-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group +``` + +Delete a IscsiPath in a private cloud + +### Example 2: Delete a datastore in a private cloud cluster. +```powershell +Get-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group | Remove-AzVMwareIscsiPath +``` + +Delete a IscsiPath in a private cloud \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/examples/Update-AzVMwareCloudLink.md b/src/VMware/VMware.Autorest/examples/Update-AzVMwareCloudLink.md index 29f96552644f..c3e9363f06c4 100644 --- a/src/VMware/VMware.Autorest/examples/Update-AzVMwareCloudLink.md +++ b/src/VMware/VMware.Autorest/examples/Update-AzVMwareCloudLink.md @@ -1,6 +1,6 @@ ### Example 1: Update a cloud link in a private cloud ```powershell -Update-AzVMwareCloudLink -Name azps_test_cloudlink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -LinkedCloud "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group2/providers/Microsoft.AVS/privateClouds/azps_test_cloud2/" +Update-AzVMwareCloudLink -Name azps_test_cloudlink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group ``` ```output Name Type ResourceGroupName diff --git a/src/VMware/VMware.Autorest/examples/Update-AzVMwareDatastore.md b/src/VMware/VMware.Autorest/examples/Update-AzVMwareDatastore.md index 25b291d27c7e..db5956c4798c 100644 --- a/src/VMware/VMware.Autorest/examples/Update-AzVMwareDatastore.md +++ b/src/VMware/VMware.Autorest/examples/Update-AzVMwareDatastore.md @@ -1,6 +1,6 @@ ### Example 1: Update a datastore in a private cloud cluster. ```powershell -Update-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -NetAppVolumeId "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/azps_test_group/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1" +Update-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group ``` ```output Name Status ProvisioningState ResourceGroupName diff --git a/src/VMware/VMware.Autorest/examples/Update-AzVMwareIscsiPath.md b/src/VMware/VMware.Autorest/examples/Update-AzVMwareIscsiPath.md new file mode 100644 index 000000000000..44ce84efc57b --- /dev/null +++ b/src/VMware/VMware.Autorest/examples/Update-AzVMwareIscsiPath.md @@ -0,0 +1,21 @@ +### Example 1: Update a IscsiPath +```powershell +Update-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/iscsiPaths/default +Name : default +NetworkBlock : 192.168.0.0/24 +ProvisioningState : Succeeded +ResourceGroupName : group1 +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : Microsoft.AVS/privateClouds/iscsiPaths +``` + +Update a IscsiPath \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/examples/Update-AzVMwarePrivateCloud.md b/src/VMware/VMware.Autorest/examples/Update-AzVMwarePrivateCloud.md index 1e03989ef823..e78424903998 100644 --- a/src/VMware/VMware.Autorest/examples/Update-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware.Autorest/examples/Update-AzVMwarePrivateCloud.md @@ -1,6 +1,6 @@ ### Example 1: Update size of private cloud by name ```powershell -Update-AzVMwarePrivateCloud -Name azps_test_cloud -ResourceGroupName azps_test_group -ManagementClusterSize 4 +Update-AzVMwarePrivateCloud -Name azps_test_cloud -ResourceGroupName azps_test_group ``` ```output Location Name Type ResourceGroupName @@ -12,7 +12,7 @@ Update size of private cloud by name ### Example 2: Update size of private cloud ```powershell -Get-AzVMwarePrivateCloud -ResourceGroupName azps_test_group -Name azps_test_cloud | Update-AzVMwarePrivateCloud -ManagementClusterSize 4 +Get-AzVMwarePrivateCloud -ResourceGroupName azps_test_group -Name azps_test_cloud | Update-AzVMwarePrivateCloud ``` ```output Location Name Type ResourceGroupName diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareAddon.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareAddon.ps1 index d69e30a3c901..dbdb1063cb08 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwareAddon.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareAddon.ps1 @@ -34,32 +34,31 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareaddon #> diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareAuthorization.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareAuthorization.ps1 index a1748b4d46a5..917091acac3e 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwareAuthorization.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareAuthorization.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get an ExpressRoute Circuit Authorization by name in a private cloud +Get a ExpressRouteAuthorization .Description -Get an ExpressRoute Circuit Authorization by name in a private cloud +Get a ExpressRouteAuthorization .Example Get-AzVMwareAuthorization -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareauthorization #> @@ -100,7 +98,7 @@ param( [Alias('AuthorizationName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the ExpressRoute Circuit Authorization in the private cloud + # Name of the ExpressRoute Circuit Authorization ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -124,6 +122,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareCloudLink.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareCloudLink.ps1 index 38d82055f6a7..74d5ff6bc705 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwareCloudLink.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareCloudLink.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get an cloud link by name in a private cloud +Get a CloudLink .Description -Get an cloud link by name in a private cloud +Get a CloudLink .Example Get-AzVMwareCloudLink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwarecloudlink #> @@ -100,7 +98,7 @@ param( [Alias('CloudLinkName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cloud link resource + # Name of the cloud link. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -124,6 +122,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareCluster.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareCluster.ps1 index a2c2eccf24e4..2cb490b22d49 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwareCluster.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareCluster.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a cluster by name in a private cloud +Get a Cluster .Description -Get a cluster by name in a private cloud +Get a Cluster .Example Get-AzVMwareCluster -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwarecluster #> @@ -100,7 +98,7 @@ param( [Alias('ClusterName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -124,6 +122,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareClusterZone.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareClusterZone.ps1 index 5912472fb6f3..5a9386e802a9 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwareClusterZone.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareClusterZone.ps1 @@ -34,7 +34,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(Mandatory)] @@ -55,6 +55,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareDatastore.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareDatastore.ps1 index 5af195b1caa9..1e9bec85bfc7 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwareDatastore.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareDatastore.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a datastore in a private cloud cluster +Get a Datastore .Description -Get a datastore in a private cloud cluster +Get a Datastore .Example Get-AzVMwareDatastore -ClusterName azps_test_cluster -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Example @@ -34,88 +34,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwaredatastore #> @@ -128,7 +125,7 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -137,7 +134,7 @@ param( [Alias('DatastoreName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the datastore in the private cloud cluster + # Name of the datastore ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -161,6 +158,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareGlobalReachConnection.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareGlobalReachConnection.ps1 index e054a7427328..fd5cff4e0952 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwareGlobalReachConnection.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareGlobalReachConnection.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a global reach connection by name in a private cloud +Get a GlobalReachConnection .Description -Get a global reach connection by name in a private cloud +Get a GlobalReachConnection .Example Get-AzVMwareGlobalReachConnection -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareglobalreachconnection #> @@ -100,7 +98,7 @@ param( [Alias('GlobalReachConnectionName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the global reach connection in the private cloud + # Name of the global reach connection ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -124,6 +122,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareIscsiPath.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareIscsiPath.ps1 new file mode 100644 index 000000000000..3b4720617cd4 --- /dev/null +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareIscsiPath.ps1 @@ -0,0 +1,233 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Get a IscsiPath +.Description +Get a IscsiPath +.Example +Get-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. + [PrivateCloudName ]: Name of the private cloud + [PublicIPId ]: ID of the DNS zone. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. +.Link +https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareiscsipath +#> +function Get-AzVMwareIscsiPath { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # Name of the private cloud + ${PrivateCloudName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.VMware.private\Get-AzVMwareIscsiPath_Get'; + GetViaIdentity = 'Az.VMware.private\Get-AzVMwareIscsiPath_GetViaIdentity'; + List = 'Az.VMware.private\Get-AzVMwareIscsiPath_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwarePlacementPolicy.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwarePlacementPolicy.ps1 index 61946dc0e478..223116ef1bbb 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwarePlacementPolicy.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwarePlacementPolicy.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a placement policy by name in a private cloud cluster +Get a PlacementPolicy .Description -Get a placement policy by name in a private cloud cluster +Get a PlacementPolicy .Example Get-AzVMwarePlacementPolicy -ClusterName cluster1 -PrivateCloudName cloud1 -ResourceGroupName group1 .Example @@ -34,88 +34,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareplacementpolicy #> @@ -128,7 +125,7 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -137,7 +134,7 @@ param( [Alias('PlacementPolicyName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy + # Name of the placement policy. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -161,6 +158,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloud.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloud.ps1 index b75b8c6a9d3f..8dbefd063bec 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloud.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloud.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a private cloud +Get a PrivateCloud .Description -Get a private cloud +Get a PrivateCloud .Example Get-AzVMwarePrivateCloud .Example @@ -36,38 +36,37 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareprivatecloud #> function Get-AzVMwarePrivateCloud { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('PrivateCloudName')] @@ -77,7 +76,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] # The name of the resource group. @@ -91,6 +90,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloudAdminCredential.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloudAdminCredential.ps1 index fc6fcb1730ca..911b229b54ae 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloudAdminCredential.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwarePrivateCloudAdminCredential.ps1 @@ -49,6 +49,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] diff --git a/src/VMware/VMware.Autorest/exports/Get-AzVMwareVirtualMachine.ps1 b/src/VMware/VMware.Autorest/exports/Get-AzVMwareVirtualMachine.ps1 index 4f3871fa9311..2f6725fa200e 100644 --- a/src/VMware/VMware.Autorest/exports/Get-AzVMwareVirtualMachine.ps1 +++ b/src/VMware/VMware.Autorest/exports/Get-AzVMwareVirtualMachine.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a virtual machine by id in a private cloud cluster +Get a VirtualMachine .Description -Get a virtual machine by id in a private cloud cluster +Get a VirtualMachine .Example Get-AzVMwareVirtualMachine -ClusterName cluster1 -PrivateCloudName cloud1 -ResourceGroupName group1 .Example @@ -34,88 +34,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwarevirtualmachine #> @@ -128,7 +125,7 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -137,7 +134,7 @@ param( [Alias('VirtualMachineId')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Virtual Machine identifier + # ID of the virtual machine. ${Id}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -161,6 +158,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareAddon.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareAddon.ps1 index 48bf91e59e03..478eb1f55dad 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareAddon.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareAddon.ps1 @@ -20,7 +20,7 @@ Create or update a addon in a private cloud .Description Create or update a addon in a private cloud .Example -$data = New-AzVMwareAddonVrPropertiesObject -VrsCount 2 +$data = New-AzVMwareAddonVrPropertyObject -VrsCount 2 New-AzVMwareAddon -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -Property $data .Outputs @@ -31,7 +31,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. PROPERTY : The properties of an addon resource To construct, see NOTES section for PROPERTY properties and create a hash table. - AddonType : The type of private cloud addon + AddonType : Addon type .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareaddon #> diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareAddonSrmPropertiesObject.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareAddonSrmPropertyObject.ps1 similarity index 93% rename from src/VMware/VMware.Autorest/exports/New-AzVMwareAddonSrmPropertiesObject.ps1 rename to src/VMware/VMware.Autorest/exports/New-AzVMwareAddonSrmPropertyObject.ps1 index 77292b593bea..798a2890609b 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareAddonSrmPropertiesObject.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareAddonSrmPropertyObject.ps1 @@ -16,22 +16,22 @@ <# .Synopsis -Create a in-memory object for AddonSrmProperties +Create an in-memory object for AddonSrmProperties. .Description -Create a in-memory object for AddonSrmProperties +Create an in-memory object for AddonSrmProperties. .Example -New-AzVMwareAddonSrmPropertiesObject -LicenseKey "YourLicenseKeyValue" +New-AzVMwareAddonSrmPropertyObject -LicenseKey "YourLicenseKeyValue" .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonSrmProperties .Link -https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareAddonSrmPropertiesObject +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwareaddonsrmpropertyobject #> -function New-AzVMwareAddonSrmPropertiesObject { +function New-AzVMwareAddonSrmPropertyObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonSrmProperties])] [CmdletBinding(PositionalBinding=$false)] param( - [Parameter(Mandatory)] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] # The Site Recovery Manager (SRM) license. @@ -64,7 +64,7 @@ begin { } $mapping = @{ - __AllParameterSets = 'Az.VMware.custom\New-AzVMwareAddonSrmPropertiesObject'; + __AllParameterSets = 'Az.VMware.custom\New-AzVMwareAddonSrmPropertyObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareAddonVrPropertiesObject.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareAddonVrPropertyObject.ps1 similarity index 94% rename from src/VMware/VMware.Autorest/exports/New-AzVMwareAddonVrPropertiesObject.ps1 rename to src/VMware/VMware.Autorest/exports/New-AzVMwareAddonVrPropertyObject.ps1 index 63c5740e44fc..392c68a1422b 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareAddonVrPropertiesObject.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareAddonVrPropertyObject.ps1 @@ -16,18 +16,18 @@ <# .Synopsis -Create a in-memory object for AddonVrProperties +Create an in-memory object for AddonVrProperties. .Description -Create a in-memory object for AddonVrProperties +Create an in-memory object for AddonVrProperties. .Example -New-AzVMwareAddonVrPropertiesObject -VrsCount 2 +New-AzVMwareAddonVrPropertyObject -VrsCount 2 .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonVrProperties .Link -https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareAddonVrPropertiesObject +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwareaddonvrpropertyobject #> -function New-AzVMwareAddonVrPropertiesObject { +function New-AzVMwareAddonVrPropertyObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonVrProperties])] [CmdletBinding(PositionalBinding=$false)] param( @@ -64,7 +64,7 @@ begin { } $mapping = @{ - __AllParameterSets = 'Az.VMware.custom\New-AzVMwareAddonVrPropertiesObject'; + __AllParameterSets = 'Az.VMware.custom\New-AzVMwareAddonVrPropertyObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareAuthorization.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareAuthorization.ps1 index daf61c004592..013c27fdab57 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareAuthorization.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareAuthorization.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create an ExpressRoute Circuit Authorization in a private cloud +Create a ExpressRouteAuthorization .Description -Create an ExpressRoute Circuit Authorization in a private cloud +Create a ExpressRouteAuthorization .Example New-AzVMwareAuthorization -Name azps_test_authorization -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group @@ -32,60 +32,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareauthorization #> @@ -98,13 +96,13 @@ param( [Alias('AuthorizationName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the ExpressRoute Circuit Authorization in the private cloud + # Name of the ExpressRoute Circuit Authorization ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -119,6 +117,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -133,6 +132,12 @@ param( # Identity Parameter ${PrivateCloudInputObject}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The ID of the ExpressRoute Circuit + ${ExpressRouteId}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareCloudLink.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareCloudLink.ps1 index f8720289cdea..6dfac5376927 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareCloudLink.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareCloudLink.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a cloud link in a private cloud +Create a CloudLink .Description -Create a cloud link in a private cloud +Create a CloudLink .Example New-AzVMwareCloudLink -Name azps_test_cloudlink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -LinkedCloud "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group2/providers/Microsoft.AVS/privateClouds/azps_test_cloud2/" @@ -32,60 +32,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwarecloudlink #> @@ -98,13 +96,13 @@ param( [Alias('CloudLinkName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cloud link resource + # Name of the cloud link. ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -119,6 +117,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareCluster.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareCluster.ps1 index 96d24658edda..fba06509f013 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareCluster.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareCluster.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a cluster in a private cloud +Create a Cluster .Description -Create a cluster in a private cloud +Create a Cluster .Example New-AzVMwareCluster -Name azps_test_cluster -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -ClusterSize 3 -SkuName av36 @@ -32,60 +32,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwarecluster #> @@ -98,13 +96,13 @@ param( [Alias('ClusterName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -119,6 +117,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -137,6 +136,9 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] # The name of the SKU. + # E.g. + # P3. + # It is typically a letter+number code ${SkuName}, [Parameter()] @@ -152,6 +154,39 @@ param( # The hosts ${PropertiesHost}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.Int32] + # If the SKU supports scale out/in then the capacity integer should be included. + # If scale out/in is not possible for the resource this may be omitted. + ${SkuCapacity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # If the service has different generations of hardware, for the same SKU, then that can be captured here. + ${SkuFamily}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The SKU size. + # When the name field is the combination of tier and some other value, this would be the standalone code. + ${SkuSize}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + ${SkuTier}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # Name of the vsan datastore associated with the cluster + ${VsanDatastoreName}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareDatastore.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareDatastore.ps1 index 553637dc39b0..f424e2dc88d8 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareDatastore.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareDatastore.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a datastore in a private cloud cluster +Create a Datastore .Description -Create a datastore in a private cloud cluster +Create a Datastore .Example New-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -NetAppVolumeId "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/azps_test_group/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1" @@ -32,88 +32,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwaredatastore #> @@ -125,7 +122,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -134,7 +131,7 @@ param( [Alias('DatastoreName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the datastore in the private cloud cluster + # Name of the datastore ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -155,6 +152,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityClusterExpanded', Mandatory, ValueFromPipeline)] @@ -185,7 +183,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + # Mode that describes whether the LUN has to be mounted as a datastore orattached as a LUN ${DiskPoolVolumeMountOption}, [Parameter()] @@ -194,6 +192,12 @@ param( # Azure resource ID of the iSCSI target ${DiskPoolVolumeTargetId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # Azure resource ID of the Elastic SAN Volume + ${ElasticSanVolumeTargetId}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareGlobalReachConnection.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareGlobalReachConnection.ps1 index 105903561fa6..d2aaa8640a18 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareGlobalReachConnection.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareGlobalReachConnection.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a global reach connection in a private cloud +Create a GlobalReachConnection .Description -Create a global reach connection in a private cloud +Create a GlobalReachConnection .Example New-AzVMwareGlobalReachConnection -Name azps_test_grc -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -AuthorizationKey "df530ffb-5a57-4437-a3eb-08e4c73ce011" -PeerExpressRouteResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/tnt16-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt16-cust-mp01-mock01-er" @@ -32,60 +32,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareglobalreachconnection #> @@ -98,13 +96,13 @@ param( [Alias('GlobalReachConnectionName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the global reach connection in the private cloud + # Name of the global reach connection ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -119,6 +117,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -136,19 +135,19 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # Authorization key from the peer express route used for the global reach connection + # Authorization key from the peer express route used for the global reachconnection ${AuthorizationKey}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection + # The ID of the Private Cloud's ExpressRoute Circuit that is participating in theglobal reach connection ${ExpressRouteId}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # Identifier of the ExpressRoute Circuit to peer with in the global reach connection + # Identifier of the ExpressRoute Circuit to peer with in the global reachconnection ${PeerExpressRouteResourceId}, [Parameter()] diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareIdentitySourceObject.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareIdentitySourceObject.ps1 deleted file mode 100644 index 01e24ac2b870..000000000000 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareIdentitySourceObject.ps1 +++ /dev/null @@ -1,172 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code -# is regenerated. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create an in-memory object for IdentitySource. -.Description -Create an in-memory object for IdentitySource. -.Example -New-AzVMwareIdentitySourceObject -Alias test - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IdentitySource -.Link -https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwareidentitysourceobject -#> -function New-AzVMwareIdentitySourceObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IdentitySource])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The domain's NetBIOS name. - ${Alias}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The base distinguished name for groups. - ${BaseGroupDn}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The base distinguished name for users. - ${BaseUserDn}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The domain's dns name. - ${Domain}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The name of the identity source. - ${Name}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. - ${Password}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Primary server URL. - ${PrimaryServer}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Secondary server URL. - ${SecondaryServer}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Protect LDAP communication using SSL certificate (LDAPS). - ${Ssl}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group. - ${Username} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.VMware.custom\New-AzVMwareIdentitySourceObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareIscsiPath.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareIscsiPath.ps1 new file mode 100644 index 000000000000..e2e2c07600c9 --- /dev/null +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareIscsiPath.ps1 @@ -0,0 +1,247 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create a IscsiPath +.Description +Create a IscsiPath +.Example +New-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. + [PrivateCloudName ]: Name of the private cloud + [PublicIPId ]: ID of the DNS zone. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. +.Link +https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareiscsipath +#> +function New-AzVMwareIscsiPath { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # Name of the private cloud + ${PrivateCloudName}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # CIDR Block for iSCSI path. + ${NetworkBlock}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.VMware.private\New-AzVMwareIscsiPath_CreateExpanded'; + CreateViaIdentityExpanded = 'Az.VMware.private\New-AzVMwareIscsiPath_CreateViaIdentityExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwarePSCredentialExecutionParameterObject.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwarePSCredentialExecutionParameterObject.ps1 index e53983ce0c89..f0b608b12d25 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwarePSCredentialExecutionParameterObject.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwarePSCredentialExecutionParameterObject.ps1 @@ -16,16 +16,17 @@ <# .Synopsis -Create a in-memory object for PSCredentialExecutionParameter +Create an in-memory object for PSCredentialExecutionParameter. .Description -Create a in-memory object for PSCredentialExecutionParameter +Create an in-memory object for PSCredentialExecutionParameter. .Example -New-AzVMwarePSCredentialExecutionParameterObject -Name azps_test_credentialvalue -Password "passwordValue" -Username "usernameValue" +$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +New-AzVMwarePSCredentialExecutionParameterObject -Name azps_test_credentialvalue -Password $mypwd -Username "usernameValue" .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PsCredentialExecutionParameter .Link -https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwarePSCredentialExecutionParameterObject +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarepscredentialexecutionparameterobject #> function New-AzVMwarePSCredentialExecutionParameterObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PSCredentialExecutionParameter])] @@ -39,7 +40,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] + [System.Security.SecureString] # password for login. ${Password}, diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwarePlacementPolicy.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwarePlacementPolicy.ps1 index 460258348dc1..9dddf1616297 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwarePlacementPolicy.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwarePlacementPolicy.ps1 @@ -16,14 +16,14 @@ <# .Synopsis -Create a placement policy in a private cloud cluster +Create a PlacementPolicy .Description -Create a placement policy in a private cloud cluster +Create a PlacementPolicy .Example -$abc = New-AzVMwareVMPlacementPolicyPropertiesObject -AffinityType 'Affinity' -Type 'VmVm' -VMMember @{"test"="test"} +$abc = New-AzVMwareVMPlacementPolicyPropertyObject -AffinityType 'Affinity' -VMMember @{"test"="test"} New-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 -Property $abc .Example -$abc = New-AzVMwareVmHostPlacementPolicyPropertiesObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -Type 'VmHost' -VMMember @{"test"="test"} +$abc = New-AzVMwareVmHostPlacementPolicyPropertyObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -VMMember @{"test"="test"} New-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 -Property $abc .Inputs @@ -36,91 +36,88 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud - -PROPERTY : placement policy properties - Type : placement policy type + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. + +PROPERTY : The resource-specific properties for this resource. + Type : Placement Policy type [DisplayName ]: Display name of the placement policy [State ]: Whether the placement policy is enabled or disabled .Link @@ -134,7 +131,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -143,7 +140,7 @@ param( [Alias('PlacementPolicyName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy + # Name of the placement policy. ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -164,6 +161,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityClusterExpanded', Mandatory, ValueFromPipeline)] @@ -187,7 +185,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties] - # placement policy properties + # The resource-specific properties for this resource. ${Property}, [Parameter()] diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloud.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloud.ps1 index 3f70fcc0bc05..4222c3a07d3d 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloud.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloud.ps1 @@ -37,11 +37,11 @@ IDENTITYSOURCE : vCenter Single Sign On Identity Sources To c [BaseUserDn ]: The base distinguished name for users [Domain ]: The domain's dns name [Name ]: The name of the identity source - [Password ]: The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. + [Password ]: The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. [PrimaryServer ]: Primary server URL [SecondaryServer ]: Secondary server URL [Ssl ]: Protect LDAP communication using SSL certificate (LDAPS) - [Username ]: The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group + [Username ]: The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareprivatecloud #> @@ -187,7 +187,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info(PossibleTypes=([System.String]))] [System.Collections.Hashtable] # Resource tags ${Tag}, diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudNsxtPassword.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudNsxtPassword.ps1 index e4a5034d3d2c..4f10a627f44f 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudNsxtPassword.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudNsxtPassword.ps1 @@ -32,32 +32,31 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareprivatecloudnsxtpassword #> @@ -83,6 +82,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='RotateViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudVcenterPassword.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudVcenterPassword.ps1 index d3eb108d5b19..0dd8e1fa564c 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudVcenterPassword.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloudVcenterPassword.ps1 @@ -32,32 +32,31 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareprivatecloudvcenterpassword #> @@ -83,6 +82,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='RotateViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareScriptSecureStringExecutionParameterObject.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareScriptSecureStringExecutionParameterObject.ps1 index e75e30207ccb..ba4a012080a4 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareScriptSecureStringExecutionParameterObject.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareScriptSecureStringExecutionParameterObject.ps1 @@ -16,16 +16,17 @@ <# .Synopsis -Create a in-memory object for ScriptSecureStringExecutionParameter +Create an in-memory object for ScriptSecureStringExecutionParameter. .Description -Create a in-memory object for ScriptSecureStringExecutionParameter +Create an in-memory object for ScriptSecureStringExecutionParameter. .Example -New-AzVMwareScriptSecureStringExecutionParameterObject -Name azps_test_securevalue -SecureValue "passwordValue" +$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +New-AzVMwareScriptSecureStringExecutionParameterObject -Name azps_test_securevalue -SecureValue $mypwd .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptSecureStringExecutionParameter .Link -https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareScriptSecureStringExecutionParameterObject +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarescriptsecurestringexecutionparameterobject #> function New-AzVMwareScriptSecureStringExecutionParameterObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptSecureStringExecutionParameter])] @@ -39,7 +40,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] + [System.Security.SecureString] # A secure value for the passed parameter, not to be stored in logs. ${SecureValue} ) diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareScriptStringExecutionParameterObject.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareScriptStringExecutionParameterObject.ps1 index 13c6614fd7c3..9c0e17033180 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareScriptStringExecutionParameterObject.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareScriptStringExecutionParameterObject.ps1 @@ -16,16 +16,16 @@ <# .Synopsis -Create a in-memory object for ScriptStringExecutionParameter +Create an in-memory object for ScriptStringExecutionParameter. .Description -Create a in-memory object for ScriptStringExecutionParameter +Create an in-memory object for ScriptStringExecutionParameter. .Example New-AzVMwareScriptStringExecutionParameterObject -Name azps_test_value -Value "passwordValue" .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptStringExecutionParameter .Link -https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareScriptStringExecutionParameterObject +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarescriptstringexecutionparameterobject #> function New-AzVMwareScriptStringExecutionParameterObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptStringExecutionParameter])] diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareVMPlacementPolicyPropertiesObject.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareVMPlacementPolicyPropertyObject.ps1 similarity index 91% rename from src/VMware/VMware.Autorest/exports/New-AzVMwareVMPlacementPolicyPropertiesObject.ps1 rename to src/VMware/VMware.Autorest/exports/New-AzVMwareVMPlacementPolicyPropertyObject.ps1 index 0fce3de63644..bd5f4718e515 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareVMPlacementPolicyPropertiesObject.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareVMPlacementPolicyPropertyObject.ps1 @@ -20,14 +20,14 @@ Create an in-memory object for VMPlacementPolicyProperties. .Description Create an in-memory object for VMPlacementPolicyProperties. .Example - New-AzVMwareVMPlacementPolicyPropertiesObject -AffinityType 'Affinity' -Type 'VmVm' -VMMember @{"test"="test"} + New-AzVMwareVMPlacementPolicyPropertyObject -AffinityType 'Affinity' -VMMember @{"test"="test"} .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VMPlacementPolicyProperties .Link -https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareVMPlacementPolicyPropertiesObject +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarevmplacementpolicypropertyobject #> -function New-AzVMwareVMPlacementPolicyPropertiesObject { +function New-AzVMwareVMPlacementPolicyPropertyObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VMPlacementPolicyProperties])] [CmdletBinding(PositionalBinding=$false)] param( @@ -44,13 +44,6 @@ param( # Virtual machine members list. ${VMMember}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("VmVm", "VmHost")] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # placement policy type. - ${Type}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] @@ -91,7 +84,7 @@ begin { } $mapping = @{ - __AllParameterSets = 'Az.VMware.custom\New-AzVMwareVMPlacementPolicyPropertiesObject'; + __AllParameterSets = 'Az.VMware.custom\New-AzVMwareVMPlacementPolicyPropertyObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/New-AzVMwareVmHostPlacementPolicyPropertiesObject.ps1 b/src/VMware/VMware.Autorest/exports/New-AzVMwareVmHostPlacementPolicyPropertyObject.ps1 similarity index 89% rename from src/VMware/VMware.Autorest/exports/New-AzVMwareVmHostPlacementPolicyPropertiesObject.ps1 rename to src/VMware/VMware.Autorest/exports/New-AzVMwareVmHostPlacementPolicyPropertyObject.ps1 index e61863cc4a9b..ab0f3af5610d 100644 --- a/src/VMware/VMware.Autorest/exports/New-AzVMwareVmHostPlacementPolicyPropertiesObject.ps1 +++ b/src/VMware/VMware.Autorest/exports/New-AzVMwareVmHostPlacementPolicyPropertyObject.ps1 @@ -20,14 +20,14 @@ Create an in-memory object for VmHostPlacementPolicyProperties. .Description Create an in-memory object for VmHostPlacementPolicyProperties. .Example -New-AzVMwareVmHostPlacementPolicyPropertiesObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -Type 'VmHost' -VMMember @{"test"="test"} +New-AzVMwareVmHostPlacementPolicyPropertyObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -VMMember @{"test"="test"} .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VMHostPlacementPolicyProperties .Link -https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareVmHostPlacementPolicyPropertiesObject +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarevmhostplacementpolicypropertyobject #> -function New-AzVMwareVmHostPlacementPolicyPropertiesObject { +function New-AzVMwareVmHostPlacementPolicyPropertyObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VmHostPlacementPolicyProperties])] [CmdletBinding(PositionalBinding=$false)] param( @@ -50,12 +50,19 @@ param( # Virtual machine members list. ${VMMember}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("VmVm", "VmHost")] + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Should", "Must")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # vm-host placement policy affinity strength (should/must). + ${AffinityStrength}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SqlHost", "None")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # placement policy type. - ${Type}, + # placement policy azure hybrid benefit opt-in type. + ${AzureHybridBenefitType}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] @@ -97,7 +104,7 @@ begin { } $mapping = @{ - __AllParameterSets = 'Az.VMware.custom\New-AzVMwareVmHostPlacementPolicyPropertiesObject'; + __AllParameterSets = 'Az.VMware.custom\New-AzVMwareVmHostPlacementPolicyPropertyObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 index 0e38eb22cdf8..3aee6cf0e450 100644 --- a/src/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get an ExpressRoute Circuit Authorization by name in a private cloud +Get a ExpressRouteAuthorization .Description -Get an ExpressRoute Circuit Authorization by name in a private cloud +Get a ExpressRouteAuthorization .Example Get-AzVMwareAuthorization -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareauthorization #> @@ -100,7 +98,7 @@ param( [Alias('AuthorizationName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the ExpressRoute Circuit Authorization in the private cloud + # Name of the ExpressRoute Circuit Authorization ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -124,6 +122,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -279,9 +278,9 @@ end { <# .Synopsis -Get an cloud link by name in a private cloud +Get a CloudLink .Description -Get an cloud link by name in a private cloud +Get a CloudLink .Example Get-AzVMwareCloudLink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Example @@ -297,60 +296,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwarecloudlink #> @@ -363,7 +360,7 @@ param( [Alias('CloudLinkName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cloud link resource + # Name of the cloud link. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -387,6 +384,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -560,7 +558,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(Mandatory)] @@ -581,6 +579,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -721,9 +720,9 @@ end { <# .Synopsis -Get a cluster by name in a private cloud +Get a Cluster .Description -Get a cluster by name in a private cloud +Get a Cluster .Example Get-AzVMwareCluster -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Example @@ -739,60 +738,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwarecluster #> @@ -805,7 +802,7 @@ param( [Alias('ClusterName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -829,6 +826,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -984,9 +982,9 @@ end { <# .Synopsis -Get a datastore in a private cloud cluster +Get a Datastore .Description -Get a datastore in a private cloud cluster +Get a Datastore .Example Get-AzVMwareDatastore -ClusterName azps_test_cluster -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Example @@ -1002,88 +1000,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwaredatastore #> @@ -1096,7 +1091,7 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -1105,7 +1100,7 @@ param( [Alias('DatastoreName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the datastore in the private cloud cluster + # Name of the datastore ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -1129,6 +1124,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -1291,9 +1287,9 @@ end { <# .Synopsis -Get a global reach connection by name in a private cloud +Get a GlobalReachConnection .Description -Get a global reach connection by name in a private cloud +Get a GlobalReachConnection .Example Get-AzVMwareGlobalReachConnection -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Example @@ -1309,60 +1305,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareglobalreachconnection #> @@ -1375,7 +1369,7 @@ param( [Alias('GlobalReachConnectionName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the global reach connection in the private cloud + # Name of the global reach connection ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -1399,6 +1393,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -1554,9 +1549,227 @@ end { <# .Synopsis -Get a placement policy by name in a private cloud cluster +Get a IscsiPath .Description -Get a placement policy by name in a private cloud cluster +Get a IscsiPath +.Example +Get-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. + [PrivateCloudName ]: Name of the private cloud + [PublicIPId ]: ID of the DNS zone. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. +.Link +https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareiscsipath +#> +function Get-AzVMwareIscsiPath { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath])] +[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # Name of the private cloud + ${PrivateCloudName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Get = 'Az.VMware.private\Get-AzVMwareIscsiPath_Get'; + GetViaIdentity = 'Az.VMware.private\Get-AzVMwareIscsiPath_GetViaIdentity'; + List = 'Az.VMware.private\Get-AzVMwareIscsiPath_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Get a PlacementPolicy +.Description +Get a PlacementPolicy .Example Get-AzVMwarePlacementPolicy -ClusterName cluster1 -PrivateCloudName cloud1 -ResourceGroupName group1 .Example @@ -1572,88 +1785,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareplacementpolicy #> @@ -1666,7 +1876,7 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -1675,7 +1885,7 @@ param( [Alias('PlacementPolicyName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy + # Name of the placement policy. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -1699,6 +1909,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -1894,6 +2105,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -2034,9 +2246,9 @@ end { <# .Synopsis -Get a private cloud +Get a PrivateCloud .Description -Get a private cloud +Get a PrivateCloud .Example Get-AzVMwarePrivateCloud .Example @@ -2054,38 +2266,37 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareprivatecloud #> function Get-AzVMwarePrivateCloud { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud])] -[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('PrivateCloudName')] @@ -2095,7 +2306,7 @@ param( ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] # The name of the resource group. @@ -2109,6 +2320,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -2258,9 +2470,9 @@ end { <# .Synopsis -Get a virtual machine by id in a private cloud cluster +Get a VirtualMachine .Description -Get a virtual machine by id in a private cloud cluster +Get a VirtualMachine .Example Get-AzVMwareVirtualMachine -ClusterName cluster1 -PrivateCloudName cloud1 -ResourceGroupName group1 .Example @@ -2276,88 +2488,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwarevirtualmachine #> @@ -2370,7 +2579,7 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -2379,7 +2588,7 @@ param( [Alias('VirtualMachineId')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Virtual Machine identifier + # ID of the virtual machine. ${Id}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -2403,6 +2612,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -2565,9 +2775,9 @@ end { <# .Synopsis -Create an ExpressRoute Circuit Authorization in a private cloud +Create a ExpressRouteAuthorization .Description -Create an ExpressRoute Circuit Authorization in a private cloud +Create a ExpressRouteAuthorization .Example New-AzVMwareAuthorization -Name azps_test_authorization -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group @@ -2581,60 +2791,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareauthorization #> @@ -2647,13 +2855,13 @@ param( [Alias('AuthorizationName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the ExpressRoute Circuit Authorization in the private cloud + # Name of the ExpressRoute Circuit Authorization ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -2668,6 +2876,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -2682,6 +2891,12 @@ param( # Identity Parameter ${PrivateCloudInputObject}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The ID of the ExpressRoute Circuit + ${ExpressRouteId}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -2834,9 +3049,9 @@ end { <# .Synopsis -Create a cloud link in a private cloud +Create a CloudLink .Description -Create a cloud link in a private cloud +Create a CloudLink .Example New-AzVMwareCloudLink -Name azps_test_cloudlink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -LinkedCloud "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group2/providers/Microsoft.AVS/privateClouds/azps_test_cloud2/" @@ -2850,60 +3065,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwarecloudlink #> @@ -2916,13 +3129,13 @@ param( [Alias('CloudLinkName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cloud link resource + # Name of the cloud link. ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -2937,6 +3150,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -3109,9 +3323,9 @@ end { <# .Synopsis -Create a cluster in a private cloud +Create a Cluster .Description -Create a cluster in a private cloud +Create a Cluster .Example New-AzVMwareCluster -Name azps_test_cluster -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -ClusterSize 3 -SkuName av36 @@ -3125,60 +3339,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwarecluster #> @@ -3191,13 +3403,13 @@ param( [Alias('ClusterName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -3212,6 +3424,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -3230,6 +3443,9 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] # The name of the SKU. + # E.g. + # P3. + # It is typically a letter+number code ${SkuName}, [Parameter()] @@ -3245,6 +3461,39 @@ param( # The hosts ${PropertiesHost}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.Int32] + # If the SKU supports scale out/in then the capacity integer should be included. + # If scale out/in is not possible for the resource this may be omitted. + ${SkuCapacity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # If the service has different generations of hardware, for the same SKU, then that can be captured here. + ${SkuFamily}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The SKU size. + # When the name field is the combination of tier and some other value, this would be the standalone code. + ${SkuSize}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + ${SkuTier}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # Name of the vsan datastore associated with the cluster + ${VsanDatastoreName}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -3397,9 +3646,9 @@ end { <# .Synopsis -Create a datastore in a private cloud cluster +Create a Datastore .Description -Create a datastore in a private cloud cluster +Create a Datastore .Example New-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -NetAppVolumeId "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/azps_test_group/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1" @@ -3413,88 +3662,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwaredatastore #> @@ -3506,7 +3752,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -3515,7 +3761,7 @@ param( [Alias('DatastoreName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the datastore in the private cloud cluster + # Name of the datastore ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -3536,6 +3782,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityClusterExpanded', Mandatory, ValueFromPipeline)] @@ -3566,7 +3813,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + # Mode that describes whether the LUN has to be mounted as a datastore orattached as a LUN ${DiskPoolVolumeMountOption}, [Parameter()] @@ -3575,6 +3822,12 @@ param( # Azure resource ID of the iSCSI target ${DiskPoolVolumeTargetId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # Azure resource ID of the Elastic SAN Volume + ${ElasticSanVolumeTargetId}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] @@ -3734,9 +3987,9 @@ end { <# .Synopsis -Create a global reach connection in a private cloud +Create a GlobalReachConnection .Description -Create a global reach connection in a private cloud +Create a GlobalReachConnection .Example New-AzVMwareGlobalReachConnection -Name azps_test_grc -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -AuthorizationKey "df530ffb-5a57-4437-a3eb-08e4c73ce011" -PeerExpressRouteResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/tnt16-cust-mp01-mock01/providers/Microsoft.Network/expressRouteCircuits/tnt16-cust-mp01-mock01-er" @@ -3750,60 +4003,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareglobalreachconnection #> @@ -3816,13 +4067,13 @@ param( [Alias('GlobalReachConnectionName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the global reach connection in the private cloud + # Name of the global reach connection ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -3837,6 +4088,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -3854,19 +4106,19 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # Authorization key from the peer express route used for the global reach connection + # Authorization key from the peer express route used for the global reachconnection ${AuthorizationKey}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection + # The ID of the Private Cloud's ExpressRoute Circuit that is participating in theglobal reach connection ${ExpressRouteId}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # Identifier of the ExpressRoute Circuit to peer with in the global reach connection + # Identifier of the ExpressRoute Circuit to peer with in the global reachconnection ${PeerExpressRouteResourceId}, [Parameter()] @@ -4021,136 +4273,54 @@ end { <# .Synopsis -Create a placement policy in a private cloud cluster +Create a IscsiPath .Description -Create a placement policy in a private cloud cluster -.Example -$abc = New-AzVMwareVMPlacementPolicyPropertiesObject -AffinityType 'Affinity' -Type 'VmVm' -VMMember @{"test"="test"} -New-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 -Property $abc +Create a IscsiPath .Example -$abc = New-AzVMwareVmHostPlacementPolicyPropertiesObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -Type 'VmHost' -VMMember @{"test"="test"} -New-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 -Property $abc +New-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Inputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud - [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name - [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud - INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud - -PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud - [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name - [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud - -PROPERTY : placement policy properties - Type : placement policy type - [DisplayName ]: Display name of the placement policy - [State ]: Whether the placement policy is enabled or disabled + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link -https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareplacementpolicy +https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareiscsipath #> -function New-AzVMwarePlacementPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy])] +function New-AzVMwareIscsiPath { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] - [System.String] - # Name of the cluster in the private cloud - ${ClusterName}, - - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityClusterExpanded', Mandatory)] - [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] - [Alias('PlacementPolicyName')] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] - [System.String] - # Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - ${Name}, - [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] @@ -4169,6 +4339,318 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # CIDR Block for iSCSI path. + ${NetworkBlock}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + CreateExpanded = 'Az.VMware.private\New-AzVMwareIscsiPath_CreateExpanded'; + CreateViaIdentityExpanded = 'Az.VMware.private\New-AzVMwareIscsiPath_CreateViaIdentityExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create a PlacementPolicy +.Description +Create a PlacementPolicy +.Example +$abc = New-AzVMwareVMPlacementPolicyPropertyObject -AffinityType 'Affinity' -VMMember @{"test"="test"} +New-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 -Property $abc +.Example +$abc = New-AzVMwareVmHostPlacementPolicyPropertyObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -VMMember @{"test"="test"} +New-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 -Property $abc + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CLUSTERINPUTOBJECT : Identity Parameter + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. + [PrivateCloudName ]: Name of the private cloud + [PublicIPId ]: ID of the DNS zone. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. + +INPUTOBJECT : Identity Parameter + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. + [PrivateCloudName ]: Name of the private cloud + [PublicIPId ]: ID of the DNS zone. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. + +PRIVATECLOUDINPUTOBJECT : Identity Parameter + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. + [PrivateCloudName ]: Name of the private cloud + [PublicIPId ]: ID of the DNS zone. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. + +PROPERTY : The resource-specific properties for this resource. + Type : Placement Policy type + [DisplayName ]: Display name of the placement policy + [State ]: Whether the placement policy is enabled or disabled +.Link +https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareplacementpolicy +#> +function New-AzVMwarePlacementPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # Name of the cluster + ${ClusterName}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityClusterExpanded', Mandatory)] + [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] + [Alias('PlacementPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # Name of the placement policy. + ${Name}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # Name of the private cloud + ${PrivateCloudName}, + + [Parameter(ParameterSetName='CreateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityClusterExpanded', Mandatory, ValueFromPipeline)] @@ -4192,7 +4674,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties] - # placement policy properties + # The resource-specific properties for this resource. ${Property}, [Parameter()] @@ -4364,32 +4846,31 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareprivatecloudnsxtpassword #> @@ -4415,6 +4896,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='RotateViaIdentity', Mandatory, ValueFromPipeline)] @@ -4596,32 +5078,31 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareprivatecloudvcenterpassword #> @@ -4647,6 +5128,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='RotateViaIdentity', Mandatory, ValueFromPipeline)] @@ -4812,9 +5294,9 @@ end { <# .Synopsis -Delete an ExpressRoute Circuit Authorization in a private cloud +Delete a ExpressRouteAuthorization .Description -Delete an ExpressRoute Circuit Authorization in a private cloud +Delete a ExpressRouteAuthorization .Example Remove-AzVMwareAuthorization -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -Name azps_test_authorization @@ -4832,60 +5314,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareauthorization #> @@ -4898,7 +5378,7 @@ param( [Alias('AuthorizationName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the ExpressRoute Circuit Authorization in the private cloud + # Name of the ExpressRoute Circuit Authorization ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -4919,6 +5399,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -5091,9 +5572,9 @@ end { <# .Synopsis -Delete a cloud link in a private cloud +Delete a CloudLink .Description -Delete a cloud link in a private cloud +Delete a CloudLink .Example Remove-AzVMwareCloudLink -Name azps_test_cloudlink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group @@ -5111,60 +5592,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwarecloudlink #> @@ -5177,7 +5656,7 @@ param( [Alias('CloudLinkName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cloud link resource + # Name of the cloud link. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -5198,6 +5677,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -5370,9 +5850,9 @@ end { <# .Synopsis -Delete a cluster in a private cloud +Delete a Cluster .Description -Delete a cluster in a private cloud +Delete a Cluster .Example Remove-AzVMwareCluster -Name azps_test_cluster -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group @@ -5390,60 +5870,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwarecluster #> @@ -5456,7 +5934,7 @@ param( [Alias('ClusterName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -5477,6 +5955,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -5649,9 +6128,9 @@ end { <# .Synopsis -Delete a datastore in a private cloud cluster +Delete a Datastore .Description -Delete a datastore in a private cloud cluster +Delete a Datastore .Example Remove-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Example @@ -5667,88 +6146,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwaredatastore #> @@ -5760,7 +6236,7 @@ param( [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -5769,7 +6245,7 @@ param( [Alias('DatastoreName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the datastore in the private cloud cluster + # Name of the datastore ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -5790,6 +6266,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -5969,9 +6446,9 @@ end { <# .Synopsis -Delete a global reach connection in a private cloud +Delete a GlobalReachConnection .Description -Delete a global reach connection in a private cloud +Delete a GlobalReachConnection .Example Remove-AzVMwareGlobalReachConnection -Name azps_test_grc -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group @@ -5989,60 +6466,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareglobalreachconnection #> @@ -6055,7 +6530,7 @@ param( [Alias('GlobalReachConnectionName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the global reach connection in the private cloud + # Name of the global reach connection ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -6076,6 +6551,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -6248,15 +6724,13 @@ end { <# .Synopsis -Delete a placement policy in a private cloud cluster +Delete a IscsiPath .Description -Delete a placement policy in a private cloud cluster +Delete a IscsiPath .Example -Remove-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 - +Remove-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Example -Get-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 | Remove-AzVMwarePlacementPolicy - +Get-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group | Remove-AzVMwareIscsiPath .Inputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -6267,111 +6741,344 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud - [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name - [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud - INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud - [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name - [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud - -PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link -https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareplacementpolicy +https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareiscsipath #> -function Remove-AzVMwarePlacementPolicy { +function Remove-AzVMwareIscsiPath { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] - [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud - ${ClusterName}, + # Name of the private cloud + ${PrivateCloudName}, [Parameter(ParameterSetName='Delete', Mandatory)] - [Parameter(ParameterSetName='DeleteViaIdentityCluster', Mandatory)] - [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory)] - [Alias('PlacementPolicyName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - ${Name}, + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.VMware.private\Remove-AzVMwareIscsiPath_Delete'; + DeleteViaIdentity = 'Az.VMware.private\Remove-AzVMwareIscsiPath_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Delete a PlacementPolicy +.Description +Delete a PlacementPolicy +.Example +Remove-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 + +.Example +Get-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 | Remove-AzVMwarePlacementPolicy + + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +CLUSTERINPUTOBJECT : Identity Parameter + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. + [PrivateCloudName ]: Name of the private cloud + [PublicIPId ]: ID of the DNS zone. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. + +INPUTOBJECT : Identity Parameter + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. + [PrivateCloudName ]: Name of the private cloud + [PublicIPId ]: ID of the DNS zone. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. + +PRIVATECLOUDINPUTOBJECT : Identity Parameter + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. + [PrivateCloudName ]: Name of the private cloud + [PublicIPId ]: ID of the DNS zone. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. +.Link +https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareplacementpolicy +#> +function Remove-AzVMwarePlacementPolicy { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # Name of the cluster + ${ClusterName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='DeleteViaIdentityCluster', Mandatory)] + [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory)] + [Alias('PlacementPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # Name of the placement policy. + ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] @@ -6391,6 +7098,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -6588,7 +7296,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Azure region + # The name of the Azure region. ${Location}, [Parameter()] @@ -6596,6 +7304,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -6754,7 +7463,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Azure region + # The name of the Azure region. ${Location}, [Parameter()] @@ -6762,14 +7471,45 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.Int32] + # If the SKU supports scale out/in then the capacity integer should be included. + # If scale out/in is not possible for the resource this may be omitted. + ${Capacity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # If the service has different generations of hardware, for the same SKU, then that can be captured here. + ${Family}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] # The name of the SKU. + # E.g. + # P3. + # It is typically a letter+number code ${Name}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The SKU size. + # When the name field is the combination of tier and some other value, this would be the standalone code. + ${Size}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + ${Tier}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -6908,9 +7648,9 @@ end { <# .Synopsis -Update an ExpressRoute Circuit Authorization in a private cloud +Update a ExpressRouteAuthorization .Description -Update an ExpressRoute Circuit Authorization in a private cloud +Update a ExpressRouteAuthorization .Example Update-AzVMwareAuthorization -Name azps_test_authorization -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group @@ -6924,60 +7664,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareauthorization #> @@ -6990,13 +7728,13 @@ param( [Alias('AuthorizationName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the ExpressRoute Circuit Authorization in the private cloud + # Name of the ExpressRoute Circuit Authorization ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -7011,6 +7749,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -7177,11 +7916,11 @@ end { <# .Synopsis -Update a cloud link in a private cloud +Update a CloudLink .Description -Update a cloud link in a private cloud +Update a CloudLink .Example -Update-AzVMwareCloudLink -Name azps_test_cloudlink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -LinkedCloud "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group2/providers/Microsoft.AVS/privateClouds/azps_test_cloud2/" +Update-AzVMwareCloudLink -Name azps_test_cloudlink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Inputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -7193,60 +7932,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwarecloudlink #> @@ -7259,13 +7996,13 @@ param( [Alias('CloudLinkName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cloud link resource + # Name of the cloud link. ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -7280,6 +8017,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -7294,12 +8032,6 @@ param( # Identity Parameter ${PrivateCloudInputObject}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Identifier of the other private cloud participating in the link. - ${LinkedCloud}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -7452,9 +8184,9 @@ end { <# .Synopsis -Update a cluster in a private cloud +Update a Cluster .Description -Update a cluster in a private cloud +Update a Cluster .Example Update-AzVMwareCluster -Name azps_test_cluster -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -ClusterSize 4 .Example @@ -7470,60 +8202,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwarecluster #> @@ -7536,7 +8266,7 @@ param( [Alias('ClusterName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -7557,6 +8287,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -7584,6 +8315,42 @@ param( # The hosts ${PropertiesHost}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.Int32] + # If the SKU supports scale out/in then the capacity integer should be included. + # If scale out/in is not possible for the resource this may be omitted. + ${SkuCapacity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # If the service has different generations of hardware, for the same SKU, then that can be captured here. + ${SkuFamily}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The name of the SKU. + # E.g. + # P3. + # It is typically a letter+number code + ${SkuName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The SKU size. + # When the name field is the combination of tier and some other value, this would be the standalone code. + ${SkuSize}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + ${SkuTier}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -7736,11 +8503,11 @@ end { <# .Synopsis -Update a datastore in a private cloud cluster +Update a Datastore .Description -Update a datastore in a private cloud cluster +Update a Datastore .Example -Update-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -NetAppVolumeId "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/azps_test_group/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1" +Update-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Inputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -7752,88 +8519,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwaredatastore #> @@ -7845,7 +8609,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -7854,7 +8618,7 @@ param( [Alias('DatastoreName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the datastore in the private cloud cluster + # Name of the datastore ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -7875,6 +8639,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityClusterExpanded', Mandatory, ValueFromPipeline)] @@ -7896,29 +8661,273 @@ param( ${PrivateCloudInputObject}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Name of the LUN to be used for datastore - ${DiskPoolVolumeLunName}, + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN - ${DiskPoolVolumeMountOption}, + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded = 'Az.VMware.private\Update-AzVMwareDatastore_UpdateExpanded'; + UpdateViaIdentityClusterExpanded = 'Az.VMware.private\Update-AzVMwareDatastore_UpdateViaIdentityClusterExpanded'; + UpdateViaIdentityExpanded = 'Az.VMware.private\Update-AzVMwareDatastore_UpdateViaIdentityExpanded'; + UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Update a GlobalReachConnection +.Description +Update a GlobalReachConnection +.Example +Update-AzVMwareGlobalReachConnection -Name azps_test_grc -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. + [PrivateCloudName ]: Name of the private cloud + [PublicIPId ]: ID of the DNS zone. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. + +PRIVATECLOUDINPUTOBJECT : Identity Parameter + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. + [PrivateCloudName ]: Name of the private cloud + [PublicIPId ]: ID of the DNS zone. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. +.Link +https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareglobalreachconnection +#> +function Update-AzVMwareGlobalReachConnection { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] + [Alias('GlobalReachConnectionName')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Azure resource ID of the iSCSI target - ${DiskPoolVolumeTargetId}, + # Name of the global reach connection + ${Name}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Azure resource ID of the NetApp volume - ${NetAppVolumeId}, + # Name of the private cloud + ${PrivateCloudName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] + # Identity Parameter + ${PrivateCloudInputObject}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -8007,10 +9016,9 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.VMware.private\Update-AzVMwareDatastore_UpdateExpanded'; - UpdateViaIdentityClusterExpanded = 'Az.VMware.private\Update-AzVMwareDatastore_UpdateViaIdentityClusterExpanded'; - UpdateViaIdentityExpanded = 'Az.VMware.private\Update-AzVMwareDatastore_UpdateViaIdentityExpanded'; - UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded'; + UpdateExpanded = 'Az.VMware.private\Update-AzVMwareGlobalReachConnection_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.VMware.private\Update-AzVMwareGlobalReachConnection_UpdateViaIdentityExpanded'; + UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false @@ -8073,95 +9081,58 @@ end { <# .Synopsis -Update a global reach connection in a private cloud +Update a IscsiPath .Description -Update a global reach connection in a private cloud +Update a IscsiPath .Example -Update-AzVMwareGlobalReachConnection -Name azps_test_grc -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group +Update-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Inputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud - [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name - [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud - -PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link -https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareglobalreachconnection +https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareiscsipath #> -function Update-AzVMwareGlobalReachConnection { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection])] +function Update-AzVMwareIscsiPath { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] - [Alias('GlobalReachConnectionName')] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] - [System.String] - # Name of the global reach connection in the private cloud - ${Name}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -8176,6 +9147,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -8184,30 +9156,6 @@ param( # Identity Parameter ${InputObject}, - [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] - # Identity Parameter - ${PrivateCloudInputObject}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Authorization key from the peer express route used for the global reach connection - ${AuthorizationKey}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection - ${ExpressRouteId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Identifier of the ExpressRoute Circuit to peer with in the global reach connection - ${PeerExpressRouteCircuit}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -8295,9 +9243,8 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.VMware.private\Update-AzVMwareGlobalReachConnection_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.VMware.private\Update-AzVMwareGlobalReachConnection_UpdateViaIdentityExpanded'; - UpdateViaIdentityPrivateCloudExpanded = 'Az.VMware.private\Update-AzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded'; + UpdateExpanded = 'Az.VMware.private\Update-AzVMwareIscsiPath_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.VMware.private\Update-AzVMwareIscsiPath_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false @@ -8360,9 +9307,9 @@ end { <# .Synopsis -Update a placement policy in a private cloud cluster +Update a PlacementPolicy .Description -Update a placement policy in a private cloud cluster +Update a PlacementPolicy .Example Update-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 -State 'Enabled' .Example @@ -8378,88 +9325,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareplacementpolicy #> @@ -8471,7 +9415,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -8480,7 +9424,7 @@ param( [Alias('PlacementPolicyName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy + # Name of the placement policy. ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -8501,6 +9445,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityClusterExpanded', Mandatory, ValueFromPipeline)] @@ -8709,13 +9654,13 @@ end { <# .Synopsis -Update a private cloud +Update a PrivateCloud .Description -Update a private cloud +Update a PrivateCloud .Example -Update-AzVMwarePrivateCloud -Name azps_test_cloud -ResourceGroupName azps_test_group -ManagementClusterSize 4 +Update-AzVMwarePrivateCloud -Name azps_test_cloud -ResourceGroupName azps_test_group .Example -Get-AzVMwarePrivateCloud -ResourceGroupName azps_test_group -Name azps_test_cloud | Update-AzVMwarePrivateCloud -ManagementClusterSize 4 +Get-AzVMwarePrivateCloud -ResourceGroupName azps_test_group -Name azps_test_cloud | Update-AzVMwarePrivateCloud .Inputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -8726,45 +9671,32 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -IDENTITYSOURCE : vCenter Single Sign On Identity Sources - [Alias ]: The domain's NetBIOS name - [BaseGroupDn ]: The base distinguished name for groups - [BaseUserDn ]: The base distinguished name for users - [Domain ]: The domain's dns name - [Name ]: The name of the identity source - [Password ]: The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. - [PrimaryServer ]: Primary server URL - [SecondaryServer ]: Secondary server URL - [Ssl ]: Protect LDAP communication using SSL certificate (LDAPS) - [Username ]: The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group - INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareprivatecloud #> @@ -8791,6 +9723,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -8800,80 +9733,52 @@ param( ${InputObject}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Status of customer managed encryption key - ${EncryptionStatus}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String[]] - # Array of additional networks noncontiguous with networkBlock. - # Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. - # Make sure the CIDR format conforms to (A.B.C.D/X). - ${ExtendedNetworkBlock}, - - [Parameter()] - [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource[]] - # vCenter Single Sign On Identity Sources - ${IdentitySource}, + [System.Nullable[System.Boolean]] + # Decides if enable a system assigned identity for the resource. + ${EnableSystemAssignedIdentity}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SystemAssigned", "None")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The type of identity used for the private cloud. - # The type 'SystemAssigned' refers to an implicitly created identity. - # The type 'None' will remove any identities from the Private Cloud. - ${IdentityType}, + [System.Int32] + # If the SKU supports scale out/in then the capacity integer should be included. + # If scale out/in is not possible for the resource this may be omitted. + ${SkuCapacity}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # Connectivity to internet is enabled or disabled - ${Internet}, + # If the service has different generations of hardware, for the same SKU, then that can be captured here. + ${SkuFamily}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # The name of the key. - ${KeyVaultPropertyKeyName}, + # The name of the SKU. + # E.g. + # P3. + # It is typically a letter+number code + ${SkuName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # The URL of the vault. - ${KeyVaultPropertyKeyVaultUrl}, + # The SKU size. + # When the name field is the combination of tier and some other value, this would be the standalone code. + ${SkuSize}, [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # The version of the key. - ${KeyVaultPropertyKeyVersion}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String[]] - # The hosts - ${ManagementClusterHost}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.Int32] - # The cluster size - ${ManagementClusterSize}, + # This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + ${SkuTier}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags]))] [System.Collections.Hashtable] - # Resource tags + # Resource tags. ${Tag}, [Parameter()] @@ -9045,32 +9950,31 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareaddon #> @@ -9258,7 +10162,7 @@ Create or update a addon in a private cloud .Description Create or update a addon in a private cloud .Example -$data = New-AzVMwareAddonVrPropertiesObject -VrsCount 2 +$data = New-AzVMwareAddonVrPropertyObject -VrsCount 2 New-AzVMwareAddon -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -Property $data .Outputs @@ -9269,7 +10173,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. PROPERTY : The properties of an addon resource To construct, see NOTES section for PROPERTY properties and create a hash table. - AddonType : The type of private cloud addon + AddonType : Addon type .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareaddon #> @@ -9453,22 +10357,22 @@ end { <# .Synopsis -Create a in-memory object for AddonSrmProperties +Create an in-memory object for AddonSrmProperties. .Description -Create a in-memory object for AddonSrmProperties +Create an in-memory object for AddonSrmProperties. .Example -New-AzVMwareAddonSrmPropertiesObject -LicenseKey "YourLicenseKeyValue" +New-AzVMwareAddonSrmPropertyObject -LicenseKey "YourLicenseKeyValue" .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonSrmProperties .Link -https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareAddonSrmPropertiesObject +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwareaddonsrmpropertyobject #> -function New-AzVMwareAddonSrmPropertiesObject { +function New-AzVMwareAddonSrmPropertyObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonSrmProperties])] [CmdletBinding(PositionalBinding=$false)] param( - [Parameter(Mandatory)] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] # The Site Recovery Manager (SRM) license. @@ -9501,7 +10405,7 @@ begin { } $mapping = @{ - __AllParameterSets = 'Az.VMware.custom\New-AzVMwareAddonSrmPropertiesObject'; + __AllParameterSets = 'Az.VMware.custom\New-AzVMwareAddonSrmPropertyObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -9555,18 +10459,18 @@ end { <# .Synopsis -Create a in-memory object for AddonVrProperties +Create an in-memory object for AddonVrProperties. .Description -Create a in-memory object for AddonVrProperties +Create an in-memory object for AddonVrProperties. .Example -New-AzVMwareAddonVrPropertiesObject -VrsCount 2 +New-AzVMwareAddonVrPropertyObject -VrsCount 2 .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonVrProperties .Link -https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareAddonVrPropertiesObject +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwareaddonvrpropertyobject #> -function New-AzVMwareAddonVrPropertiesObject { +function New-AzVMwareAddonVrPropertyObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonVrProperties])] [CmdletBinding(PositionalBinding=$false)] param( @@ -9603,164 +10507,7 @@ begin { } $mapping = @{ - __AllParameterSets = 'Az.VMware.custom\New-AzVMwareAddonVrPropertiesObject'; - } - $cmdInfo = Get-Command -Name $mapping[$parameterSet] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } - - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - -} -end { - try { - $steppablePipeline.End() - - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets - if ($preTelemetryId -eq '') { - [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId - - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} - -<# -.Synopsis -Create an in-memory object for IdentitySource. -.Description -Create an in-memory object for IdentitySource. -.Example -New-AzVMwareIdentitySourceObject -Alias test - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IdentitySource -.Link -https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwareidentitysourceobject -#> -function New-AzVMwareIdentitySourceObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IdentitySource])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The domain's NetBIOS name. - ${Alias}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The base distinguished name for groups. - ${BaseGroupDn}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The base distinguished name for users. - ${BaseUserDn}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The domain's dns name. - ${Domain}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The name of the identity source. - ${Name}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. - ${Password}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Primary server URL. - ${PrimaryServer}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Secondary server URL. - ${SecondaryServer}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Protect LDAP communication using SSL certificate (LDAPS). - ${Ssl}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group. - ${Username} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - - if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() - } - $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - if ($preTelemetryId -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() - [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) - } else { - $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - if ($internalCalledCmdlets -eq '') { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name - } else { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name - } - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' - } - - $mapping = @{ - __AllParameterSets = 'Az.VMware.custom\New-AzVMwareIdentitySourceObject'; + __AllParameterSets = 'Az.VMware.custom\New-AzVMwareAddonVrPropertyObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -9835,11 +10582,11 @@ IDENTITYSOURCE : vCenter Single Sign On Identity Sources To c [BaseUserDn ]: The base distinguished name for users [Domain ]: The domain's dns name [Name ]: The name of the identity source - [Password ]: The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. + [Password ]: The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. [PrimaryServer ]: Primary server URL [SecondaryServer ]: Secondary server URL [Ssl ]: Protect LDAP communication using SSL certificate (LDAPS) - [Username ]: The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group + [Username ]: The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareprivatecloud #> @@ -9985,7 +10732,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info(PossibleTypes=([System.String]))] [System.Collections.Hashtable] # Resource tags ${Tag}, @@ -10152,16 +10899,17 @@ end { <# .Synopsis -Create a in-memory object for PSCredentialExecutionParameter +Create an in-memory object for PSCredentialExecutionParameter. .Description -Create a in-memory object for PSCredentialExecutionParameter +Create an in-memory object for PSCredentialExecutionParameter. .Example -New-AzVMwarePSCredentialExecutionParameterObject -Name azps_test_credentialvalue -Password "passwordValue" -Username "usernameValue" +$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +New-AzVMwarePSCredentialExecutionParameterObject -Name azps_test_credentialvalue -Password $mypwd -Username "usernameValue" .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PsCredentialExecutionParameter .Link -https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwarePSCredentialExecutionParameterObject +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarepscredentialexecutionparameterobject #> function New-AzVMwarePSCredentialExecutionParameterObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PSCredentialExecutionParameter])] @@ -10175,7 +10923,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] + [System.Security.SecureString] # password for login. ${Password}, @@ -10266,16 +11014,17 @@ end { <# .Synopsis -Create a in-memory object for ScriptSecureStringExecutionParameter +Create an in-memory object for ScriptSecureStringExecutionParameter. .Description -Create a in-memory object for ScriptSecureStringExecutionParameter +Create an in-memory object for ScriptSecureStringExecutionParameter. .Example -New-AzVMwareScriptSecureStringExecutionParameterObject -Name azps_test_securevalue -SecureValue "passwordValue" +$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +New-AzVMwareScriptSecureStringExecutionParameterObject -Name azps_test_securevalue -SecureValue $mypwd .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptSecureStringExecutionParameter .Link -https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareScriptSecureStringExecutionParameterObject +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarescriptsecurestringexecutionparameterobject #> function New-AzVMwareScriptSecureStringExecutionParameterObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptSecureStringExecutionParameter])] @@ -10289,7 +11038,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] + [System.Security.SecureString] # A secure value for the passed parameter, not to be stored in logs. ${SecureValue} ) @@ -10374,16 +11123,16 @@ end { <# .Synopsis -Create a in-memory object for ScriptStringExecutionParameter +Create an in-memory object for ScriptStringExecutionParameter. .Description -Create a in-memory object for ScriptStringExecutionParameter +Create an in-memory object for ScriptStringExecutionParameter. .Example New-AzVMwareScriptStringExecutionParameterObject -Name azps_test_value -Value "passwordValue" .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptStringExecutionParameter .Link -https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareScriptStringExecutionParameterObject +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarescriptstringexecutionparameterobject #> function New-AzVMwareScriptStringExecutionParameterObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptStringExecutionParameter])] @@ -10486,14 +11235,14 @@ Create an in-memory object for VmHostPlacementPolicyProperties. .Description Create an in-memory object for VmHostPlacementPolicyProperties. .Example -New-AzVMwareVmHostPlacementPolicyPropertiesObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -Type 'VmHost' -VMMember @{"test"="test"} +New-AzVMwareVmHostPlacementPolicyPropertyObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -VMMember @{"test"="test"} .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VMHostPlacementPolicyProperties .Link -https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareVmHostPlacementPolicyPropertiesObject +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarevmhostplacementpolicypropertyobject #> -function New-AzVMwareVmHostPlacementPolicyPropertiesObject { +function New-AzVMwareVmHostPlacementPolicyPropertyObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VmHostPlacementPolicyProperties])] [CmdletBinding(PositionalBinding=$false)] param( @@ -10516,12 +11265,19 @@ param( # Virtual machine members list. ${VMMember}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("VmVm", "VmHost")] + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Should", "Must")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # vm-host placement policy affinity strength (should/must). + ${AffinityStrength}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SqlHost", "None")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # placement policy type. - ${Type}, + # placement policy azure hybrid benefit opt-in type. + ${AzureHybridBenefitType}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] @@ -10563,7 +11319,7 @@ begin { } $mapping = @{ - __AllParameterSets = 'Az.VMware.custom\New-AzVMwareVmHostPlacementPolicyPropertiesObject'; + __AllParameterSets = 'Az.VMware.custom\New-AzVMwareVmHostPlacementPolicyPropertyObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -10621,14 +11377,14 @@ Create an in-memory object for VMPlacementPolicyProperties. .Description Create an in-memory object for VMPlacementPolicyProperties. .Example - New-AzVMwareVMPlacementPolicyPropertiesObject -AffinityType 'Affinity' -Type 'VmVm' -VMMember @{"test"="test"} + New-AzVMwareVMPlacementPolicyPropertyObject -AffinityType 'Affinity' -VMMember @{"test"="test"} .Outputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VMPlacementPolicyProperties .Link -https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareVMPlacementPolicyPropertiesObject +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarevmplacementpolicypropertyobject #> -function New-AzVMwareVMPlacementPolicyPropertiesObject { +function New-AzVMwareVMPlacementPolicyPropertyObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VMPlacementPolicyProperties])] [CmdletBinding(PositionalBinding=$false)] param( @@ -10645,13 +11401,6 @@ param( # Virtual machine members list. ${VMMember}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("VmVm", "VmHost")] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # placement policy type. - ${Type}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] @@ -10692,7 +11441,7 @@ begin { } $mapping = @{ - __AllParameterSets = 'Az.VMware.custom\New-AzVMwareVMPlacementPolicyPropertiesObject'; + __AllParameterSets = 'Az.VMware.custom\New-AzVMwareVMPlacementPolicyPropertyObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -10766,32 +11515,31 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareaddon #> @@ -11009,32 +11757,31 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareprivatecloud #> diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareAddon.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareAddon.ps1 index e11c8167d877..b151b50fcb06 100644 --- a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareAddon.ps1 +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareAddon.ps1 @@ -36,32 +36,31 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareaddon #> diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareAuthorization.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareAuthorization.ps1 index f2d833c51533..c05ea9819d26 100644 --- a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareAuthorization.ps1 +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareAuthorization.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Delete an ExpressRoute Circuit Authorization in a private cloud +Delete a ExpressRouteAuthorization .Description -Delete an ExpressRoute Circuit Authorization in a private cloud +Delete a ExpressRouteAuthorization .Example Remove-AzVMwareAuthorization -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -Name azps_test_authorization @@ -36,60 +36,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareauthorization #> @@ -102,7 +100,7 @@ param( [Alias('AuthorizationName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the ExpressRoute Circuit Authorization in the private cloud + # Name of the ExpressRoute Circuit Authorization ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -123,6 +121,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareCloudLink.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareCloudLink.ps1 index d678e5896bee..cf7b9a599c84 100644 --- a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareCloudLink.ps1 +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareCloudLink.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Delete a cloud link in a private cloud +Delete a CloudLink .Description -Delete a cloud link in a private cloud +Delete a CloudLink .Example Remove-AzVMwareCloudLink -Name azps_test_cloudlink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group @@ -36,60 +36,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwarecloudlink #> @@ -102,7 +100,7 @@ param( [Alias('CloudLinkName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cloud link resource + # Name of the cloud link. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -123,6 +121,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareCluster.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareCluster.ps1 index 210c1b4368b4..69e4655bc92b 100644 --- a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareCluster.ps1 +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareCluster.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Delete a cluster in a private cloud +Delete a Cluster .Description -Delete a cluster in a private cloud +Delete a Cluster .Example Remove-AzVMwareCluster -Name azps_test_cluster -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group @@ -36,60 +36,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwarecluster #> @@ -102,7 +100,7 @@ param( [Alias('ClusterName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -123,6 +121,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareDatastore.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareDatastore.ps1 index 171c24dd8bfc..316a82eb450e 100644 --- a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareDatastore.ps1 +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareDatastore.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Delete a datastore in a private cloud cluster +Delete a Datastore .Description -Delete a datastore in a private cloud cluster +Delete a Datastore .Example Remove-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Example @@ -34,88 +34,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwaredatastore #> @@ -127,7 +124,7 @@ param( [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -136,7 +133,7 @@ param( [Alias('DatastoreName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the datastore in the private cloud cluster + # Name of the datastore ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -157,6 +154,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareGlobalReachConnection.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareGlobalReachConnection.ps1 index 1a1c8e3f2454..0d07a13863c6 100644 --- a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareGlobalReachConnection.ps1 +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareGlobalReachConnection.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Delete a global reach connection in a private cloud +Delete a GlobalReachConnection .Description -Delete a global reach connection in a private cloud +Delete a GlobalReachConnection .Example Remove-AzVMwareGlobalReachConnection -Name azps_test_grc -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group @@ -36,60 +36,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareglobalreachconnection #> @@ -102,7 +100,7 @@ param( [Alias('GlobalReachConnectionName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the global reach connection in the private cloud + # Name of the global reach connection ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -123,6 +121,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwareIscsiPath.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareIscsiPath.ps1 new file mode 100644 index 000000000000..ff9e28482411 --- /dev/null +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwareIscsiPath.ps1 @@ -0,0 +1,249 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Delete a IscsiPath +.Description +Delete a IscsiPath +.Example +Remove-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group +.Example +Get-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group | Remove-AzVMwareIscsiPath + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. + [PrivateCloudName ]: Name of the private cloud + [PublicIPId ]: ID of the DNS zone. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. +.Link +https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareiscsipath +#> +function Remove-AzVMwareIscsiPath { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # Name of the private cloud + ${PrivateCloudName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.VMware.private\Remove-AzVMwareIscsiPath_Delete'; + DeleteViaIdentity = 'Az.VMware.private\Remove-AzVMwareIscsiPath_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwarePlacementPolicy.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwarePlacementPolicy.ps1 index 94e3a1eebf82..23c3123140f8 100644 --- a/src/VMware/VMware.Autorest/exports/Remove-AzVMwarePlacementPolicy.ps1 +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwarePlacementPolicy.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Delete a placement policy in a private cloud cluster +Delete a PlacementPolicy .Description -Delete a placement policy in a private cloud cluster +Delete a PlacementPolicy .Example Remove-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 @@ -36,88 +36,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareplacementpolicy #> @@ -129,7 +126,7 @@ param( [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -138,7 +135,7 @@ param( [Alias('PlacementPolicyName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy + # Name of the placement policy. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -159,6 +156,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/Remove-AzVMwarePrivateCloud.ps1 b/src/VMware/VMware.Autorest/exports/Remove-AzVMwarePrivateCloud.ps1 index b708cf3f447f..cdc87369b711 100644 --- a/src/VMware/VMware.Autorest/exports/Remove-AzVMwarePrivateCloud.ps1 +++ b/src/VMware/VMware.Autorest/exports/Remove-AzVMwarePrivateCloud.ps1 @@ -36,32 +36,31 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareprivatecloud #> diff --git a/src/VMware/VMware.Autorest/exports/Test-AzVMwareLocationQuotaAvailability.ps1 b/src/VMware/VMware.Autorest/exports/Test-AzVMwareLocationQuotaAvailability.ps1 index a9618e97ae0b..ea113d786f29 100644 --- a/src/VMware/VMware.Autorest/exports/Test-AzVMwareLocationQuotaAvailability.ps1 +++ b/src/VMware/VMware.Autorest/exports/Test-AzVMwareLocationQuotaAvailability.ps1 @@ -34,7 +34,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Azure region + # The name of the Azure region. ${Location}, [Parameter()] @@ -42,6 +42,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] diff --git a/src/VMware/VMware.Autorest/exports/Test-AzVMwareLocationTrialAvailability.ps1 b/src/VMware/VMware.Autorest/exports/Test-AzVMwareLocationTrialAvailability.ps1 index 268a525d772f..84a553182114 100644 --- a/src/VMware/VMware.Autorest/exports/Test-AzVMwareLocationTrialAvailability.ps1 +++ b/src/VMware/VMware.Autorest/exports/Test-AzVMwareLocationTrialAvailability.ps1 @@ -34,7 +34,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Azure region + # The name of the Azure region. ${Location}, [Parameter()] @@ -42,14 +42,45 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.Int32] + # If the SKU supports scale out/in then the capacity integer should be included. + # If scale out/in is not possible for the resource this may be omitted. + ${Capacity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # If the service has different generations of hardware, for the same SKU, then that can be captured here. + ${Family}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] # The name of the SKU. + # E.g. + # P3. + # It is typically a letter+number code ${Name}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The SKU size. + # When the name field is the combination of tier and some other value, this would be the standalone code. + ${Size}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + ${Tier}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwareAuthorization.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwareAuthorization.ps1 index 3445452c0479..c82c3ab0bc34 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwareAuthorization.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwareAuthorization.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Update an ExpressRoute Circuit Authorization in a private cloud +Update a ExpressRouteAuthorization .Description -Update an ExpressRoute Circuit Authorization in a private cloud +Update a ExpressRouteAuthorization .Example Update-AzVMwareAuthorization -Name azps_test_authorization -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group @@ -32,60 +32,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareauthorization #> @@ -98,13 +96,13 @@ param( [Alias('AuthorizationName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the ExpressRoute Circuit Authorization in the private cloud + # Name of the ExpressRoute Circuit Authorization ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -119,6 +117,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwareCloudLink.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwareCloudLink.ps1 index 78c44dd3a217..9124246b49ac 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwareCloudLink.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwareCloudLink.ps1 @@ -16,11 +16,11 @@ <# .Synopsis -Update a cloud link in a private cloud +Update a CloudLink .Description -Update a cloud link in a private cloud +Update a CloudLink .Example -Update-AzVMwareCloudLink -Name azps_test_cloudlink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -LinkedCloud "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group2/providers/Microsoft.AVS/privateClouds/azps_test_cloud2/" +Update-AzVMwareCloudLink -Name azps_test_cloudlink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Inputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -32,60 +32,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwarecloudlink #> @@ -98,13 +96,13 @@ param( [Alias('CloudLinkName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cloud link resource + # Name of the cloud link. ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -119,6 +117,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -133,12 +132,6 @@ param( # Identity Parameter ${PrivateCloudInputObject}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Identifier of the other private cloud participating in the link. - ${LinkedCloud}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwareCluster.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwareCluster.ps1 index 725751ba1567..b02269de3ac9 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwareCluster.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwareCluster.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Update a cluster in a private cloud +Update a Cluster .Description -Update a cluster in a private cloud +Update a Cluster .Example Update-AzVMwareCluster -Name azps_test_cluster -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -ClusterSize 4 .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwarecluster #> @@ -100,7 +98,7 @@ param( [Alias('ClusterName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -121,6 +119,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -148,6 +147,42 @@ param( # The hosts ${PropertiesHost}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.Int32] + # If the SKU supports scale out/in then the capacity integer should be included. + # If scale out/in is not possible for the resource this may be omitted. + ${SkuCapacity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # If the service has different generations of hardware, for the same SKU, then that can be captured here. + ${SkuFamily}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The name of the SKU. + # E.g. + # P3. + # It is typically a letter+number code + ${SkuName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The SKU size. + # When the name field is the combination of tier and some other value, this would be the standalone code. + ${SkuSize}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + ${SkuTier}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwareDatastore.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwareDatastore.ps1 index ffaa3b926a9e..17c907c63c53 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwareDatastore.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwareDatastore.ps1 @@ -16,11 +16,11 @@ <# .Synopsis -Update a datastore in a private cloud cluster +Update a Datastore .Description -Update a datastore in a private cloud cluster +Update a Datastore .Example -Update-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -NetAppVolumeId "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/azps_test_group/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1" +Update-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Inputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -32,88 +32,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwaredatastore #> @@ -125,7 +122,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -134,7 +131,7 @@ param( [Alias('DatastoreName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the datastore in the private cloud cluster + # Name of the datastore ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -155,6 +152,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityClusterExpanded', Mandatory, ValueFromPipeline)] @@ -175,31 +173,6 @@ param( # Identity Parameter ${PrivateCloudInputObject}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Name of the LUN to be used for datastore - ${DiskPoolVolumeLunName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN - ${DiskPoolVolumeMountOption}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Azure resource ID of the iSCSI target - ${DiskPoolVolumeTargetId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Azure resource ID of the NetApp volume - ${NetAppVolumeId}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwareGlobalReachConnection.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwareGlobalReachConnection.ps1 index 278687df2224..c0f2ef2d88db 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwareGlobalReachConnection.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwareGlobalReachConnection.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Update a global reach connection in a private cloud +Update a GlobalReachConnection .Description -Update a global reach connection in a private cloud +Update a GlobalReachConnection .Example Update-AzVMwareGlobalReachConnection -Name azps_test_grc -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group @@ -32,60 +32,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareglobalreachconnection #> @@ -98,13 +96,13 @@ param( [Alias('GlobalReachConnectionName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the global reach connection in the private cloud + # Name of the global reach connection ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -119,6 +117,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -133,24 +132,6 @@ param( # Identity Parameter ${PrivateCloudInputObject}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Authorization key from the peer express route used for the global reach connection - ${AuthorizationKey}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection - ${ExpressRouteId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Identifier of the ExpressRoute Circuit to peer with in the global reach connection - ${PeerExpressRouteCircuit}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwareIscsiPath.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwareIscsiPath.ps1 new file mode 100644 index 000000000000..591c1c20e4c6 --- /dev/null +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwareIscsiPath.ps1 @@ -0,0 +1,241 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Update a IscsiPath +.Description +Update a IscsiPath +.Example +Update-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site + [Id ]: Resource identity path + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. + [PrivateCloudName ]: Name of the private cloud + [PublicIPId ]: ID of the DNS zone. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. +.Link +https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareiscsipath +#> +function Update-AzVMwareIscsiPath { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # Name of the private cloud + ${PrivateCloudName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + UpdateExpanded = 'Az.VMware.private\Update-AzVMwareIscsiPath_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.VMware.private\Update-AzVMwareIscsiPath_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.VMware.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwarePlacementPolicy.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwarePlacementPolicy.ps1 index 5e9531ac08c8..f602fb3c49f1 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwarePlacementPolicy.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwarePlacementPolicy.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Update a placement policy in a private cloud cluster +Update a PlacementPolicy .Description -Update a placement policy in a private cloud cluster +Update a PlacementPolicy .Example Update-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 -State 'Enabled' .Example @@ -34,88 +34,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareplacementpolicy #> @@ -127,7 +124,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -136,7 +133,7 @@ param( [Alias('PlacementPolicyName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy + # Name of the placement policy. ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -157,6 +154,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityClusterExpanded', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwarePrivateCloud.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwarePrivateCloud.ps1 index fb2e22a32df8..73179baca5a2 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwarePrivateCloud.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwarePrivateCloud.ps1 @@ -16,13 +16,13 @@ <# .Synopsis -Update a private cloud +Update a PrivateCloud .Description -Update a private cloud +Update a PrivateCloud .Example -Update-AzVMwarePrivateCloud -Name azps_test_cloud -ResourceGroupName azps_test_group -ManagementClusterSize 4 +Update-AzVMwarePrivateCloud -Name azps_test_cloud -ResourceGroupName azps_test_group .Example -Get-AzVMwarePrivateCloud -ResourceGroupName azps_test_group -Name azps_test_cloud | Update-AzVMwarePrivateCloud -ManagementClusterSize 4 +Get-AzVMwarePrivateCloud -ResourceGroupName azps_test_group -Name azps_test_cloud | Update-AzVMwarePrivateCloud .Inputs Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity @@ -33,45 +33,32 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -IDENTITYSOURCE : vCenter Single Sign On Identity Sources - [Alias ]: The domain's NetBIOS name - [BaseGroupDn ]: The base distinguished name for groups - [BaseUserDn ]: The base distinguished name for users - [Domain ]: The domain's dns name - [Name ]: The name of the identity source - [Password ]: The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. - [PrimaryServer ]: Primary server URL - [SecondaryServer ]: Secondary server URL - [Ssl ]: Protect LDAP communication using SSL certificate (LDAPS) - [Username ]: The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group - INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareprivatecloud #> @@ -98,6 +85,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -107,80 +95,52 @@ param( ${InputObject}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Status of customer managed encryption key - ${EncryptionStatus}, - - [Parameter()] - [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String[]] - # Array of additional networks noncontiguous with networkBlock. - # Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. - # Make sure the CIDR format conforms to (A.B.C.D/X). - ${ExtendedNetworkBlock}, + [System.Nullable[System.Boolean]] + # Decides if enable a system assigned identity for the resource. + ${EnableSystemAssignedIdentity}, [Parameter()] - [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource[]] - # vCenter Single Sign On Identity Sources - ${IdentitySource}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SystemAssigned", "None")] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The type of identity used for the private cloud. - # The type 'SystemAssigned' refers to an implicitly created identity. - # The type 'None' will remove any identities from the Private Cloud. - ${IdentityType}, + [System.Int32] + # If the SKU supports scale out/in then the capacity integer should be included. + # If scale out/in is not possible for the resource this may be omitted. + ${SkuCapacity}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # Connectivity to internet is enabled or disabled - ${Internet}, + # If the service has different generations of hardware, for the same SKU, then that can be captured here. + ${SkuFamily}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # The name of the key. - ${KeyVaultPropertyKeyName}, + # The name of the SKU. + # E.g. + # P3. + # It is typically a letter+number code + ${SkuName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # The URL of the vault. - ${KeyVaultPropertyKeyVaultUrl}, + # The SKU size. + # When the name field is the combination of tier and some other value, this would be the standalone code. + ${SkuSize}, [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # The version of the key. - ${KeyVaultPropertyKeyVersion}, - - [Parameter()] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String[]] - # The hosts - ${ManagementClusterHost}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.Int32] - # The cluster size - ${ManagementClusterSize}, + # This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + ${SkuTier}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags]))] [System.Collections.Hashtable] - # Resource tags + # Resource tags. ${Tag}, [Parameter()] diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Addon.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/Addon.PowerShell.cs index 7eb1e64c95f2..cccc0390072b 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Addon.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Addon.PowerShell.cs @@ -80,6 +80,34 @@ internal Addon(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -113,6 +141,34 @@ internal Addon(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Addon.cs b/src/VMware/VMware.Autorest/generated/api/Models/Addon.cs index a1fbd7ee2a1c..30b5b39899e5 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Addon.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Addon.cs @@ -14,31 +14,36 @@ public partial class Addon : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(); - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties _property; - /// The properties of an addon resource + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonProperties()); set => this._property = value; } @@ -46,9 +51,41 @@ public partial class Addon : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public Addon() @@ -64,23 +101,23 @@ public Addon() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// An addon resource public partial interface IAddon : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource { - /// The properties of an addon resource + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, - Update = true, - Description = @"The properties of an addon resource", + Update = false, + Description = @"The resource-specific properties for this resource.", SerializedName = @"properties", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties) })] Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties Property { get; set; } @@ -88,9 +125,9 @@ public partial interface IAddon : } /// An addon resource internal partial interface IAddonInternal : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResourceInternal { - /// The properties of an addon resource + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties Property { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Addon.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/Addon.json.cs index 35d51d8e5dba..5ad223693ea0 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Addon.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Addon.json.cs @@ -65,7 +65,7 @@ internal Addon(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -99,8 +99,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - __resource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + __proxyResource?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/AddonArcProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/AddonArcProperties.cs index cb2ed488c52a..15672a674b50 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/AddonArcProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/AddonArcProperties.cs @@ -18,7 +18,7 @@ public partial class AddonArcProperties : /// private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties __addonProperties = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonProperties(); - /// The type of private cloud addon + /// Addon type [Microsoft.Azure.PowerShell.Cmdlets.VMware.Constant] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string AddonType { get => "Arc"; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonPropertiesInternal)__addonProperties).AddonType = "Arc"; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/AddonHcxProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/AddonHcxProperties.cs index 583e6be6eca4..322940d7e2c7 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/AddonHcxProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/AddonHcxProperties.cs @@ -18,7 +18,7 @@ public partial class AddonHcxProperties : /// private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties __addonProperties = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonProperties(); - /// The type of private cloud addon + /// Addon type [Microsoft.Azure.PowerShell.Cmdlets.VMware.Constant] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string AddonType { get => "HCX"; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonPropertiesInternal)__addonProperties).AddonType = "HCX"; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/DatastoreList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/AddonListResult.PowerShell.cs similarity index 73% rename from src/VMware/VMware.Autorest/generated/api/Models/DatastoreList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/AddonListResult.PowerShell.cs index 37842d11595b..e0ec40792e99 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/DatastoreList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/AddonListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A paged list of datastores - [System.ComponentModel.TypeConverter(typeof(DatastoreListTypeConverter))] - public partial class DatastoreList + /// The response of a Addon list operation. + [System.ComponentModel.TypeConverter(typeof(AddonListResultTypeConverter))] + public partial class AddonListResult { /// @@ -63,11 +63,11 @@ public partial class DatastoreList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal DatastoreList(global::System.Collections.IDictionary content) + internal AddonListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -78,21 +78,21 @@ internal DatastoreList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DatastoreTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal DatastoreList(global::System.Management.Automation.PSObject content) + internal AddonListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -103,47 +103,47 @@ internal DatastoreList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DatastoreTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new DatastoreList(content); + return new AddonListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new DatastoreList(content); + return new AddonListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -162,9 +162,9 @@ public override string ToString() return ToJsonString(); } } - /// A paged list of datastores - [System.ComponentModel.TypeConverter(typeof(DatastoreListTypeConverter))] - public partial interface IDatastoreList + /// The response of a Addon list operation. + [System.ComponentModel.TypeConverter(typeof(AddonListResultTypeConverter))] + public partial interface IAddonListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/MetricDimension.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/AddonListResult.TypeConverter.cs similarity index 89% rename from src/VMware/VMware.Autorest/generated/api/Models/MetricDimension.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/AddonListResult.TypeConverter.cs index 26c85aa7b540..780b70aec6e2 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/MetricDimension.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/AddonListResult.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class MetricDimensionTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class AddonListResultTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class MetricDimensionTypeConverter : global::System.Management.Au public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimension ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimension).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResult).IsAssignableFrom(type)) { return sourceValue; } try { - return MetricDimension.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return AddonListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimension } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return MetricDimension.DeserializeFromPSObject(sourceValue); + return AddonListResult.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return MetricDimension.DeserializeFromDictionary(sourceValue); + return AddonListResult.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/AddonList.cs b/src/VMware/VMware.Autorest/generated/api/Models/AddonListResult.cs similarity index 55% rename from src/VMware/VMware.Autorest/generated/api/Models/AddonList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/AddonListResult.cs index 59d3e49c43ed..b95621d5e7f4 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/AddonList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/AddonListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A paged list of addons - public partial class AddonList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListInternal + /// The response of a Addon list operation. + public partial class AddonListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on a page + /// The Addon items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public AddonList() + /// Creates an new instance. + public AddonListResult() { } } - /// A paged list of addons - public partial interface IAddonList : + /// The response of a Addon list operation. + public partial interface IAddonListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on a page + string NextLink { get; set; } + /// The Addon items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on a page", + Create = true, + Update = true, + Description = @"The Addon items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddon) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A paged list of addons - internal partial interface IAddonListInternal + /// The response of a Addon list operation. + internal partial interface IAddonListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on a page + /// The Addon items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/AddonList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/AddonListResult.json.cs similarity index 78% rename from src/VMware/VMware.Autorest/generated/api/Models/AddonList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/AddonListResult.json.cs index dad333419b47..6cf677ff1efb 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/AddonList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/AddonListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A paged list of addons - public partial class AddonList + /// The response of a Addon list operation. + public partial class AddonListResult { /// @@ -54,10 +54,10 @@ public partial class AddonList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal AddonList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal AddonListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -71,23 +71,25 @@ internal AddonList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonOb } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResult. /// /// a to deserialize from. - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonList. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new AddonList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new AddonListResult(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -99,22 +101,16 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/AddonProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/AddonProperties.cs index 82525c503263..49388be7b0f0 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/AddonProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/AddonProperties.cs @@ -16,7 +16,7 @@ public partial class AddonProperties : /// Backing field for property. private string _addonType; - /// The type of private cloud addon + /// Addon type [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string AddonType { get => this._addonType; set => this._addonType = value; } @@ -40,14 +40,14 @@ public AddonProperties() public partial interface IAddonProperties : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// The type of private cloud addon + /// Addon type [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The type of private cloud addon", + Description = @"Addon type", SerializedName = @"addonType", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SRM", "VR", "HCX", "Arc")] @@ -62,7 +62,7 @@ public partial interface IAddonProperties : Description = @"The state of the addon provisioning", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Building", "Deleting", "Updating")] string ProvisioningState { get; } } @@ -70,11 +70,11 @@ public partial interface IAddonProperties : internal partial interface IAddonPropertiesInternal { - /// The type of private cloud addon + /// Addon type [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SRM", "VR", "HCX", "Arc")] string AddonType { get; set; } /// The state of the addon provisioning - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/AddonProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/AddonProperties.json.cs index 1a94ec4b6b33..d790749e01b2 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/AddonProperties.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/AddonProperties.json.cs @@ -89,21 +89,21 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties switch ( json.StringProperty("addonType") ) { - case "SRM": - { - return new AddonSrmProperties(json); - } - case "VR": + case "Arc": { - return new AddonVrProperties(json); + return new AddonArcProperties(json); } case "HCX": { return new AddonHcxProperties(json); } - case "Arc": + case "SRM": { - return new AddonArcProperties(json); + return new AddonSrmProperties(json); + } + case "VR": + { + return new AddonVrProperties(json); } } return new AddonProperties(json); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/AddonSrmProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/AddonSrmProperties.cs index ae47d68bb4c5..5a971d413e69 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/AddonSrmProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/AddonSrmProperties.cs @@ -18,7 +18,7 @@ public partial class AddonSrmProperties : /// private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties __addonProperties = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonProperties(); - /// The type of private cloud addon + /// Addon type [Microsoft.Azure.PowerShell.Cmdlets.VMware.Constant] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string AddonType { get => "SRM"; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonPropertiesInternal)__addonProperties).AddonType = "SRM"; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/AddonVrProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/AddonVrProperties.cs index 2b102d2f3a0b..00fa4b2e9359 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/AddonVrProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/AddonVrProperties.cs @@ -18,7 +18,7 @@ public partial class AddonVrProperties : /// private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties __addonProperties = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonProperties(); - /// The type of private cloud addon + /// Addon type [Microsoft.Azure.PowerShell.Cmdlets.VMware.Constant] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string AddonType { get => "VR"; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonPropertiesInternal)__addonProperties).AddonType = "VR"; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/CloudLink.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/CloudLink.PowerShell.cs index 376a952b6cff..b507601e2ad6 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/CloudLink.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/CloudLink.PowerShell.cs @@ -80,6 +80,34 @@ internal CloudLink(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -92,6 +120,10 @@ internal CloudLink(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("Status")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkInternal)this).Status, global::System.Convert.ToString); @@ -121,6 +153,34 @@ internal CloudLink(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -133,6 +193,10 @@ internal CloudLink(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("Status")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkInternal)this).Status, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/CloudLink.cs b/src/VMware/VMware.Autorest/generated/api/Models/CloudLink.cs index f075c217c467..e1f79eb5051a 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/CloudLink.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/CloudLink.cs @@ -14,13 +14,15 @@ public partial class CloudLink : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(); - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } /// Identifier of the other private cloud participating in the link. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] @@ -29,29 +31,39 @@ public partial class CloudLink : /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkProperties()); set { {_property = value;} } } + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkPropertiesInternal)Property).ProvisioningState = value; } + /// Internal Acessors for Status string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkPropertiesInternal)Property).Status = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkProperties _property; - /// The properties of a cloud link. + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkProperties()); set => this._property = value; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkPropertiesInternal)Property).ProvisioningState; } + /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } @@ -60,9 +72,41 @@ public partial class CloudLink : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkPropertiesInternal)Property).Status; } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public CloudLink() @@ -78,14 +122,14 @@ public CloudLink() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// A cloud link resource public partial interface ICloudLink : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource { /// Identifier of the other private cloud participating in the link. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -93,11 +137,23 @@ public partial interface ICloudLink : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Identifier of the other private cloud participating in the link.", SerializedName = @"linkedCloud", PossibleTypes = new [] { typeof(string) })] string LinkedCloud { get; set; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; } /// The state of the cloud link. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -114,12 +170,15 @@ public partial interface ICloudLink : } /// A cloud link resource internal partial interface ICloudLinkInternal : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResourceInternal { /// Identifier of the other private cloud participating in the link. string LinkedCloud { get; set; } - /// The properties of a cloud link. + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkProperties Property { get; set; } + /// The provisioning state of the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; set; } /// The state of the cloud link. [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Active", "Building", "Deleting", "Failed", "Disconnected")] string Status { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/CloudLink.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/CloudLink.json.cs index d2cfe0264248..1b171a89b0cd 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/CloudLink.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/CloudLink.json.cs @@ -65,7 +65,7 @@ internal CloudLink(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonOb { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -99,8 +99,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - __resource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + __proxyResource?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachinesList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkListResult.PowerShell.cs similarity index 76% rename from src/VMware/VMware.Autorest/generated/api/Models/VirtualMachinesList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/CloudLinkListResult.PowerShell.cs index 12f43c9391bd..1edf548921d5 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachinesList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A list of Virtual Machines - [System.ComponentModel.TypeConverter(typeof(VirtualMachinesListTypeConverter))] - public partial class VirtualMachinesList + /// The response of a CloudLink list operation. + [System.ComponentModel.TypeConverter(typeof(CloudLinkListResultTypeConverter))] + public partial class CloudLinkListResult { /// @@ -63,61 +63,11 @@ public partial class VirtualMachinesList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesList DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new VirtualMachinesList(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new VirtualMachinesList(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal VirtualMachinesList(global::System.Collections.IDictionary content) + internal CloudLinkListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -128,21 +78,21 @@ internal VirtualMachinesList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal VirtualMachinesList(global::System.Management.Automation.PSObject content) + internal CloudLinkListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -153,18 +103,68 @@ internal VirtualMachinesList(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CloudLinkListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CloudLinkListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } } - /// A list of Virtual Machines - [System.ComponentModel.TypeConverter(typeof(VirtualMachinesListTypeConverter))] - public partial interface IVirtualMachinesList + /// The response of a CloudLink list operation. + [System.ComponentModel.TypeConverter(typeof(CloudLinkListResultTypeConverter))] + public partial interface ICloudLinkListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/MetricSpecification.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkListResult.TypeConverter.cs similarity index 88% rename from src/VMware/VMware.Autorest/generated/api/Models/MetricSpecification.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/CloudLinkListResult.TypeConverter.cs index 57eeb8811307..7caa4f430110 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/MetricSpecification.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkListResult.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class MetricSpecificationTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class CloudLinkListResultTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class MetricSpecificationTypeConverter : global::System.Managemen public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecification ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecification).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResult).IsAssignableFrom(type)) { return sourceValue; } try { - return MetricSpecification.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return CloudLinkListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificat } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return MetricSpecification.DeserializeFromPSObject(sourceValue); + return CloudLinkListResult.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return MetricSpecification.DeserializeFromDictionary(sourceValue); + return CloudLinkListResult.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkList.cs b/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkListResult.cs similarity index 54% rename from src/VMware/VMware.Autorest/generated/api/Models/CloudLinkList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/CloudLinkListResult.cs index 8d7b4d3b2ecf..ffbfdb5c4bee 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A paged list of cloud links - public partial class CloudLinkList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListInternal + /// The response of a CloudLink list operation. + public partial class CloudLinkListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on a page + /// The CloudLink items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public CloudLinkList() + /// Creates an new instance. + public CloudLinkListResult() { } } - /// A paged list of cloud links - public partial interface ICloudLinkList : + /// The response of a CloudLink list operation. + public partial interface ICloudLinkListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on a page + string NextLink { get; set; } + /// The CloudLink items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on a page", + Create = true, + Update = true, + Description = @"The CloudLink items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A paged list of cloud links - internal partial interface ICloudLinkListInternal + /// The response of a CloudLink list operation. + internal partial interface ICloudLinkListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on a page + /// The CloudLink items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkListResult.json.cs similarity index 78% rename from src/VMware/VMware.Autorest/generated/api/Models/CloudLinkList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/CloudLinkListResult.json.cs index 0300d342f831..6d7222287053 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A paged list of cloud links - public partial class CloudLinkList + /// The response of a CloudLink list operation. + public partial class CloudLinkListResult { /// @@ -54,10 +54,10 @@ public partial class CloudLinkList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal CloudLinkList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal CloudLinkListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -71,23 +71,25 @@ internal CloudLinkList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResult. /// /// a to deserialize from. - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkList. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new CloudLinkList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new CloudLinkListResult(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -99,22 +101,16 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkProperties.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkProperties.PowerShell.cs index ea75b231b6c6..6e4e574108c2 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkProperties.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkProperties.PowerShell.cs @@ -76,6 +76,10 @@ internal CloudLinkProperties(global::System.Collections.IDictionary content) return; } // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("Status")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkPropertiesInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkPropertiesInternal)this).Status, global::System.Convert.ToString); @@ -101,6 +105,10 @@ internal CloudLinkProperties(global::System.Management.Automation.PSObject conte return; } // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("Status")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkPropertiesInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkPropertiesInternal)this).Status, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkProperties.cs index 1785cccfaa9e..9e9250259c3b 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkProperties.cs @@ -20,9 +20,19 @@ public partial class CloudLinkProperties : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string LinkedCloud { get => this._linkedCloud; set => this._linkedCloud = value; } + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + /// Internal Acessors for Status string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkPropertiesInternal.Status { get => this._status; set { {_status = value;} } } + /// Backing field for property. + private string _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + /// Backing field for property. private string _status; @@ -51,6 +61,18 @@ public partial interface ICloudLinkProperties : SerializedName = @"linkedCloud", PossibleTypes = new [] { typeof(string) })] string LinkedCloud { get; set; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; } /// The state of the cloud link. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -71,6 +93,9 @@ internal partial interface ICloudLinkPropertiesInternal { /// Identifier of the other private cloud participating in the link. string LinkedCloud { get; set; } + /// The provisioning state of the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; set; } /// The state of the cloud link. [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Active", "Building", "Deleting", "Failed", "Disconnected")] string Status { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkProperties.json.cs index 00f522728c2d..d40aaaafe21d 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkProperties.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkProperties.json.cs @@ -65,6 +65,7 @@ internal CloudLinkProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.J { return; } + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)_status;} {_linkedCloud = If( json?.PropertyT("linkedCloud"), out var __jsonLinkedCloud) ? (string)__jsonLinkedCloud : (string)_linkedCloud;} AfterFromJson(json); @@ -102,6 +103,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Cluster.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/Cluster.PowerShell.cs index 3abc69ddc2b2..30e0c4d4b40d 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Cluster.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Cluster.PowerShell.cs @@ -76,13 +76,41 @@ internal Cluster(global::System.Collections.IDictionary content) return; } // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterPropertiesTypeConverter.ConvertFrom); + } if (content.Contains("Sku")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SkuTypeConverter.ConvertFrom); } - if (content.Contains("Property")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { @@ -100,6 +128,22 @@ internal Cluster(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuName, global::System.Convert.ToString); } + if (content.Contains("SkuTier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuTier, global::System.Convert.ToString); + } + if (content.Contains("SkuSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuSize, global::System.Convert.ToString); + } + if (content.Contains("SkuFamily")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuCapacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } if (content.Contains("Size")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Size = (int?) content.GetValueForProperty("Size",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Size, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); @@ -116,6 +160,10 @@ internal Cluster(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Host = (System.Collections.Generic.List) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Host, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } + if (content.Contains("VsanDatastoreName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).VsanDatastoreName = (string) content.GetValueForProperty("VsanDatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).VsanDatastoreName, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -133,13 +181,41 @@ internal Cluster(global::System.Management.Automation.PSObject content) return; } // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterPropertiesTypeConverter.ConvertFrom); + } if (content.Contains("Sku")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SkuTypeConverter.ConvertFrom); } - if (content.Contains("Property")) + if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { @@ -157,6 +233,22 @@ internal Cluster(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuName, global::System.Convert.ToString); } + if (content.Contains("SkuTier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuTier, global::System.Convert.ToString); + } + if (content.Contains("SkuSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuSize, global::System.Convert.ToString); + } + if (content.Contains("SkuFamily")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuCapacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } if (content.Contains("Size")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Size = (int?) content.GetValueForProperty("Size",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Size, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); @@ -173,6 +265,10 @@ internal Cluster(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Host = (System.Collections.Generic.List) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).Host, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } + if (content.Contains("VsanDatastoreName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).VsanDatastoreName = (string) content.GetValueForProperty("VsanDatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal)this).VsanDatastoreName, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Cluster.cs b/src/VMware/VMware.Autorest/generated/api/Models/Cluster.cs index f2dbe214af64..8542121be28f 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Cluster.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Cluster.cs @@ -14,57 +14,62 @@ public partial class Cluster : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(); /// The identity [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public int? ClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)Property).ClusterId; } + public int? ClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)Property).ClusterId; } /// The hosts [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public System.Collections.Generic.List Host { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)Property).Host; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)Property).Host = value ?? null /* arrayOf */; } + public System.Collections.Generic.List Host { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)Property).Host; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)Property).Host = value ?? null /* arrayOf */; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for ClusterId - int? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal.ClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)Property).ClusterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)Property).ClusterId = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal.ClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)Property).ClusterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)Property).ClusterId = value; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Sku Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Sku()); set { {_sku = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterProperties _property; - /// The properties of a cluster resource + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterProperties()); set => this._property = value; } /// The state of the cluster provisioning [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)Property).ProvisioningState; } + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)Property).ProvisioningState; } /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] @@ -72,22 +77,84 @@ public partial class Cluster : /// The cluster size [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public int? Size { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)Property).ClusterSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)Property).ClusterSize = value ?? default(int); } + public int? Size { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)Property).ClusterSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)Property).ClusterSize = value ?? default(int); } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku _sku; - /// The cluster SKU + /// The SKU (Stock Keeping Unit) assigned to this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Sku()); set => this._sku = value; } - /// The name of the SKU. + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Capacity = value ?? default(int); } + + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Family = value ?? null; } + + /// The name of the SKU. E.g. P3. It is typically a letter+number code [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Name = value ; } - /// Resource type. + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Size; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Size = value ?? null; } + + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Tier = value ?? null; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } + + /// Name of the vsan datastore associated with the cluster + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string VsanDatastoreName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)Property).VsanDatastoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)Property).VsanDatastoreName = value ?? null; } /// Creates an new instance. public Cluster() @@ -103,14 +170,14 @@ public Cluster() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// A cluster resource public partial interface ICluster : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource { /// The identity [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -129,7 +196,7 @@ public partial interface ICluster : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"The hosts", SerializedName = @"hosts", PossibleTypes = new [] { typeof(string) })] @@ -144,7 +211,7 @@ public partial interface ICluster : Description = @"The state of the cluster provisioning", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Deleting", "Updating")] string ProvisioningState { get; } /// The cluster size [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -152,43 +219,130 @@ public partial interface ICluster : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"The cluster size", SerializedName = @"clusterSize", PossibleTypes = new [] { typeof(int) })] int? Size { get; set; } - /// The name of the SKU. + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + string SkuFamily { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The name of the SKU.", + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string SkuTier { get; set; } + /// Name of the vsan datastore associated with the cluster + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"Name of the vsan datastore associated with the cluster", + SerializedName = @"vsanDatastoreName", + PossibleTypes = new [] { typeof(string) })] + string VsanDatastoreName { get; set; } } /// A cluster resource internal partial interface IClusterInternal : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResourceInternal { /// The identity int? ClusterId { get; set; } /// The hosts System.Collections.Generic.List Host { get; set; } - /// The properties of a cluster resource + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterProperties Property { get; set; } /// The state of the cluster provisioning - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Deleting", "Updating")] string ProvisioningState { get; set; } /// The cluster size int? Size { get; set; } - /// The cluster SKU + /// The SKU (Stock Keeping Unit) assigned to this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku Sku { get; set; } - /// The name of the SKU. + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + string SkuFamily { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string SkuTier { get; set; } + /// Name of the vsan datastore associated with the cluster + string VsanDatastoreName { get; set; } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Cluster.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/Cluster.json.cs index 1c83149945db..ebd14f33a624 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Cluster.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Cluster.json.cs @@ -65,9 +65,9 @@ internal Cluster(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObje { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(json); - {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Sku.FromJson(__jsonSku) : _sku;} + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterProperties.FromJson(__jsonProperties) : _property;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Sku.FromJson(__jsonSku) : _sku;} AfterFromJson(json); } @@ -100,9 +100,12 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - __resource?.ToJson(container, serializationMode); + __proxyResource?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletsList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ClusterListResult.PowerShell.cs similarity index 75% rename from src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletsList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ClusterListResult.PowerShell.cs index dcecd2bc14d6..e1e1db7e8549 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletsList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ClusterListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// Pageable list of scripts/cmdlets - [System.ComponentModel.TypeConverter(typeof(ScriptCmdletsListTypeConverter))] - public partial class ScriptCmdletsList + /// The response of a Cluster list operation. + [System.ComponentModel.TypeConverter(typeof(ClusterListResultTypeConverter))] + public partial class ClusterListResult { /// @@ -63,44 +63,11 @@ public partial class ScriptCmdletsList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsList DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ScriptCmdletsList(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ScriptCmdletsList(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ScriptCmdletsList(global::System.Collections.IDictionary content) + internal ClusterListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -111,21 +78,21 @@ internal ScriptCmdletsList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal ScriptCmdletsList(global::System.Management.Automation.PSObject content) + internal ClusterListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -136,15 +103,48 @@ internal ScriptCmdletsList(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ClusterListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ClusterListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. @@ -162,9 +162,9 @@ public override string ToString() return ToJsonString(); } } - /// Pageable list of scripts/cmdlets - [System.ComponentModel.TypeConverter(typeof(ScriptCmdletsListTypeConverter))] - public partial interface IScriptCmdletsList + /// The response of a Cluster list operation. + [System.ComponentModel.TypeConverter(typeof(ClusterListResultTypeConverter))] + public partial interface IClusterListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletsList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/ClusterListResult.TypeConverter.cs similarity index 89% rename from src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletsList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ClusterListResult.TypeConverter.cs index 148e0ea17161..257b5ae915ac 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletsList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ClusterListResult.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class ScriptCmdletsListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class ClusterListResultTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class ScriptCmdletsListTypeConverter : global::System.Management. public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResult).IsAssignableFrom(type)) { return sourceValue; } try { - return ScriptCmdletsList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return ClusterListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsLis } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return ScriptCmdletsList.DeserializeFromPSObject(sourceValue); + return ClusterListResult.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return ScriptCmdletsList.DeserializeFromDictionary(sourceValue); + return ClusterListResult.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ClusterList.cs b/src/VMware/VMware.Autorest/generated/api/Models/ClusterListResult.cs similarity index 55% rename from src/VMware/VMware.Autorest/generated/api/Models/ClusterList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ClusterListResult.cs index 3c27f87ac379..dba9c4cb9355 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ClusterList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ClusterListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A paged list of clusters - public partial class ClusterList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListInternal + /// The response of a Cluster list operation. + public partial class ClusterListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on a page + /// The Cluster items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public ClusterList() + /// Creates an new instance. + public ClusterListResult() { } } - /// A paged list of clusters - public partial interface IClusterList : + /// The response of a Cluster list operation. + public partial interface IClusterListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on a page + string NextLink { get; set; } + /// The Cluster items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on a page", + Create = true, + Update = true, + Description = @"The Cluster items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A paged list of clusters - internal partial interface IClusterListInternal + /// The response of a Cluster list operation. + internal partial interface IClusterListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on a page + /// The Cluster items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ClusterList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ClusterListResult.json.cs similarity index 78% rename from src/VMware/VMware.Autorest/generated/api/Models/ClusterList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ClusterListResult.json.cs index bca28fc0df18..a884e0b6a782 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ClusterList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ClusterListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A paged list of clusters - public partial class ClusterList + /// The response of a Cluster list operation. + public partial class ClusterListResult { /// @@ -54,10 +54,10 @@ public partial class ClusterList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal ClusterList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal ClusterListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -71,23 +71,25 @@ internal ClusterList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.Json } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResult. /// /// a to deserialize from. - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterList. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new ClusterList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new ClusterListResult(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -99,22 +101,16 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ClusterProperties.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ClusterProperties.PowerShell.cs index 0d2e3e60067e..bd87bd9921b5 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ClusterProperties.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ClusterProperties.PowerShell.cs @@ -78,19 +78,23 @@ internal ClusterProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ClusterSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterSize = (int?) content.GetValueForProperty("ClusterSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).ClusterSize = (int?) content.GetValueForProperty("ClusterSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).ClusterSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("ClusterId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterId = (int?) content.GetValueForProperty("ClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).ClusterId = (int?) content.GetValueForProperty("ClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).ClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Host")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).Host = (System.Collections.Generic.List) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).Host, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).Host = (System.Collections.Generic.List) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).Host, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("VsanDatastoreName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).VsanDatastoreName = (string) content.GetValueForProperty("VsanDatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).VsanDatastoreName, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } @@ -111,19 +115,23 @@ internal ClusterProperties(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("ClusterSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterSize = (int?) content.GetValueForProperty("ClusterSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).ClusterSize = (int?) content.GetValueForProperty("ClusterSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).ClusterSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("ClusterId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterId = (int?) content.GetValueForProperty("ClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).ClusterId = (int?) content.GetValueForProperty("ClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).ClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Host")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).Host = (System.Collections.Generic.List) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).Host, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).Host = (System.Collections.Generic.List) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).Host, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("VsanDatastoreName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).VsanDatastoreName = (string) content.GetValueForProperty("VsanDatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal)this).VsanDatastoreName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ClusterProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/ClusterProperties.cs index bfdee6e843aa..024bd0a2d045 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ClusterProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ClusterProperties.cs @@ -10,66 +10,133 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models /// The properties of a cluster public partial class ClusterProperties : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterProperties, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IValidates + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterProperties __commonClusterProperties = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CommonClusterProperties(); + + /// Backing field for property. + private int? _clusterId; /// The identity - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public int? ClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).ClusterId; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public int? ClusterId { get => this._clusterId; } + + /// Backing field for property. + private int? _clusterSize; /// The cluster size - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public int? ClusterSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).ClusterSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).ClusterSize = value ?? default(int); } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public int? ClusterSize { get => this._clusterSize; set => this._clusterSize = value; } + + /// Backing field for property. + private System.Collections.Generic.List _host; /// The hosts - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public System.Collections.Generic.List Host { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).Host; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).Host = value ?? null /* arrayOf */; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public System.Collections.Generic.List Host { get => this._host; set => this._host = value; } /// Internal Acessors for ClusterId - int? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal.ClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).ClusterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).ClusterId = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal.ClusterId { get => this._clusterId; set { {_clusterId = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Backing field for property. + private string _provisioningState; /// The state of the cluster provisioning - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).ProvisioningState; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private string _vsanDatastoreName; + + /// Name of the vsan datastore associated with the cluster + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string VsanDatastoreName { get => this._vsanDatastoreName; set => this._vsanDatastoreName = value; } /// Creates an new instance. public ClusterProperties() { } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__commonClusterProperties), __commonClusterProperties); - await eventListener.AssertObjectIsValid(nameof(__commonClusterProperties), __commonClusterProperties); - } } /// The properties of a cluster public partial interface IClusterProperties : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterProperties + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { + /// The identity + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The identity", + SerializedName = @"clusterId", + PossibleTypes = new [] { typeof(int) })] + int? ClusterId { get; } + /// The cluster size + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The cluster size", + SerializedName = @"clusterSize", + PossibleTypes = new [] { typeof(int) })] + int? ClusterSize { get; set; } + /// The hosts + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The hosts", + SerializedName = @"hosts", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List Host { get; set; } + /// The state of the cluster provisioning + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The state of the cluster provisioning", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Deleting", "Updating")] + string ProvisioningState { get; } + /// Name of the vsan datastore associated with the cluster + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Name of the vsan datastore associated with the cluster", + SerializedName = @"vsanDatastoreName", + PossibleTypes = new [] { typeof(string) })] + string VsanDatastoreName { get; set; } } /// The properties of a cluster - internal partial interface IClusterPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal + internal partial interface IClusterPropertiesInternal + { + /// The identity + int? ClusterId { get; set; } + /// The cluster size + int? ClusterSize { get; set; } + /// The hosts + System.Collections.Generic.List Host { get; set; } + /// The state of the cluster provisioning + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Deleting", "Updating")] + string ProvisioningState { get; set; } + /// Name of the vsan datastore associated with the cluster + string VsanDatastoreName { get; set; } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ClusterProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ClusterProperties.json.cs index 6bd56e179c7c..4040f75157d2 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ClusterProperties.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ClusterProperties.json.cs @@ -65,7 +65,11 @@ internal ClusterProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Jso { return; } - __commonClusterProperties = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CommonClusterProperties(json); + {_clusterSize = If( json?.PropertyT("clusterSize"), out var __jsonClusterSize) ? (int?)__jsonClusterSize : _clusterSize;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} + {_clusterId = If( json?.PropertyT("clusterId"), out var __jsonClusterId) ? (int?)__jsonClusterId : _clusterId;} + {_host = If( json?.PropertyT("hosts"), out var __jsonHosts) ? If( __jsonHosts as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _host;} + {_vsanDatastoreName = If( json?.PropertyT("vsanDatastoreName"), out var __jsonVsanDatastoreName) ? (string)__jsonVsanDatastoreName : (string)_vsanDatastoreName;} AfterFromJson(json); } @@ -100,7 +104,25 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - __commonClusterProperties?.ToJson(container, serializationMode); + AddIf( null != this._clusterSize ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber((int)this._clusterSize) : null, "clusterSize" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != this._clusterId ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber((int)this._clusterId) : null, "clusterId" ,container.Add ); + } + if (null != this._host) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._host ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("hosts",__w); + } + AddIf( null != (((object)this._vsanDatastoreName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._vsanDatastoreName.ToString()) : null, "vsanDatastoreName" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ClusterUpdate.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ClusterUpdate.PowerShell.cs index 2aa3472c5679..60b7918585a2 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ClusterUpdate.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ClusterUpdate.PowerShell.cs @@ -76,10 +76,34 @@ internal ClusterUpdate(global::System.Collections.IDictionary content) return; } // actually deserialize + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SkuTypeConverter.ConvertFrom); + } if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterUpdatePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("SkuTier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuTier, global::System.Convert.ToString); + } + if (content.Contains("SkuSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuSize, global::System.Convert.ToString); + } + if (content.Contains("SkuFamily")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuCapacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } if (content.Contains("ClusterSize")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).ClusterSize = (int?) content.GetValueForProperty("ClusterSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).ClusterSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); @@ -105,10 +129,34 @@ internal ClusterUpdate(global::System.Management.Automation.PSObject content) return; } // actually deserialize + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SkuTypeConverter.ConvertFrom); + } if (content.Contains("Property")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterUpdatePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("SkuTier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuTier, global::System.Convert.ToString); + } + if (content.Contains("SkuSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuSize, global::System.Convert.ToString); + } + if (content.Contains("SkuFamily")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuCapacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } if (content.Contains("ClusterSize")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).ClusterSize = (int?) content.GetValueForProperty("ClusterSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal)this).ClusterSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ClusterUpdate.cs b/src/VMware/VMware.Autorest/generated/api/Models/ClusterUpdate.cs index ed2c2a534116..4a25ad84414a 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ClusterUpdate.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ClusterUpdate.cs @@ -24,6 +24,9 @@ public partial class ClusterUpdate : /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterUpdateProperties()); set { {_property = value;} } } + /// Internal Acessors for Sku + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Sku()); set { {_sku = value;} } } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateProperties _property; @@ -31,6 +34,43 @@ public partial class ClusterUpdate : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterUpdateProperties()); set => this._property = value; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku _sku; + + /// The SKU (Stock Keeping Unit) assigned to this resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Sku()); set => this._sku = value; } + + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Capacity = value ?? default(int); } + + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Family = value ?? null; } + + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Name = value ?? null; } + + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Size; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Size = value ?? null; } + + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Tier = value ?? null; } + /// Creates an new instance. public ClusterUpdate() { @@ -63,6 +103,72 @@ public partial interface IClusterUpdate : SerializedName = @"hosts", PossibleTypes = new [] { typeof(string) })] System.Collections.Generic.List Host { get; set; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + string SkuFamily { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string SkuTier { get; set; } } /// An update of a cluster resource @@ -75,6 +181,29 @@ internal partial interface IClusterUpdateInternal System.Collections.Generic.List Host { get; set; } /// The properties of a cluster resource that may be updated Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdateProperties Property { get; set; } + /// The SKU (Stock Keeping Unit) assigned to this resource. + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku Sku { get; set; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + string SkuFamily { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code + string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string SkuTier { get; set; } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ClusterUpdate.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ClusterUpdate.json.cs index 036828fd03e7..16d62df82ba7 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ClusterUpdate.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ClusterUpdate.json.cs @@ -65,6 +65,7 @@ internal ClusterUpdate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.Js { return; } + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Sku.FromJson(__jsonSku) : _sku;} {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterUpdateProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -98,6 +99,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } + AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/VMware/VMware.Autorest/generated/api/Models/CommonClusterProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/CommonClusterProperties.cs deleted file mode 100644 index e42fe0f383fa..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/CommonClusterProperties.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - - /// The common properties of a cluster - public partial class CommonClusterProperties : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterProperties, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal - { - - /// Backing field for property. - private int? _clusterId; - - /// The identity - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public int? ClusterId { get => this._clusterId; } - - /// Backing field for property. - private int? _clusterSize; - - /// The cluster size - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public int? ClusterSize { get => this._clusterSize; set => this._clusterSize = value; } - - /// Backing field for property. - private System.Collections.Generic.List _host; - - /// The hosts - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Host { get => this._host; set => this._host = value; } - - /// Internal Acessors for ClusterId - int? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal.ClusterId { get => this._clusterId; set { {_clusterId = value;} } } - - /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Backing field for property. - private string _provisioningState; - - /// The state of the cluster provisioning - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string ProvisioningState { get => this._provisioningState; } - - /// Creates an new instance. - public CommonClusterProperties() - { - - } - } - /// The common properties of a cluster - public partial interface ICommonClusterProperties : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable - { - /// The identity - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The identity", - SerializedName = @"clusterId", - PossibleTypes = new [] { typeof(int) })] - int? ClusterId { get; } - /// The cluster size - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The cluster size", - SerializedName = @"clusterSize", - PossibleTypes = new [] { typeof(int) })] - int? ClusterSize { get; set; } - /// The hosts - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The hosts", - SerializedName = @"hosts", - PossibleTypes = new [] { typeof(string) })] - System.Collections.Generic.List Host { get; set; } - /// The state of the cluster provisioning - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The state of the cluster provisioning", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Deleting", "Updating", "Canceled")] - string ProvisioningState { get; } - - } - /// The common properties of a cluster - internal partial interface ICommonClusterPropertiesInternal - - { - /// The identity - int? ClusterId { get; set; } - /// The cluster size - int? ClusterSize { get; set; } - /// The hosts - System.Collections.Generic.List Host { get; set; } - /// The state of the cluster provisioning - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Deleting", "Updating", "Canceled")] - string ProvisioningState { get; set; } - - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/CommonClusterProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/CommonClusterProperties.json.cs deleted file mode 100644 index 869a6f8bc91e..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/CommonClusterProperties.json.cs +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - - /// The common properties of a cluster - public partial class CommonClusterProperties - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal CommonClusterProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_clusterSize = If( json?.PropertyT("clusterSize"), out var __jsonClusterSize) ? (int?)__jsonClusterSize : _clusterSize;} - {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} - {_clusterId = If( json?.PropertyT("clusterId"), out var __jsonClusterId) ? (int?)__jsonClusterId : _clusterId;} - {_host = If( json?.PropertyT("hosts"), out var __jsonHosts) ? If( __jsonHosts as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _host;} - AfterFromJson(json); - } - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterProperties. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterProperties. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new CommonClusterProperties(json) : null; - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != this._clusterSize ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber((int)this._clusterSize) : null, "clusterSize" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != this._clusterId ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber((int)this._clusterId) : null, "clusterId" ,container.Add ); - } - if (null != this._host) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._host ) - { - AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); - } - container.Add("hosts",__w); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Datastore.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/Datastore.PowerShell.cs index 6194bd96affd..99b65e39399b 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Datastore.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Datastore.PowerShell.cs @@ -80,6 +80,34 @@ internal Datastore(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DatastorePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -100,6 +128,10 @@ internal Datastore(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).DiskPoolVolume = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDiskPoolVolume) content.GetValueForProperty("DiskPoolVolume",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).DiskPoolVolume, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DiskPoolVolumeTypeConverter.ConvertFrom); } + if (content.Contains("ElasticSanVolume")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).ElasticSanVolume = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume) content.GetValueForProperty("ElasticSanVolume",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).ElasticSanVolume, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ElasticSanVolumeTypeConverter.ConvertFrom); + } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).ProvisioningState, global::System.Convert.ToString); @@ -124,6 +156,10 @@ internal Datastore(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).DiskPoolVolumePath = (string) content.GetValueForProperty("DiskPoolVolumePath",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).DiskPoolVolumePath, global::System.Convert.ToString); } + if (content.Contains("ElasticSanVolumeTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).ElasticSanVolumeTargetId = (string) content.GetValueForProperty("ElasticSanVolumeTargetId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).ElasticSanVolumeTargetId, global::System.Convert.ToString); + } if (content.Contains("DiskPoolVolumeMountOption")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).DiskPoolVolumeMountOption = (string) content.GetValueForProperty("DiskPoolVolumeMountOption",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).DiskPoolVolumeMountOption, global::System.Convert.ToString); @@ -149,6 +185,34 @@ internal Datastore(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DatastorePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -169,6 +233,10 @@ internal Datastore(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).DiskPoolVolume = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDiskPoolVolume) content.GetValueForProperty("DiskPoolVolume",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).DiskPoolVolume, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DiskPoolVolumeTypeConverter.ConvertFrom); } + if (content.Contains("ElasticSanVolume")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).ElasticSanVolume = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume) content.GetValueForProperty("ElasticSanVolume",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).ElasticSanVolume, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ElasticSanVolumeTypeConverter.ConvertFrom); + } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).ProvisioningState, global::System.Convert.ToString); @@ -193,6 +261,10 @@ internal Datastore(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).DiskPoolVolumePath = (string) content.GetValueForProperty("DiskPoolVolumePath",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).DiskPoolVolumePath, global::System.Convert.ToString); } + if (content.Contains("ElasticSanVolumeTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).ElasticSanVolumeTargetId = (string) content.GetValueForProperty("ElasticSanVolumeTargetId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).ElasticSanVolumeTargetId, global::System.Convert.ToString); + } if (content.Contains("DiskPoolVolumeMountOption")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).DiskPoolVolumeMountOption = (string) content.GetValueForProperty("DiskPoolVolumeMountOption",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal)this).DiskPoolVolumeMountOption, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Datastore.cs b/src/VMware/VMware.Autorest/generated/api/Models/Datastore.cs index 5b289ccd3136..3aca7a8a770f 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Datastore.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Datastore.cs @@ -14,9 +14,9 @@ public partial class Datastore : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(); /// Name of the LUN to be used for datastore [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] @@ -24,7 +24,8 @@ public partial class Datastore : public string DiskPoolVolumeLunName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).DiskPoolVolumeLunName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).DiskPoolVolumeLunName = value ?? null; } /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + /// Mode that describes whether the LUN has to be mounted as a datastore or + /// attached as a LUN /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.DoNotFormat] @@ -40,10 +41,17 @@ public partial class Datastore : [Microsoft.Azure.PowerShell.Cmdlets.VMware.DoNotFormat] public string DiskPoolVolumeTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).DiskPoolVolumeTargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).DiskPoolVolumeTargetId = value ?? null; } - /// Resource ID. + /// Azure resource ID of the Elastic SAN Volume + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.DoNotFormat] + public string ElasticSanVolumeTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).ElasticSanVolumeTargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).ElasticSanVolumeTargetId = value ?? null; } + + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.DoNotFormat] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for DiskPoolVolume Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDiskPoolVolume Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal.DiskPoolVolume { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).DiskPoolVolume; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).DiskPoolVolume = value; } @@ -51,6 +59,9 @@ public partial class Datastore : /// Internal Acessors for DiskPoolVolumePath string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal.DiskPoolVolumePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).DiskPoolVolumePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).DiskPoolVolumePath = value; } + /// Internal Acessors for ElasticSanVolume + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal.ElasticSanVolume { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).ElasticSanVolume; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).ElasticSanVolume = value; } + /// Internal Acessors for NetAppVolume Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.INetAppVolume Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal.NetAppVolume { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).NetAppVolume; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).NetAppVolume = value; } @@ -64,18 +75,21 @@ public partial class Datastore : string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).Status = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.FormatTable(Index = 0)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } /// Azure resource ID of the NetApp volume [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] @@ -85,7 +99,7 @@ public partial class Datastore : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreProperties _property; - /// The properties of a datastore resource + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.DoNotFormat] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DatastoreProperties()); set => this._property = value; } @@ -105,10 +119,49 @@ public partial class Datastore : [Microsoft.Azure.PowerShell.Cmdlets.VMware.FormatTable(Index = 1)] public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)Property).Status; } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.DoNotFormat] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.DoNotFormat] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.DoNotFormat] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.DoNotFormat] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.DoNotFormat] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.DoNotFormat] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.DoNotFormat] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.DoNotFormat] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public Datastore() @@ -124,14 +177,14 @@ public Datastore() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// A datastore resource public partial interface IDatastore : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource { /// Name of the LUN to be used for datastore [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -139,21 +192,23 @@ public partial interface IDatastore : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Name of the LUN to be used for datastore", SerializedName = @"lunName", PossibleTypes = new [] { typeof(string) })] string DiskPoolVolumeLunName { get; set; } /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + /// Mode that describes whether the LUN has to be mounted as a datastore or + /// attached as a LUN /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, - Update = true, - Description = @"Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN", + Update = false, + Description = @"Mode that describes whether the LUN has to be mounted as a datastore or + attached as a LUN", SerializedName = @"mountOption", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] @@ -175,18 +230,29 @@ public partial interface IDatastore : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Azure resource ID of the iSCSI target", SerializedName = @"targetId", PossibleTypes = new [] { typeof(string) })] string DiskPoolVolumeTargetId { get; set; } + /// Azure resource ID of the Elastic SAN Volume + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"Azure resource ID of the Elastic SAN Volume", + SerializedName = @"targetId", + PossibleTypes = new [] { typeof(string) })] + string ElasticSanVolumeTargetId { get; set; } /// Azure resource ID of the NetApp volume [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Azure resource ID of the NetApp volume", SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] @@ -201,7 +267,7 @@ public partial interface IDatastore : Description = @"The state of the datastore provisioning", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Pending", "Creating", "Updating", "Deleting", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Pending", "Creating", "Updating", "Deleting")] string ProvisioningState { get; } /// The operational status of the datastore [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -219,14 +285,15 @@ public partial interface IDatastore : } /// A datastore resource internal partial interface IDatastoreInternal : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResourceInternal { /// An iSCSI volume Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDiskPoolVolume DiskPoolVolume { get; set; } /// Name of the LUN to be used for datastore string DiskPoolVolumeLunName { get; set; } /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + /// Mode that describes whether the LUN has to be mounted as a datastore or + /// attached as a LUN /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] string DiskPoolVolumeMountOption { get; set; } @@ -234,14 +301,18 @@ internal partial interface IDatastoreInternal : string DiskPoolVolumePath { get; set; } /// Azure resource ID of the iSCSI target string DiskPoolVolumeTargetId { get; set; } + /// An Elastic SAN volume + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume ElasticSanVolume { get; set; } + /// Azure resource ID of the Elastic SAN Volume + string ElasticSanVolumeTargetId { get; set; } /// An Azure NetApp Files volume Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.INetAppVolume NetAppVolume { get; set; } /// Azure resource ID of the NetApp volume string NetAppVolumeId { get; set; } - /// The properties of a datastore resource + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreProperties Property { get; set; } /// The state of the datastore provisioning - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Pending", "Creating", "Updating", "Deleting", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Pending", "Creating", "Updating", "Deleting")] string ProvisioningState { get; set; } /// The operational status of the datastore [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Unknown", "Accessible", "Inaccessible", "Attached", "Detached", "LostCommunication", "DeadOrError")] diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Datastore.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/Datastore.json.cs index 3e20d7e04943..a7d86eba3ddf 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Datastore.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Datastore.json.cs @@ -65,7 +65,7 @@ internal Datastore(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonOb { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DatastoreProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -99,8 +99,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - __resource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + __proxyResource?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/DatastoreListResult.PowerShell.cs similarity index 76% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/DatastoreListResult.PowerShell.cs index dbe247b150b6..92625291a5c3 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/DatastoreListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A list of workload networks - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkListTypeConverter))] - public partial class WorkloadNetworkList + /// The response of a Datastore list operation. + [System.ComponentModel.TypeConverter(typeof(DatastoreListResultTypeConverter))] + public partial class DatastoreListResult { /// @@ -63,61 +63,11 @@ public partial class WorkloadNetworkList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkList DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new WorkloadNetworkList(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new WorkloadNetworkList(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal WorkloadNetworkList(global::System.Collections.IDictionary content) + internal DatastoreListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -128,21 +78,21 @@ internal WorkloadNetworkList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DatastoreTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal WorkloadNetworkList(global::System.Management.Automation.PSObject content) + internal DatastoreListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -153,18 +103,68 @@ internal WorkloadNetworkList(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DatastoreTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DatastoreListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DatastoreListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } } - /// A list of workload networks - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkListTypeConverter))] - public partial interface IWorkloadNetworkList + /// The response of a Datastore list operation. + [System.ComponentModel.TypeConverter(typeof(DatastoreListResultTypeConverter))] + public partial interface IDatastoreListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/DatastoreListResult.TypeConverter.cs similarity index 88% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/DatastoreListResult.TypeConverter.cs index f9950d07aea8..c30261bfe384 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/DatastoreListResult.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class WorkloadNetworkListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class DatastoreListResultTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class WorkloadNetworkListTypeConverter : global::System.Managemen public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResult).IsAssignableFrom(type)) { return sourceValue; } try { - return WorkloadNetworkList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return DatastoreListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkL } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return WorkloadNetworkList.DeserializeFromPSObject(sourceValue); + return DatastoreListResult.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return WorkloadNetworkList.DeserializeFromDictionary(sourceValue); + return DatastoreListResult.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/DatastoreList.cs b/src/VMware/VMware.Autorest/generated/api/Models/DatastoreListResult.cs similarity index 54% rename from src/VMware/VMware.Autorest/generated/api/Models/DatastoreList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/DatastoreListResult.cs index 1f1e288bb472..106db9f16dec 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/DatastoreList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/DatastoreListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A paged list of datastores - public partial class DatastoreList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListInternal + /// The response of a Datastore list operation. + public partial class DatastoreListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on a page + /// The Datastore items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public DatastoreList() + /// Creates an new instance. + public DatastoreListResult() { } } - /// A paged list of datastores - public partial interface IDatastoreList : + /// The response of a Datastore list operation. + public partial interface IDatastoreListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on a page + string NextLink { get; set; } + /// The Datastore items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on a page", + Create = true, + Update = true, + Description = @"The Datastore items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A paged list of datastores - internal partial interface IDatastoreListInternal + /// The response of a Datastore list operation. + internal partial interface IDatastoreListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on a page + /// The Datastore items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/DatastoreList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/DatastoreListResult.json.cs similarity index 78% rename from src/VMware/VMware.Autorest/generated/api/Models/DatastoreList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/DatastoreListResult.json.cs index 11e5ca6cb923..e9e788c8d196 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/DatastoreList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/DatastoreListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A paged list of datastores - public partial class DatastoreList + /// The response of a Datastore list operation. + public partial class DatastoreListResult { /// @@ -54,10 +54,10 @@ public partial class DatastoreList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal DatastoreList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal DatastoreListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -71,23 +71,25 @@ internal DatastoreList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResult. /// /// a to deserialize from. - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreList. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new DatastoreList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new DatastoreListResult(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -99,22 +101,16 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/DatastoreProperties.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/DatastoreProperties.PowerShell.cs index 7f564d6bf89d..7dd7d7c95c73 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/DatastoreProperties.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/DatastoreProperties.PowerShell.cs @@ -84,6 +84,10 @@ internal DatastoreProperties(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).DiskPoolVolume = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDiskPoolVolume) content.GetValueForProperty("DiskPoolVolume",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).DiskPoolVolume, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DiskPoolVolumeTypeConverter.ConvertFrom); } + if (content.Contains("ElasticSanVolume")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).ElasticSanVolume = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume) content.GetValueForProperty("ElasticSanVolume",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).ElasticSanVolume, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ElasticSanVolumeTypeConverter.ConvertFrom); + } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); @@ -108,6 +112,10 @@ internal DatastoreProperties(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).DiskPoolVolumePath = (string) content.GetValueForProperty("DiskPoolVolumePath",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).DiskPoolVolumePath, global::System.Convert.ToString); } + if (content.Contains("ElasticSanVolumeTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).ElasticSanVolumeTargetId = (string) content.GetValueForProperty("ElasticSanVolumeTargetId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).ElasticSanVolumeTargetId, global::System.Convert.ToString); + } if (content.Contains("DiskPoolVolumeMountOption")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).DiskPoolVolumeMountOption = (string) content.GetValueForProperty("DiskPoolVolumeMountOption",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).DiskPoolVolumeMountOption, global::System.Convert.ToString); @@ -137,6 +145,10 @@ internal DatastoreProperties(global::System.Management.Automation.PSObject conte { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).DiskPoolVolume = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDiskPoolVolume) content.GetValueForProperty("DiskPoolVolume",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).DiskPoolVolume, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DiskPoolVolumeTypeConverter.ConvertFrom); } + if (content.Contains("ElasticSanVolume")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).ElasticSanVolume = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume) content.GetValueForProperty("ElasticSanVolume",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).ElasticSanVolume, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ElasticSanVolumeTypeConverter.ConvertFrom); + } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); @@ -161,6 +173,10 @@ internal DatastoreProperties(global::System.Management.Automation.PSObject conte { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).DiskPoolVolumePath = (string) content.GetValueForProperty("DiskPoolVolumePath",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).DiskPoolVolumePath, global::System.Convert.ToString); } + if (content.Contains("ElasticSanVolumeTargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).ElasticSanVolumeTargetId = (string) content.GetValueForProperty("ElasticSanVolumeTargetId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).ElasticSanVolumeTargetId, global::System.Convert.ToString); + } if (content.Contains("DiskPoolVolumeMountOption")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).DiskPoolVolumeMountOption = (string) content.GetValueForProperty("DiskPoolVolumeMountOption",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal)this).DiskPoolVolumeMountOption, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/DatastoreProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/DatastoreProperties.cs index 7129e446f1b1..e4bb91e58562 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/DatastoreProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/DatastoreProperties.cs @@ -25,7 +25,8 @@ public partial class DatastoreProperties : public string DiskPoolVolumeLunName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDiskPoolVolumeInternal)DiskPoolVolume).LunName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDiskPoolVolumeInternal)DiskPoolVolume).LunName = value ?? null; } /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + /// Mode that describes whether the LUN has to be mounted as a datastore or + /// attached as a LUN /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string DiskPoolVolumeMountOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDiskPoolVolumeInternal)DiskPoolVolume).MountOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDiskPoolVolumeInternal)DiskPoolVolume).MountOption = value ?? null; } @@ -38,12 +39,26 @@ public partial class DatastoreProperties : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string DiskPoolVolumeTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDiskPoolVolumeInternal)DiskPoolVolume).TargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDiskPoolVolumeInternal)DiskPoolVolume).TargetId = value ?? null; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume _elasticSanVolume; + + /// An Elastic SAN volume + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume ElasticSanVolume { get => (this._elasticSanVolume = this._elasticSanVolume ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ElasticSanVolume()); set => this._elasticSanVolume = value; } + + /// Azure resource ID of the Elastic SAN Volume + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ElasticSanVolumeTargetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolumeInternal)ElasticSanVolume).TargetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolumeInternal)ElasticSanVolume).TargetId = value ?? null; } + /// Internal Acessors for DiskPoolVolume Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDiskPoolVolume Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal.DiskPoolVolume { get => (this._diskPoolVolume = this._diskPoolVolume ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DiskPoolVolume()); set { {_diskPoolVolume = value;} } } /// Internal Acessors for DiskPoolVolumePath string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal.DiskPoolVolumePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDiskPoolVolumeInternal)DiskPoolVolume).Path; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDiskPoolVolumeInternal)DiskPoolVolume).Path = value; } + /// Internal Acessors for ElasticSanVolume + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal.ElasticSanVolume { get => (this._elasticSanVolume = this._elasticSanVolume ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ElasticSanVolume()); set { {_elasticSanVolume = value;} } } + /// Internal Acessors for NetAppVolume Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.INetAppVolume Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastorePropertiesInternal.NetAppVolume { get => (this._netAppVolume = this._netAppVolume ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.NetAppVolume()); set { {_netAppVolume = value;} } } @@ -100,7 +115,8 @@ public partial interface IDatastoreProperties : PossibleTypes = new [] { typeof(string) })] string DiskPoolVolumeLunName { get; set; } /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + /// Mode that describes whether the LUN has to be mounted as a datastore or + /// attached as a LUN /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -108,7 +124,8 @@ public partial interface IDatastoreProperties : Read = true, Create = true, Update = true, - Description = @"Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN", + Description = @"Mode that describes whether the LUN has to be mounted as a datastore or + attached as a LUN", SerializedName = @"mountOption", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] @@ -135,6 +152,17 @@ public partial interface IDatastoreProperties : SerializedName = @"targetId", PossibleTypes = new [] { typeof(string) })] string DiskPoolVolumeTargetId { get; set; } + /// Azure resource ID of the Elastic SAN Volume + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Azure resource ID of the Elastic SAN Volume", + SerializedName = @"targetId", + PossibleTypes = new [] { typeof(string) })] + string ElasticSanVolumeTargetId { get; set; } /// Azure resource ID of the NetApp volume [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -156,7 +184,7 @@ public partial interface IDatastoreProperties : Description = @"The state of the datastore provisioning", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Pending", "Creating", "Updating", "Deleting", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Pending", "Creating", "Updating", "Deleting")] string ProvisioningState { get; } /// The operational status of the datastore [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -181,7 +209,8 @@ internal partial interface IDatastorePropertiesInternal /// Name of the LUN to be used for datastore string DiskPoolVolumeLunName { get; set; } /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + /// Mode that describes whether the LUN has to be mounted as a datastore or + /// attached as a LUN /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] string DiskPoolVolumeMountOption { get; set; } @@ -189,12 +218,16 @@ internal partial interface IDatastorePropertiesInternal string DiskPoolVolumePath { get; set; } /// Azure resource ID of the iSCSI target string DiskPoolVolumeTargetId { get; set; } + /// An Elastic SAN volume + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume ElasticSanVolume { get; set; } + /// Azure resource ID of the Elastic SAN Volume + string ElasticSanVolumeTargetId { get; set; } /// An Azure NetApp Files volume Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.INetAppVolume NetAppVolume { get; set; } /// Azure resource ID of the NetApp volume string NetAppVolumeId { get; set; } /// The state of the datastore provisioning - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Pending", "Creating", "Updating", "Deleting", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Pending", "Creating", "Updating", "Deleting")] string ProvisioningState { get; set; } /// The operational status of the datastore [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Unknown", "Accessible", "Inaccessible", "Attached", "Detached", "LostCommunication", "DeadOrError")] diff --git a/src/VMware/VMware.Autorest/generated/api/Models/DatastoreProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/DatastoreProperties.json.cs index d8f1ae1e727a..4d9559e2aa05 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/DatastoreProperties.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/DatastoreProperties.json.cs @@ -67,6 +67,7 @@ internal DatastoreProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.J } {_netAppVolume = If( json?.PropertyT("netAppVolume"), out var __jsonNetAppVolume) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.NetAppVolume.FromJson(__jsonNetAppVolume) : _netAppVolume;} {_diskPoolVolume = If( json?.PropertyT("diskPoolVolume"), out var __jsonDiskPoolVolume) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DiskPoolVolume.FromJson(__jsonDiskPoolVolume) : _diskPoolVolume;} + {_elasticSanVolume = If( json?.PropertyT("elasticSanVolume"), out var __jsonElasticSanVolume) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ElasticSanVolume.FromJson(__jsonElasticSanVolume) : _elasticSanVolume;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)_status;} AfterFromJson(json); @@ -105,6 +106,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi } AddIf( null != this._netAppVolume ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._netAppVolume.ToJson(null,serializationMode) : null, "netAppVolume" ,container.Add ); AddIf( null != this._diskPoolVolume ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._diskPoolVolume.ToJson(null,serializationMode) : null, "diskPoolVolume" ,container.Add ); + AddIf( null != this._elasticSanVolume ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._elasticSanVolume.ToJson(null,serializationMode) : null, "elasticSanVolume" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/DiskPoolVolume.cs b/src/VMware/VMware.Autorest/generated/api/Models/DiskPoolVolume.cs index 70cec65fe793..e993c63f24b0 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/DiskPoolVolume.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/DiskPoolVolume.cs @@ -27,7 +27,8 @@ public partial class DiskPoolVolume : private string _mountOption; /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + /// Mode that describes whether the LUN has to be mounted as a datastore or + /// attached as a LUN /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string MountOption { get => this._mountOption; set => this._mountOption = value; } @@ -68,7 +69,8 @@ public partial interface IDiskPoolVolume : PossibleTypes = new [] { typeof(string) })] string LunName { get; set; } /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + /// Mode that describes whether the LUN has to be mounted as a datastore or + /// attached as a LUN /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -76,7 +78,8 @@ public partial interface IDiskPoolVolume : Read = true, Create = true, Update = true, - Description = @"Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN", + Description = @"Mode that describes whether the LUN has to be mounted as a datastore or + attached as a LUN", SerializedName = @"mountOption", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] @@ -112,7 +115,8 @@ internal partial interface IDiskPoolVolumeInternal /// Name of the LUN to be used for datastore string LunName { get; set; } /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + /// Mode that describes whether the LUN has to be mounted as a datastore or + /// attached as a LUN /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] string MountOption { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ElasticSanVolume.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ElasticSanVolume.PowerShell.cs new file mode 100644 index 000000000000..4538c947104e --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/ElasticSanVolume.PowerShell.cs @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// An Elastic SAN volume from Microsoft.ElasticSan provider + [System.ComponentModel.TypeConverter(typeof(ElasticSanVolumeTypeConverter))] + public partial class ElasticSanVolume + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ElasticSanVolume(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ElasticSanVolume(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ElasticSanVolume(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolumeInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolumeInternal)this).TargetId, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ElasticSanVolume(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("TargetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolumeInternal)this).TargetId = (string) content.GetValueForProperty("TargetId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolumeInternal)this).TargetId, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// An Elastic SAN volume from Microsoft.ElasticSan provider + [System.ComponentModel.TypeConverter(typeof(ElasticSanVolumeTypeConverter))] + public partial interface IElasticSanVolume + + { + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/ElasticSanVolume.TypeConverter.cs similarity index 89% rename from src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ElasticSanVolume.TypeConverter.cs index fed5e6d320e8..5374325aa7aa 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ElasticSanVolume.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class PrivateCloudListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class ElasticSanVolumeTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class PrivateCloudListTypeConverter : global::System.Management.A public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume).IsAssignableFrom(type)) { return sourceValue; } try { - return PrivateCloudList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return ElasticSanVolume.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudList } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return PrivateCloudList.DeserializeFromPSObject(sourceValue); + return ElasticSanVolume.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return PrivateCloudList.DeserializeFromDictionary(sourceValue); + return ElasticSanVolume.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ElasticSanVolume.cs b/src/VMware/VMware.Autorest/generated/api/Models/ElasticSanVolume.cs new file mode 100644 index 000000000000..15ad671619e1 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/ElasticSanVolume.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// An Elastic SAN volume from Microsoft.ElasticSan provider + public partial class ElasticSanVolume : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolumeInternal + { + + /// Backing field for property. + private string _targetId; + + /// Azure resource ID of the Elastic SAN Volume + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string TargetId { get => this._targetId; set => this._targetId = value; } + + /// Creates an new instance. + public ElasticSanVolume() + { + + } + } + /// An Elastic SAN volume from Microsoft.ElasticSan provider + public partial interface IElasticSanVolume : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable + { + /// Azure resource ID of the Elastic SAN Volume + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Azure resource ID of the Elastic SAN Volume", + SerializedName = @"targetId", + PossibleTypes = new [] { typeof(string) })] + string TargetId { get; set; } + + } + /// An Elastic SAN volume from Microsoft.ElasticSan provider + internal partial interface IElasticSanVolumeInternal + + { + /// Azure resource ID of the Elastic SAN Volume + string TargetId { get; set; } + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/OperationProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ElasticSanVolume.json.cs similarity index 79% rename from src/VMware/VMware.Autorest/generated/api/Models/OperationProperties.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ElasticSanVolume.json.cs index 6ee3cac6d597..850747c10e3c 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/OperationProperties.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ElasticSanVolume.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Extra Operation properties - public partial class OperationProperties + /// An Elastic SAN volume from Microsoft.ElasticSan provider + public partial class ElasticSanVolume { /// @@ -54,22 +54,10 @@ public partial class OperationProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationProperties. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationProperties. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new OperationProperties(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal OperationProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal ElasticSanVolume(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -77,18 +65,30 @@ internal OperationProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.J { return; } - {_serviceSpecification = If( json?.PropertyT("serviceSpecification"), out var __jsonServiceSpecification) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ServiceSpecification.FromJson(__jsonServiceSpecification) : _serviceSpecification;} + {_targetId = If( json?.PropertyT("targetId"), out var __jsonTargetId) ? (string)__jsonTargetId : (string)_targetId;} AfterFromJson(json); } /// - /// Serializes this instance of into a . + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IElasticSanVolume FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new ElasticSanVolume(json) : null; + } + + /// + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -100,7 +100,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - AddIf( null != this._serviceSpecification ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._serviceSpecification.ToJson(null,serializationMode) : null, "serviceSpecification" ,container.Add ); + AddIf( null != (((object)this._targetId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._targetId.ToString()) : null, "targetId" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Endpoints.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/Endpoints.PowerShell.cs index 7a883c1bea82..0e73e26a036a 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Endpoints.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Endpoints.PowerShell.cs @@ -114,6 +114,18 @@ internal Endpoints(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)this).HcxCloudManager = (string) content.GetValueForProperty("HcxCloudManager",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)this).HcxCloudManager, global::System.Convert.ToString); } + if (content.Contains("NsxtManagerIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)this).NsxtManagerIP = (string) content.GetValueForProperty("NsxtManagerIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)this).NsxtManagerIP, global::System.Convert.ToString); + } + if (content.Contains("VcenterIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)this).VcenterIP = (string) content.GetValueForProperty("VcenterIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)this).VcenterIP, global::System.Convert.ToString); + } + if (content.Contains("HcxCloudManagerIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)this).HcxCloudManagerIP = (string) content.GetValueForProperty("HcxCloudManagerIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)this).HcxCloudManagerIP, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -143,6 +155,18 @@ internal Endpoints(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)this).HcxCloudManager = (string) content.GetValueForProperty("HcxCloudManager",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)this).HcxCloudManager, global::System.Convert.ToString); } + if (content.Contains("NsxtManagerIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)this).NsxtManagerIP = (string) content.GetValueForProperty("NsxtManagerIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)this).NsxtManagerIP, global::System.Convert.ToString); + } + if (content.Contains("VcenterIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)this).VcenterIP = (string) content.GetValueForProperty("VcenterIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)this).VcenterIP, global::System.Convert.ToString); + } + if (content.Contains("HcxCloudManagerIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)this).HcxCloudManagerIP = (string) content.GetValueForProperty("HcxCloudManagerIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)this).HcxCloudManagerIP, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Endpoints.cs b/src/VMware/VMware.Autorest/generated/api/Models/Endpoints.cs index ff43f051b0fb..40c78e7bbc06 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Endpoints.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Endpoints.cs @@ -16,30 +16,60 @@ public partial class Endpoints : /// Backing field for property. private string _hcxCloudManager; - /// Endpoint for the HCX Cloud Manager + /// Endpoint FQDN for the HCX Cloud Manager [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string HcxCloudManager { get => this._hcxCloudManager; } + /// Backing field for property. + private string _hcxCloudManagerIP; + + /// Endpoint IP for the HCX Cloud Manager + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string HcxCloudManagerIP { get => this._hcxCloudManagerIP; } + /// Internal Acessors for HcxCloudManager string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal.HcxCloudManager { get => this._hcxCloudManager; set { {_hcxCloudManager = value;} } } + /// Internal Acessors for HcxCloudManagerIP + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal.HcxCloudManagerIP { get => this._hcxCloudManagerIP; set { {_hcxCloudManagerIP = value;} } } + /// Internal Acessors for NsxtManager string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal.NsxtManager { get => this._nsxtManager; set { {_nsxtManager = value;} } } + /// Internal Acessors for NsxtManagerIP + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal.NsxtManagerIP { get => this._nsxtManagerIP; set { {_nsxtManagerIP = value;} } } + + /// Internal Acessors for VcenterIP + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal.VcenterIP { get => this._vcenterIP; set { {_vcenterIP = value;} } } + /// Internal Acessors for Vcsa string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal.Vcsa { get => this._vcsa; set { {_vcsa = value;} } } /// Backing field for property. private string _nsxtManager; - /// Endpoint for the NSX-T Data Center manager + /// Endpoint FQDN for the NSX-T Data Center manager [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string NsxtManager { get => this._nsxtManager; } + /// Backing field for property. + private string _nsxtManagerIP; + + /// Endpoint IP for the NSX-T Data Center manager + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string NsxtManagerIP { get => this._nsxtManagerIP; } + + /// Backing field for property. + private string _vcenterIP; + + /// Endpoint IP for Virtual Center Server Appliance + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string VcenterIP { get => this._vcenterIP; } + /// Backing field for property. private string _vcsa; - /// Endpoint for Virtual Center Server Appliance + /// Endpoint FQDN for Virtual Center Server Appliance [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Vcsa { get => this._vcsa; } @@ -53,36 +83,69 @@ public Endpoints() public partial interface IEndpoints : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// Endpoint for the HCX Cloud Manager + /// Endpoint FQDN for the HCX Cloud Manager [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Endpoint for the HCX Cloud Manager", + Description = @"Endpoint FQDN for the HCX Cloud Manager", SerializedName = @"hcxCloudManager", PossibleTypes = new [] { typeof(string) })] string HcxCloudManager { get; } - /// Endpoint for the NSX-T Data Center manager + /// Endpoint IP for the HCX Cloud Manager [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Endpoint for the NSX-T Data Center manager", + Description = @"Endpoint IP for the HCX Cloud Manager", + SerializedName = @"hcxCloudManagerIp", + PossibleTypes = new [] { typeof(string) })] + string HcxCloudManagerIP { get; } + /// Endpoint FQDN for the NSX-T Data Center manager + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Endpoint FQDN for the NSX-T Data Center manager", SerializedName = @"nsxtManager", PossibleTypes = new [] { typeof(string) })] string NsxtManager { get; } - /// Endpoint for Virtual Center Server Appliance + /// Endpoint IP for the NSX-T Data Center manager + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Endpoint IP for the NSX-T Data Center manager", + SerializedName = @"nsxtManagerIp", + PossibleTypes = new [] { typeof(string) })] + string NsxtManagerIP { get; } + /// Endpoint IP for Virtual Center Server Appliance + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Endpoint IP for Virtual Center Server Appliance", + SerializedName = @"vcenterIp", + PossibleTypes = new [] { typeof(string) })] + string VcenterIP { get; } + /// Endpoint FQDN for Virtual Center Server Appliance [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Endpoint for Virtual Center Server Appliance", + Description = @"Endpoint FQDN for Virtual Center Server Appliance", SerializedName = @"vcsa", PossibleTypes = new [] { typeof(string) })] string Vcsa { get; } @@ -92,11 +155,17 @@ public partial interface IEndpoints : internal partial interface IEndpointsInternal { - /// Endpoint for the HCX Cloud Manager + /// Endpoint FQDN for the HCX Cloud Manager string HcxCloudManager { get; set; } - /// Endpoint for the NSX-T Data Center manager + /// Endpoint IP for the HCX Cloud Manager + string HcxCloudManagerIP { get; set; } + /// Endpoint FQDN for the NSX-T Data Center manager string NsxtManager { get; set; } - /// Endpoint for Virtual Center Server Appliance + /// Endpoint IP for the NSX-T Data Center manager + string NsxtManagerIP { get; set; } + /// Endpoint IP for Virtual Center Server Appliance + string VcenterIP { get; set; } + /// Endpoint FQDN for Virtual Center Server Appliance string Vcsa { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Endpoints.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/Endpoints.json.cs index 772fd968e02f..0a8fcc5f1d17 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Endpoints.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Endpoints.json.cs @@ -68,6 +68,9 @@ internal Endpoints(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonOb {_nsxtManager = If( json?.PropertyT("nsxtManager"), out var __jsonNsxtManager) ? (string)__jsonNsxtManager : (string)_nsxtManager;} {_vcsa = If( json?.PropertyT("vcsa"), out var __jsonVcsa) ? (string)__jsonVcsa : (string)_vcsa;} {_hcxCloudManager = If( json?.PropertyT("hcxCloudManager"), out var __jsonHcxCloudManager) ? (string)__jsonHcxCloudManager : (string)_hcxCloudManager;} + {_nsxtManagerIP = If( json?.PropertyT("nsxtManagerIp"), out var __jsonNsxtManagerIP) ? (string)__jsonNsxtManagerIP : (string)_nsxtManagerIP;} + {_vcenterIP = If( json?.PropertyT("vcenterIp"), out var __jsonVcenterIP) ? (string)__jsonVcenterIP : (string)_vcenterIP;} + {_hcxCloudManagerIP = If( json?.PropertyT("hcxCloudManagerIp"), out var __jsonHcxCloudManagerIP) ? (string)__jsonHcxCloudManagerIP : (string)_hcxCloudManagerIP;} AfterFromJson(json); } @@ -112,6 +115,18 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { AddIf( null != (((object)this._hcxCloudManager)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._hcxCloudManager.ToString()) : null, "hcxCloudManager" ,container.Add ); } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._nsxtManagerIP)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nsxtManagerIP.ToString()) : null, "nsxtManagerIp" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._vcenterIP)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._vcenterIP.ToString()) : null, "vcenterIp" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._hcxCloudManagerIP)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._hcxCloudManagerIP.ToString()) : null, "hcxCloudManagerIp" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorization.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorization.PowerShell.cs index 70c20620ce54..dee5c680b8a5 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorization.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorization.PowerShell.cs @@ -106,6 +106,34 @@ internal ExpressRouteAuthorization(global::System.Collections.IDictionary conten { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -155,6 +183,34 @@ internal ExpressRouteAuthorization(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorization.cs b/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorization.cs index 244da131dfb2..7eb4fd22f56f 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorization.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorization.cs @@ -14,9 +14,9 @@ public partial class ExpressRouteAuthorization : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(); /// The ID of the ExpressRoute Circuit Authorization [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] @@ -26,9 +26,11 @@ public partial class ExpressRouteAuthorization : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string ExpressRouteId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationPropertiesInternal)Property).ExpressRouteId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationPropertiesInternal)Property).ExpressRouteId = value ?? null; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } /// The key of the ExpressRoute Circuit Authorization [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] @@ -47,24 +49,27 @@ public partial class ExpressRouteAuthorization : string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationProperties _property; - /// The properties of an ExpressRoute Circuit Authorization resource + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationProperties()); } + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationProperties()); set => this._property = value; } /// The state of the ExpressRoute Circuit Authorization provisioning [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] @@ -74,9 +79,41 @@ public partial class ExpressRouteAuthorization : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public ExpressRouteAuthorization() @@ -92,14 +129,14 @@ public ExpressRouteAuthorization() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// ExpressRoute Circuit Authorization public partial interface IExpressRouteAuthorization : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource { /// The ID of the ExpressRoute Circuit Authorization [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -115,14 +152,14 @@ public partial interface IExpressRouteAuthorization : /// The ID of the ExpressRoute Circuit [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, + Create = true, Update = false, Description = @"The ID of the ExpressRoute Circuit", SerializedName = @"expressRouteId", PossibleTypes = new [] { typeof(string) })] - string ExpressRouteId { get; } + string ExpressRouteId { get; set; } /// The key of the ExpressRoute Circuit Authorization [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -141,16 +178,16 @@ public partial interface IExpressRouteAuthorization : Read = true, Create = false, Update = false, - Description = @"The state of the ExpressRoute Circuit Authorization provisioning", + Description = @"The state of the ExpressRoute Circuit Authorization provisioning", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Updating")] string ProvisioningState { get; } } /// ExpressRoute Circuit Authorization internal partial interface IExpressRouteAuthorizationInternal : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResourceInternal { /// The ID of the ExpressRoute Circuit Authorization string ExpressRouteAuthorizationId { get; set; } @@ -158,10 +195,10 @@ internal partial interface IExpressRouteAuthorizationInternal : string ExpressRouteId { get; set; } /// The key of the ExpressRoute Circuit Authorization string Key { get; set; } - /// The properties of an ExpressRoute Circuit Authorization resource + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationProperties Property { get; set; } /// The state of the ExpressRoute Circuit Authorization provisioning - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Updating")] string ProvisioningState { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorization.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorization.json.cs index ce2c18553d56..072ddc52e1ee 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorization.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorization.json.cs @@ -65,7 +65,7 @@ internal ExpressRouteAuthorization(Microsoft.Azure.PowerShell.Cmdlets.VMware.Run { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -101,8 +101,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - __resource?.ToJson(container, serializationMode); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + __proxyResource?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) { AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationListResult.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationListResult.PowerShell.cs new file mode 100644 index 000000000000..890f7c3fc3ea --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationListResult.PowerShell.cs @@ -0,0 +1,174 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// The response of a ExpressRouteAuthorization list operation. + [System.ComponentModel.TypeConverter(typeof(ExpressRouteAuthorizationListResultTypeConverter))] + public partial class ExpressRouteAuthorizationListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ExpressRouteAuthorizationListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ExpressRouteAuthorizationListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ExpressRouteAuthorizationListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ExpressRouteAuthorizationListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The response of a ExpressRouteAuthorization list operation. + [System.ComponentModel.TypeConverter(typeof(ExpressRouteAuthorizationListResultTypeConverter))] + public partial interface IExpressRouteAuthorizationListResult + + { + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationListResult.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationListResult.TypeConverter.cs new file mode 100644 index 000000000000..10b8ef4a0717 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationListResult.TypeConverter.cs @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ExpressRouteAuthorizationListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ExpressRouteAuthorizationListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ExpressRouteAuthorizationListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ExpressRouteAuthorizationListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationList.cs b/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationListResult.cs similarity index 55% rename from src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationListResult.cs index 7da17470ddb8..c622674fca3c 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A paged list of ExpressRoute Circuit Authorizations - public partial class ExpressRouteAuthorizationList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListInternal + /// The response of a ExpressRouteAuthorization list operation. + public partial class ExpressRouteAuthorizationListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on a page + /// The ExpressRouteAuthorization items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public ExpressRouteAuthorizationList() + /// Creates an new instance. + public ExpressRouteAuthorizationListResult() { } } - /// A paged list of ExpressRoute Circuit Authorizations - public partial interface IExpressRouteAuthorizationList : + /// The response of a ExpressRouteAuthorization list operation. + public partial interface IExpressRouteAuthorizationListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on a page + string NextLink { get; set; } + /// The ExpressRouteAuthorization items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on a page", + Create = true, + Update = true, + Description = @"The ExpressRouteAuthorization items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A paged list of ExpressRoute Circuit Authorizations - internal partial interface IExpressRouteAuthorizationListInternal + /// The response of a ExpressRouteAuthorization list operation. + internal partial interface IExpressRouteAuthorizationListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on a page + /// The ExpressRouteAuthorization items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationListResult.json.cs similarity index 80% rename from src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationListResult.json.cs index e7f19d4cc13e..ab7742c73135 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A paged list of ExpressRoute Circuit Authorizations - public partial class ExpressRouteAuthorizationList + /// The response of a ExpressRouteAuthorization list operation. + public partial class ExpressRouteAuthorizationListResult { /// @@ -54,10 +54,10 @@ public partial class ExpressRouteAuthorizationList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal ExpressRouteAuthorizationList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal ExpressRouteAuthorizationListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -71,25 +71,26 @@ internal ExpressRouteAuthorizationList(Microsoft.Azure.PowerShell.Cmdlets.VMware } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new ExpressRouteAuthorizationList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new ExpressRouteAuthorizationListResult(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -101,22 +102,16 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationProperties.cs index 2e3607d5055a..172a01826636 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationProperties.cs @@ -100,10 +100,10 @@ public partial interface IExpressRouteAuthorizationProperties : Read = true, Create = false, Update = false, - Description = @"The state of the ExpressRoute Circuit Authorization provisioning", + Description = @"The state of the ExpressRoute Circuit Authorization provisioning", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Updating")] string ProvisioningState { get; } } @@ -118,7 +118,7 @@ internal partial interface IExpressRouteAuthorizationPropertiesInternal /// The ID of the ExpressRoute Circuit string ExpressRouteId { get; set; } /// The state of the ExpressRoute Circuit Authorization provisioning - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Updating")] string ProvisioningState { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnection.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnection.PowerShell.cs index d89efa28c104..37996f97253c 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnection.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnection.PowerShell.cs @@ -113,6 +113,34 @@ internal GlobalReachConnection(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnectionPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -170,6 +198,34 @@ internal GlobalReachConnection(global::System.Management.Automation.PSObject con { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnectionPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnection.cs b/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnection.cs index 306268f82e3c..87a68f99b08d 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnection.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnection.cs @@ -14,18 +14,20 @@ public partial class GlobalReachConnection : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(); /// - /// The network used for global reach carved out from the original network block provided for the private cloud + /// The network used for global reach carved out from the original network block + /// provided for the private cloud /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string AddressPrefix { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionPropertiesInternal)Property).AddressPrefix; } /// - /// Authorization key from the peer express route used for the global reach connection + /// Authorization key from the peer express route used for the global reach + /// connection /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string AuthorizationKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionPropertiesInternal)Property).AuthorizationKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionPropertiesInternal)Property).AuthorizationKey = value ?? null; } @@ -35,14 +37,17 @@ public partial class GlobalReachConnection : public string CircuitConnectionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionPropertiesInternal)Property).CircuitConnectionStatus; } /// - /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection + /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the + /// global reach connection /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string ExpressRouteId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionPropertiesInternal)Property).ExpressRouteId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionPropertiesInternal)Property).ExpressRouteId = value ?? null; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for AddressPrefix string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionInternal.AddressPrefix { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionPropertiesInternal)Property).AddressPrefix; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionPropertiesInternal)Property).AddressPrefix = value; } @@ -57,20 +62,24 @@ public partial class GlobalReachConnection : string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } /// - /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection + /// Identifier of the ExpressRoute Circuit to peer with in the global reach + /// connection /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string PeerExpressRouteCircuit { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionPropertiesInternal)Property).PeerExpressRouteCircuit; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionPropertiesInternal)Property).PeerExpressRouteCircuit = value ?? null; } @@ -78,7 +87,7 @@ public partial class GlobalReachConnection : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionProperties _property; - /// The properties of a global reach connection resource + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnectionProperties()); set => this._property = value; } @@ -90,9 +99,41 @@ public partial class GlobalReachConnection : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public GlobalReachConnection() @@ -108,17 +149,18 @@ public GlobalReachConnection() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// A global reach connection resource public partial interface IGlobalReachConnection : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource { /// - /// The network used for global reach carved out from the original network block provided for the private cloud + /// The network used for global reach carved out from the original network block + /// provided for the private cloud /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -126,20 +168,23 @@ public partial interface IGlobalReachConnection : Read = true, Create = false, Update = false, - Description = @"The network used for global reach carved out from the original network block provided for the private cloud", + Description = @"The network used for global reach carved out from the original network block + provided for the private cloud", SerializedName = @"addressPrefix", PossibleTypes = new [] { typeof(string) })] string AddressPrefix { get; } /// - /// Authorization key from the peer express route used for the global reach connection + /// Authorization key from the peer express route used for the global reach + /// connection /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, - Update = true, - Description = @"Authorization key from the peer express route used for the global reach connection", + Update = false, + Description = @"Authorization key from the peer express route used for the global reach + connection", SerializedName = @"authorizationKey", PossibleTypes = new [] { typeof(string) })] string AuthorizationKey { get; set; } @@ -156,28 +201,32 @@ public partial interface IGlobalReachConnection : [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Connected", "Connecting", "Disconnected")] string CircuitConnectionStatus { get; } /// - /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection + /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the + /// global reach connection /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, - Update = true, - Description = @"The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection", + Update = false, + Description = @"The ID of the Private Cloud's ExpressRoute Circuit that is participating in the + global reach connection", SerializedName = @"expressRouteId", PossibleTypes = new [] { typeof(string) })] string ExpressRouteId { get; set; } /// - /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection + /// Identifier of the ExpressRoute Circuit to peer with in the global reach + /// connection /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, - Update = true, - Description = @"Identifier of the ExpressRoute Circuit to peer with in the global reach connection", + Update = false, + Description = @"Identifier of the ExpressRoute Circuit to peer with in the global reach + connection", SerializedName = @"peerExpressRouteCircuit", PossibleTypes = new [] { typeof(string) })] string PeerExpressRouteCircuit { get; set; } @@ -191,37 +240,41 @@ public partial interface IGlobalReachConnection : Description = @"The state of the ExpressRoute Circuit Authorization provisioning", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Updating")] string ProvisioningState { get; } } /// A global reach connection resource internal partial interface IGlobalReachConnectionInternal : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResourceInternal { /// - /// The network used for global reach carved out from the original network block provided for the private cloud + /// The network used for global reach carved out from the original network block + /// provided for the private cloud /// string AddressPrefix { get; set; } /// - /// Authorization key from the peer express route used for the global reach connection + /// Authorization key from the peer express route used for the global reach + /// connection /// string AuthorizationKey { get; set; } /// The connection status of the global reach connection [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Connected", "Connecting", "Disconnected")] string CircuitConnectionStatus { get; set; } /// - /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection + /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the + /// global reach connection /// string ExpressRouteId { get; set; } /// - /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection + /// Identifier of the ExpressRoute Circuit to peer with in the global reach + /// connection /// string PeerExpressRouteCircuit { get; set; } - /// The properties of a global reach connection resource + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionProperties Property { get; set; } /// The state of the ExpressRoute Circuit Authorization provisioning - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Updating")] string ProvisioningState { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnection.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnection.json.cs index 695474a7f7f2..f14f44b9f2a5 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnection.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnection.json.cs @@ -77,7 +77,7 @@ internal GlobalReachConnection(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnectionProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -101,8 +101,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - __resource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + __proxyResource?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionListResult.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionListResult.PowerShell.cs new file mode 100644 index 000000000000..5f7a886dcc67 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionListResult.PowerShell.cs @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// The response of a GlobalReachConnection list operation. + [System.ComponentModel.TypeConverter(typeof(GlobalReachConnectionListResultTypeConverter))] + public partial class GlobalReachConnectionListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new GlobalReachConnectionListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new GlobalReachConnectionListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal GlobalReachConnectionListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnectionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal GlobalReachConnectionListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnectionTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// The response of a GlobalReachConnection list operation. + [System.ComponentModel.TypeConverter(typeof(GlobalReachConnectionListResultTypeConverter))] + public partial interface IGlobalReachConnectionListResult + + { + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionListResult.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionListResult.TypeConverter.cs new file mode 100644 index 000000000000..a211570d8eb5 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionListResult.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class GlobalReachConnectionListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return GlobalReachConnectionListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return GlobalReachConnectionListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return GlobalReachConnectionListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionList.cs b/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionListResult.cs similarity index 54% rename from src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionListResult.cs index 7f9248cf2fba..d4bbd853d3b6 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A paged list of global reach connections - public partial class GlobalReachConnectionList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListInternal + /// The response of a GlobalReachConnection list operation. + public partial class GlobalReachConnectionListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on a page + /// The GlobalReachConnection items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public GlobalReachConnectionList() + /// Creates an new instance. + public GlobalReachConnectionListResult() { } } - /// A paged list of global reach connections - public partial interface IGlobalReachConnectionList : + /// The response of a GlobalReachConnection list operation. + public partial interface IGlobalReachConnectionListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on a page + string NextLink { get; set; } + /// The GlobalReachConnection items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on a page", + Create = true, + Update = true, + Description = @"The GlobalReachConnection items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A paged list of global reach connections - internal partial interface IGlobalReachConnectionListInternal + /// The response of a GlobalReachConnection list operation. + internal partial interface IGlobalReachConnectionListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on a page + /// The GlobalReachConnection items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionListResult.json.cs similarity index 81% rename from src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionListResult.json.cs index 2751246a89ca..ac90382129e1 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A paged list of global reach connections - public partial class GlobalReachConnectionList + /// The response of a GlobalReachConnection list operation. + public partial class GlobalReachConnectionListResult { /// @@ -54,22 +54,22 @@ public partial class GlobalReachConnectionList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new GlobalReachConnectionList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new GlobalReachConnectionListResult(json) : null; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal GlobalReachConnectionList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal GlobalReachConnectionListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -83,13 +83,13 @@ internal GlobalReachConnectionList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Run } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -101,22 +101,16 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionProperties.cs index 4a7499d4c705..edf3c6f3d7aa 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionProperties.cs @@ -17,7 +17,8 @@ public partial class GlobalReachConnectionProperties : private string _addressPrefix; /// - /// The network used for global reach carved out from the original network block provided for the private cloud + /// The network used for global reach carved out from the original network block + /// provided for the private cloud /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string AddressPrefix { get => this._addressPrefix; } @@ -26,7 +27,8 @@ public partial class GlobalReachConnectionProperties : private string _authorizationKey; /// - /// Authorization key from the peer express route used for the global reach connection + /// Authorization key from the peer express route used for the global reach + /// connection /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string AuthorizationKey { get => this._authorizationKey; set => this._authorizationKey = value; } @@ -42,7 +44,8 @@ public partial class GlobalReachConnectionProperties : private string _expressRouteId; /// - /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection + /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the + /// global reach connection /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ExpressRouteId { get => this._expressRouteId; set => this._expressRouteId = value; } @@ -60,7 +63,8 @@ public partial class GlobalReachConnectionProperties : private string _peerExpressRouteCircuit; /// - /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection + /// Identifier of the ExpressRoute Circuit to peer with in the global reach + /// connection /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string PeerExpressRouteCircuit { get => this._peerExpressRouteCircuit; set => this._peerExpressRouteCircuit = value; } @@ -83,7 +87,8 @@ public partial interface IGlobalReachConnectionProperties : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { /// - /// The network used for global reach carved out from the original network block provided for the private cloud + /// The network used for global reach carved out from the original network block + /// provided for the private cloud /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -91,12 +96,14 @@ public partial interface IGlobalReachConnectionProperties : Read = true, Create = false, Update = false, - Description = @"The network used for global reach carved out from the original network block provided for the private cloud", + Description = @"The network used for global reach carved out from the original network block + provided for the private cloud", SerializedName = @"addressPrefix", PossibleTypes = new [] { typeof(string) })] string AddressPrefix { get; } /// - /// Authorization key from the peer express route used for the global reach connection + /// Authorization key from the peer express route used for the global reach + /// connection /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -104,7 +111,8 @@ public partial interface IGlobalReachConnectionProperties : Read = true, Create = true, Update = true, - Description = @"Authorization key from the peer express route used for the global reach connection", + Description = @"Authorization key from the peer express route used for the global reach + connection", SerializedName = @"authorizationKey", PossibleTypes = new [] { typeof(string) })] string AuthorizationKey { get; set; } @@ -121,7 +129,8 @@ public partial interface IGlobalReachConnectionProperties : [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Connected", "Connecting", "Disconnected")] string CircuitConnectionStatus { get; } /// - /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection + /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the + /// global reach connection /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -129,12 +138,14 @@ public partial interface IGlobalReachConnectionProperties : Read = true, Create = true, Update = true, - Description = @"The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection", + Description = @"The ID of the Private Cloud's ExpressRoute Circuit that is participating in the + global reach connection", SerializedName = @"expressRouteId", PossibleTypes = new [] { typeof(string) })] string ExpressRouteId { get; set; } /// - /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection + /// Identifier of the ExpressRoute Circuit to peer with in the global reach + /// connection /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -142,7 +153,8 @@ public partial interface IGlobalReachConnectionProperties : Read = true, Create = true, Update = true, - Description = @"Identifier of the ExpressRoute Circuit to peer with in the global reach connection", + Description = @"Identifier of the ExpressRoute Circuit to peer with in the global reach + connection", SerializedName = @"peerExpressRouteCircuit", PossibleTypes = new [] { typeof(string) })] string PeerExpressRouteCircuit { get; set; } @@ -156,7 +168,7 @@ public partial interface IGlobalReachConnectionProperties : Description = @"The state of the ExpressRoute Circuit Authorization provisioning", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Updating")] string ProvisioningState { get; } } @@ -165,26 +177,30 @@ internal partial interface IGlobalReachConnectionPropertiesInternal { /// - /// The network used for global reach carved out from the original network block provided for the private cloud + /// The network used for global reach carved out from the original network block + /// provided for the private cloud /// string AddressPrefix { get; set; } /// - /// Authorization key from the peer express route used for the global reach connection + /// Authorization key from the peer express route used for the global reach + /// connection /// string AuthorizationKey { get; set; } /// The connection status of the global reach connection [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Connected", "Connecting", "Disconnected")] string CircuitConnectionStatus { get; set; } /// - /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection + /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the + /// global reach connection /// string ExpressRouteId { get; set; } /// - /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection + /// Identifier of the ExpressRoute Circuit to peer with in the global reach + /// connection /// string PeerExpressRouteCircuit { get; set; } /// The state of the ExpressRoute Circuit Authorization provisioning - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Updating")] string ProvisioningState { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSite.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSite.PowerShell.cs index 454e28ccab98..ec61f6fbf8c6 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSite.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSite.PowerShell.cs @@ -113,6 +113,34 @@ internal HcxEnterpriseSite(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSitePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,6 +153,10 @@ internal HcxEnterpriseSite(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("ActivationKey")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteInternal)this).ActivationKey = (string) content.GetValueForProperty("ActivationKey",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteInternal)this).ActivationKey, global::System.Convert.ToString); @@ -154,6 +186,34 @@ internal HcxEnterpriseSite(global::System.Management.Automation.PSObject content { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSitePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -166,6 +226,10 @@ internal HcxEnterpriseSite(global::System.Management.Automation.PSObject content { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("ActivationKey")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteInternal)this).ActivationKey = (string) content.GetValueForProperty("ActivationKey",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteInternal)this).ActivationKey, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSite.cs b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSite.cs index b7a72ff5f568..c504718f1cf7 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSite.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSite.cs @@ -14,17 +14,19 @@ public partial class HcxEnterpriseSite : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(); /// The activation key [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string ActivationKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)Property).ActivationKey; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for ActivationKey string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteInternal.ActivationKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)Property).ActivationKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)Property).ActivationKey = value; } @@ -32,28 +34,38 @@ public partial class HcxEnterpriseSite : /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSiteProperties()); set { {_property = value;} } } + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)Property).ProvisioningState = value; } + /// Internal Acessors for Status string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)Property).Status = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteProperties _property; - /// The properties of an HCX Enterprise Site resource + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSiteProperties()); } + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSiteProperties()); set => this._property = value; } + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)Property).ProvisioningState; } /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] @@ -63,9 +75,41 @@ public partial class HcxEnterpriseSite : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)Property).Status; } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public HcxEnterpriseSite() @@ -81,14 +125,14 @@ public HcxEnterpriseSite() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// An HCX Enterprise Site resource public partial interface IHcxEnterpriseSite : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource { /// The activation key [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -101,6 +145,18 @@ public partial interface IHcxEnterpriseSite : SerializedName = @"activationKey", PossibleTypes = new [] { typeof(string) })] string ActivationKey { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; } /// The status of the HCX Enterprise Site [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -117,12 +173,15 @@ public partial interface IHcxEnterpriseSite : } /// An HCX Enterprise Site resource internal partial interface IHcxEnterpriseSiteInternal : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResourceInternal { /// The activation key string ActivationKey { get; set; } - /// The properties of an HCX Enterprise Site resource + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteProperties Property { get; set; } + /// The provisioning state of the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; set; } /// The status of the HCX Enterprise Site [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Available", "Consumed", "Deactivated", "Deleted")] string Status { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSite.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSite.json.cs index 564db0dd3b89..c3639aa27163 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSite.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSite.json.cs @@ -77,7 +77,7 @@ internal HcxEnterpriseSite(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Jso { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSiteProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -101,8 +101,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - __resource?.ToJson(container, serializationMode); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + __proxyResource?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) { AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupsList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteListResult.PowerShell.cs similarity index 75% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupsList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteListResult.PowerShell.cs index 14b7c59f0ada..0a5e4a37db27 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupsList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A list of NSX VM Groups - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkVMGroupsListTypeConverter))] - public partial class WorkloadNetworkVMGroupsList + /// The response of a HcxEnterpriseSite list operation. + [System.ComponentModel.TypeConverter(typeof(HcxEnterpriseSiteListResultTypeConverter))] + public partial class HcxEnterpriseSiteListResult { /// @@ -63,61 +63,44 @@ public partial class WorkloadNetworkVMGroupsList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new WorkloadNetworkVMGroupsList(content); + return new HcxEnterpriseSiteListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new WorkloadNetworkVMGroupsList(content); + return new HcxEnterpriseSiteListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal WorkloadNetworkVMGroupsList(global::System.Collections.IDictionary content) + internal HcxEnterpriseSiteListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -128,21 +111,21 @@ internal WorkloadNetworkVMGroupsList(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSiteTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal WorkloadNetworkVMGroupsList(global::System.Management.Automation.PSObject content) + internal HcxEnterpriseSiteListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -153,18 +136,35 @@ internal WorkloadNetworkVMGroupsList(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSiteTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } } - /// A list of NSX VM Groups - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkVMGroupsListTypeConverter))] - public partial interface IWorkloadNetworkVMGroupsList + /// The response of a HcxEnterpriseSite list operation. + [System.ComponentModel.TypeConverter(typeof(HcxEnterpriseSiteListResultTypeConverter))] + public partial interface IHcxEnterpriseSiteListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentsList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteListResult.TypeConverter.cs similarity index 88% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentsList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteListResult.TypeConverter.cs index 44a92e794ddc..a78e4510b70a 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentsList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteListResult.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class WorkloadNetworkSegmentsListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class HcxEnterpriseSiteListResultTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class WorkloadNetworkSegmentsListTypeConverter : global::System.M public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResult).IsAssignableFrom(type)) { return sourceValue; } try { - return WorkloadNetworkSegmentsList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return HcxEnterpriseSiteListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkS } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return WorkloadNetworkSegmentsList.DeserializeFromPSObject(sourceValue); + return HcxEnterpriseSiteListResult.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return WorkloadNetworkSegmentsList.DeserializeFromDictionary(sourceValue); + return HcxEnterpriseSiteListResult.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteList.cs b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteListResult.cs similarity index 55% rename from src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteListResult.cs index 5666232e2478..ad657fb73f5c 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A paged list of HCX Enterprise Sites - public partial class HcxEnterpriseSiteList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListInternal + /// The response of a HcxEnterpriseSite list operation. + public partial class HcxEnterpriseSiteListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on a page + /// The HcxEnterpriseSite items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public HcxEnterpriseSiteList() + /// Creates an new instance. + public HcxEnterpriseSiteListResult() { } } - /// A paged list of HCX Enterprise Sites - public partial interface IHcxEnterpriseSiteList : + /// The response of a HcxEnterpriseSite list operation. + public partial interface IHcxEnterpriseSiteListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on a page + string NextLink { get; set; } + /// The HcxEnterpriseSite items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on a page", + Create = true, + Update = true, + Description = @"The HcxEnterpriseSite items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSite) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A paged list of HCX Enterprise Sites - internal partial interface IHcxEnterpriseSiteListInternal + /// The response of a HcxEnterpriseSite list operation. + internal partial interface IHcxEnterpriseSiteListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on a page + /// The HcxEnterpriseSite items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteListResult.json.cs similarity index 80% rename from src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteListResult.json.cs index cc257c9865ca..2c03240515eb 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A paged list of HCX Enterprise Sites - public partial class HcxEnterpriseSiteList + /// The response of a HcxEnterpriseSite list operation. + public partial class HcxEnterpriseSiteListResult { /// @@ -54,22 +54,22 @@ public partial class HcxEnterpriseSiteList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new HcxEnterpriseSiteList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new HcxEnterpriseSiteListResult(json) : null; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal HcxEnterpriseSiteList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal HcxEnterpriseSiteListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -83,13 +83,13 @@ internal HcxEnterpriseSiteList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -101,22 +101,16 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteProperties.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteProperties.PowerShell.cs index 6d44efa7bffd..c3ae674c869a 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteProperties.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteProperties.PowerShell.cs @@ -109,6 +109,10 @@ internal HcxEnterpriseSiteProperties(global::System.Collections.IDictionary cont return; } // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("ActivationKey")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)this).ActivationKey = (string) content.GetValueForProperty("ActivationKey",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)this).ActivationKey, global::System.Convert.ToString); @@ -134,6 +138,10 @@ internal HcxEnterpriseSiteProperties(global::System.Management.Automation.PSObje return; } // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("ActivationKey")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)this).ActivationKey = (string) content.GetValueForProperty("ActivationKey",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal)this).ActivationKey, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteProperties.cs index b5e5eda73649..f5a4c44a6ce7 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteProperties.cs @@ -23,9 +23,19 @@ public partial class HcxEnterpriseSiteProperties : /// Internal Acessors for ActivationKey string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal.ActivationKey { get => this._activationKey; set { {_activationKey = value;} } } + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + /// Internal Acessors for Status string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSitePropertiesInternal.Status { get => this._status; set { {_status = value;} } } + /// Backing field for property. + private string _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + /// Backing field for property. private string _status; @@ -54,6 +64,18 @@ public partial interface IHcxEnterpriseSiteProperties : SerializedName = @"activationKey", PossibleTypes = new [] { typeof(string) })] string ActivationKey { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; } /// The status of the HCX Enterprise Site [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -74,6 +96,9 @@ internal partial interface IHcxEnterpriseSitePropertiesInternal { /// The activation key string ActivationKey { get; set; } + /// The provisioning state of the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; set; } /// The status of the HCX Enterprise Site [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Available", "Consumed", "Deactivated", "Deleted")] string Status { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteProperties.json.cs index 333a9c370e93..f69d6fa13db1 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteProperties.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteProperties.json.cs @@ -77,6 +77,7 @@ internal HcxEnterpriseSiteProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.R { return; } + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} {_activationKey = If( json?.PropertyT("activationKey"), out var __jsonActivationKey) ? (string)__jsonActivationKey : (string)_activationKey;} {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)_status;} AfterFromJson(json); @@ -102,6 +103,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._activationKey)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._activationKey.ToString()) : null, "activationKey" ,container.Add ); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/IdentitySource.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/IdentitySource.PowerShell.cs index 56f8c2ba7bfa..6498915e05d1 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/IdentitySource.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/IdentitySource.PowerShell.cs @@ -147,7 +147,7 @@ internal IdentitySource(global::System.Collections.IDictionary content) } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySourceInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySourceInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySourceInternal)this).Password = (System.Security.SecureString) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySourceInternal)this).Password, (object ss) => (System.Security.SecureString)ss); } AfterDeserializeDictionary(content); } @@ -204,7 +204,7 @@ internal IdentitySource(global::System.Management.Automation.PSObject content) } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySourceInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySourceInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySourceInternal)this).Password = (System.Security.SecureString) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySourceInternal)this).Password, (object ss) => (System.Security.SecureString)ss); } AfterDeserializePSObject(content); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/IdentitySource.cs b/src/VMware/VMware.Autorest/generated/api/Models/IdentitySource.cs index 10988136b8f7..28630c0960ec 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/IdentitySource.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/IdentitySource.cs @@ -49,13 +49,14 @@ public partial class IdentitySource : public string Name { get => this._name; set => this._name = value; } /// Backing field for property. - private string _password; + private System.Security.SecureString _password; /// - /// The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. + /// The password of the Active Directory user with a minimum of read-only access to + /// Base DN for users and groups. /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string Password { get => this._password; set => this._password = value; } + public System.Security.SecureString Password { get => this._password; set => this._password = value; } /// Backing field for property. private string _primaryServer; @@ -82,7 +83,8 @@ public partial class IdentitySource : private string _username; /// - /// The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group + /// The ID of an Active Directory user with a minimum of read-only access to Base + /// DN for users and group /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Username { get => this._username; set => this._username = value; } @@ -153,7 +155,8 @@ public partial interface IIdentitySource : PossibleTypes = new [] { typeof(string) })] string Name { get; set; } /// - /// The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. + /// The password of the Active Directory user with a minimum of read-only access to + /// Base DN for users and groups. /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -161,10 +164,11 @@ public partial interface IIdentitySource : Read = true, Create = true, Update = true, - Description = @"The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups.", + Description = @"The password of the Active Directory user with a minimum of read-only access to + Base DN for users and groups.", SerializedName = @"password", - PossibleTypes = new [] { typeof(string) })] - string Password { get; set; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString Password { get; set; } /// Primary server URL [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -200,7 +204,8 @@ public partial interface IIdentitySource : [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] string Ssl { get; set; } /// - /// The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group + /// The ID of an Active Directory user with a minimum of read-only access to Base + /// DN for users and group /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -208,7 +213,8 @@ public partial interface IIdentitySource : Read = true, Create = true, Update = true, - Description = @"The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group", + Description = @"The ID of an Active Directory user with a minimum of read-only access to Base + DN for users and group", SerializedName = @"username", PossibleTypes = new [] { typeof(string) })] string Username { get; set; } @@ -229,9 +235,10 @@ internal partial interface IIdentitySourceInternal /// The name of the identity source string Name { get; set; } /// - /// The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. + /// The password of the Active Directory user with a minimum of read-only access to + /// Base DN for users and groups. /// - string Password { get; set; } + System.Security.SecureString Password { get; set; } /// Primary server URL string PrimaryServer { get; set; } /// Secondary server URL @@ -240,7 +247,8 @@ internal partial interface IIdentitySourceInternal [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] string Ssl { get; set; } /// - /// The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group + /// The ID of an Active Directory user with a minimum of read-only access to Base + /// DN for users and group /// string Username { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/IdentitySource.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/IdentitySource.json.cs index d51faa382035..ecc812df69e3 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/IdentitySource.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/IdentitySource.json.cs @@ -86,7 +86,7 @@ internal IdentitySource(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.J {_secondaryServer = If( json?.PropertyT("secondaryServer"), out var __jsonSecondaryServer) ? (string)__jsonSecondaryServer : (string)_secondaryServer;} {_ssl = If( json?.PropertyT("ssl"), out var __jsonSsl) ? (string)__jsonSsl : (string)_ssl;} {_username = If( json?.PropertyT("username"), out var __jsonUsername) ? (string)__jsonUsername : (string)_username;} - {_password = If( json?.PropertyT("password"), out var __jsonPassword) ? (string)__jsonPassword : (string)_password;} + {_password = If( json?.PropertyT("password"), out var __jsonPassword) ? new System.Net.NetworkCredential("",(string)__jsonPassword).SecurePassword : _password;} AfterFromJson(json); } @@ -118,7 +118,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi AddIf( null != (((object)this._secondaryServer)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._secondaryServer.ToString()) : null, "secondaryServer" ,container.Add ); AddIf( null != (((object)this._ssl)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._ssl.ToString()) : null, "ssl" ,container.Add ); AddIf( null != (((object)this._username)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._username.ToString()) : null, "username" ,container.Add ); - AddIf( null != (((object)this._password)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._password.ToString()) : null, "password" ,container.Add ); + AddIf( null != (((object)this._password)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(System.Runtime.InteropServices.Marshal.PtrToStringBSTR(System.Runtime.InteropServices.Marshal.SecureStringToBSTR(this._password))) : null, "password" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/IscsiPath.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPath.PowerShell.cs new file mode 100644 index 000000000000..e8bba6ea9c40 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPath.PowerShell.cs @@ -0,0 +1,260 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// An iSCSI path resource + [System.ComponentModel.TypeConverter(typeof(IscsiPathTypeConverter))] + public partial class IscsiPath + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new IscsiPath(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new IscsiPath(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal IscsiPath(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPathPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("NetworkBlock")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathInternal)this).NetworkBlock = (string) content.GetValueForProperty("NetworkBlock",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathInternal)this).NetworkBlock, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal IscsiPath(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPathPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("NetworkBlock")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathInternal)this).NetworkBlock = (string) content.GetValueForProperty("NetworkBlock",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathInternal)this).NetworkBlock, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// An iSCSI path resource + [System.ComponentModel.TypeConverter(typeof(IscsiPathTypeConverter))] + public partial interface IIscsiPath + + { + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/AddonList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPath.TypeConverter.cs similarity index 89% rename from src/VMware/VMware.Autorest/generated/api/Models/AddonList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/IscsiPath.TypeConverter.cs index 7085813df12d..f5acec099987 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/AddonList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPath.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class AddonListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class IscsiPathTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,12 +26,12 @@ public partial class AddonListTypeConverter : global::System.Management.Automati public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the type. + /// Determines if the converter can convert the parameter to the type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -94,31 +94,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath).IsAssignableFrom(type)) { return sourceValue; } try { - return AddonList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return IscsiPath.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -126,11 +126,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonList Conver } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return AddonList.DeserializeFromPSObject(sourceValue); + return IscsiPath.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return AddonList.DeserializeFromDictionary(sourceValue); + return IscsiPath.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/IscsiPath.cs b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPath.cs new file mode 100644 index 000000000000..f21ff1f32191 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPath.cs @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// An iSCSI path resource + public partial class IscsiPath : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathInternal, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(); + + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPathProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } + + /// CIDR Block for iSCSI path. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string NetworkBlock { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathPropertiesInternal)Property).NetworkBlock; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathPropertiesInternal)Property).NetworkBlock = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathProperties _property; + + /// The resource-specific properties for this resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPathProperties()); set => this._property = value; } + + /// The state of the iSCSI path provisioning + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathPropertiesInternal)Property).ProvisioningState; } + + /// Gets the resource group name + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } + + /// Creates an new instance. + public IscsiPath() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); + } + } + /// An iSCSI path resource + public partial interface IIscsiPath : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource + { + /// CIDR Block for iSCSI path. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"CIDR Block for iSCSI path.", + SerializedName = @"networkBlock", + PossibleTypes = new [] { typeof(string) })] + string NetworkBlock { get; set; } + /// The state of the iSCSI path provisioning + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The state of the iSCSI path provisioning", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Pending", "Building", "Deleting", "Updating")] + string ProvisioningState { get; } + + } + /// An iSCSI path resource + internal partial interface IIscsiPathInternal : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResourceInternal + { + /// CIDR Block for iSCSI path. + string NetworkBlock { get; set; } + /// The resource-specific properties for this resource. + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathProperties Property { get; set; } + /// The state of the iSCSI path provisioning + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Pending", "Building", "Deleting", "Updating")] + string ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/IscsiPath.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPath.json.cs new file mode 100644 index 000000000000..9b60eb12f484 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPath.json.cs @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// An iSCSI path resource + public partial class IscsiPath + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath. + /// + /// a to deserialize from. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new IscsiPath(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. + internal IscsiPath(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPathProperties.FromJson(__jsonProperties) : _property;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __proxyResource?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ClusterList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathListResult.PowerShell.cs similarity index 71% rename from src/VMware/VMware.Autorest/generated/api/Models/ClusterList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/IscsiPathListResult.PowerShell.cs index ec5e033572ab..7d0f1f199a0e 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ClusterList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A paged list of clusters - [System.ComponentModel.TypeConverter(typeof(ClusterListTypeConverter))] - public partial class ClusterList + /// The response of a IscsiPath list operation. + [System.ComponentModel.TypeConverter(typeof(IscsiPathListResultTypeConverter))] + public partial class IscsiPathListResult { /// @@ -63,11 +63,44 @@ public partial class ClusterList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal ClusterList(global::System.Collections.IDictionary content) + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new IscsiPathListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new IscsiPathListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal IscsiPathListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -78,21 +111,21 @@ internal ClusterList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPathTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal ClusterList(global::System.Management.Automation.PSObject content) + internal IscsiPathListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -103,48 +136,15 @@ internal ClusterList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPathTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterList DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ClusterList(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ClusterList(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); - /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. @@ -162,9 +162,9 @@ public override string ToString() return ToJsonString(); } } - /// A paged list of clusters - [System.ComponentModel.TypeConverter(typeof(ClusterListTypeConverter))] - public partial interface IClusterList + /// The response of a IscsiPath list operation. + [System.ComponentModel.TypeConverter(typeof(IscsiPathListResultTypeConverter))] + public partial interface IIscsiPathListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachinesList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathListResult.TypeConverter.cs similarity index 88% rename from src/VMware/VMware.Autorest/generated/api/Models/VirtualMachinesList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/IscsiPathListResult.TypeConverter.cs index 9121cc590bc4..58e25f469505 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachinesList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathListResult.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class VirtualMachinesListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class IscsiPathListResultTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class VirtualMachinesListTypeConverter : global::System.Managemen public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResult).IsAssignableFrom(type)) { return sourceValue; } try { - return VirtualMachinesList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return IscsiPathListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesL } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return VirtualMachinesList.DeserializeFromPSObject(sourceValue); + return IscsiPathListResult.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return VirtualMachinesList.DeserializeFromDictionary(sourceValue); + return IscsiPathListResult.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathListResult.cs b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathListResult.cs new file mode 100644 index 000000000000..a1ace1dedf85 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathListResult.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// The response of a IscsiPath list operation. + public partial class IscsiPathListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResultInternal + { + + /// Backing field for property. + private string _nextLink; + + /// The link to the next page of items + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; set => this._nextLink = value; } + + /// Backing field for property. + private System.Collections.Generic.List _value; + + /// The IscsiPath items on this page + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public IscsiPathListResult() + { + + } + } + /// The response of a IscsiPath list operation. + public partial interface IIscsiPathListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable + { + /// The link to the next page of items + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The link to the next page of items", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; set; } + /// The IscsiPath items on this page + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The IscsiPath items on this page", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath) })] + System.Collections.Generic.List Value { get; set; } + + } + /// The response of a IscsiPath list operation. + internal partial interface IIscsiPathListResultInternal + + { + /// The link to the next page of items + string NextLink { get; set; } + /// The IscsiPath items on this page + System.Collections.Generic.List Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathListResult.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathListResult.json.cs new file mode 100644 index 000000000000..ac5d2211752c --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathListResult.json.cs @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// The response of a IscsiPath list operation. + public partial class IscsiPathListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new IscsiPathListResult(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. + internal IscsiPathListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath) (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPath.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/AddonList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathProperties.PowerShell.cs similarity index 71% rename from src/VMware/VMware.Autorest/generated/api/Models/AddonList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/IscsiPathProperties.PowerShell.cs index f5214b947c29..55f8518e721f 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/AddonList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathProperties.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A paged list of addons - [System.ComponentModel.TypeConverter(typeof(AddonListTypeConverter))] - public partial class AddonList + /// The properties of an iSCSI path resource + [System.ComponentModel.TypeConverter(typeof(IscsiPathPropertiesTypeConverter))] + public partial class IscsiPathProperties { /// @@ -63,11 +63,44 @@ public partial class AddonList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal AddonList(global::System.Collections.IDictionary content) + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new IscsiPathProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new IscsiPathProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal IscsiPathProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -76,23 +109,23 @@ internal AddonList(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("Value")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); } - if (content.Contains("NextLink")) + if (content.Contains("NetworkBlock")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathPropertiesInternal)this).NetworkBlock = (string) content.GetValueForProperty("NetworkBlock",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathPropertiesInternal)this).NetworkBlock, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal AddonList(global::System.Management.Automation.PSObject content) + internal IscsiPathProperties(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -101,50 +134,17 @@ internal AddonList(global::System.Management.Automation.PSObject content) return; } // actually deserialize - if (content.Contains("Value")) + if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); } - if (content.Contains("NextLink")) + if (content.Contains("NetworkBlock")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathPropertiesInternal)this).NetworkBlock = (string) content.GetValueForProperty("NetworkBlock",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathPropertiesInternal)this).NetworkBlock, global::System.Convert.ToString); } AfterDeserializePSObject(content); } - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonList DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new AddonList(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new AddonList(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); - /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. @@ -162,9 +162,9 @@ public override string ToString() return ToJsonString(); } } - /// A paged list of addons - [System.ComponentModel.TypeConverter(typeof(AddonListTypeConverter))] - public partial interface IAddonList + /// The properties of an iSCSI path resource + [System.ComponentModel.TypeConverter(typeof(IscsiPathPropertiesTypeConverter))] + public partial interface IIscsiPathProperties { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/OperationProperties.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathProperties.TypeConverter.cs similarity index 89% rename from src/VMware/VMware.Autorest/generated/api/Models/OperationProperties.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/IscsiPathProperties.TypeConverter.cs index 00655f95cfcb..f4b0343fa4fa 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/OperationProperties.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathProperties.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class OperationPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class IscsiPathPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class OperationPropertiesTypeConverter : global::System.Managemen public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathProperties).IsAssignableFrom(type)) { return sourceValue; } try { - return OperationProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return IscsiPathProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropert } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return OperationProperties.DeserializeFromPSObject(sourceValue); + return IscsiPathProperties.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return OperationProperties.DeserializeFromDictionary(sourceValue); + return IscsiPathProperties.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathProperties.cs new file mode 100644 index 000000000000..0bfd4161e75d --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathProperties.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// The properties of an iSCSI path resource + public partial class IscsiPathProperties : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathProperties, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathPropertiesInternal + { + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Backing field for property. + private string _networkBlock; + + /// CIDR Block for iSCSI path. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string NetworkBlock { get => this._networkBlock; set => this._networkBlock = value; } + + /// Backing field for property. + private string _provisioningState; + + /// The state of the iSCSI path provisioning + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + + /// Creates an new instance. + public IscsiPathProperties() + { + + } + } + /// The properties of an iSCSI path resource + public partial interface IIscsiPathProperties : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable + { + /// CIDR Block for iSCSI path. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"CIDR Block for iSCSI path.", + SerializedName = @"networkBlock", + PossibleTypes = new [] { typeof(string) })] + string NetworkBlock { get; set; } + /// The state of the iSCSI path provisioning + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The state of the iSCSI path provisioning", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Pending", "Building", "Deleting", "Updating")] + string ProvisioningState { get; } + + } + /// The properties of an iSCSI path resource + internal partial interface IIscsiPathPropertiesInternal + + { + /// CIDR Block for iSCSI path. + string NetworkBlock { get; set; } + /// The state of the iSCSI path provisioning + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Pending", "Building", "Deleting", "Updating")] + string ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathProperties.json.cs new file mode 100644 index 000000000000..0f231c1e6ad7 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/IscsiPathProperties.json.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// The properties of an iSCSI path resource + public partial class IscsiPathProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new IscsiPathProperties(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. + internal IscsiPathProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} + {_networkBlock = If( json?.PropertyT("networkBlock"), out var __jsonNetworkBlock) ? (string)__jsonNetworkBlock : (string)_networkBlock;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != (((object)this._networkBlock)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._networkBlock.ToString()) : null, "networkBlock" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/LogSpecification.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/LogSpecification.TypeConverter.cs deleted file mode 100644 index 08d9bde9ffed..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/LogSpecification.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class LogSpecificationTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecification ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecification).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return LogSpecification.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return LogSpecification.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return LogSpecification.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/LogSpecification.cs b/src/VMware/VMware.Autorest/generated/api/Models/LogSpecification.cs deleted file mode 100644 index 30de87bba335..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/LogSpecification.cs +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - - /// Specifications of the Log for Azure Monitoring - public partial class LogSpecification : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecification, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecificationInternal - { - - /// Backing field for property. - private string _blobDuration; - - /// Blob duration of the log - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string BlobDuration { get => this._blobDuration; set => this._blobDuration = value; } - - /// Backing field for property. - private string _displayName; - - /// Localized friendly display name of the log - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string DisplayName { get => this._displayName; set => this._displayName = value; } - - /// Backing field for property. - private string _name; - - /// Name of the log - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Creates an new instance. - public LogSpecification() - { - - } - } - /// Specifications of the Log for Azure Monitoring - public partial interface ILogSpecification : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable - { - /// Blob duration of the log - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Blob duration of the log", - SerializedName = @"blobDuration", - PossibleTypes = new [] { typeof(string) })] - string BlobDuration { get; set; } - /// Localized friendly display name of the log - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Localized friendly display name of the log", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - string DisplayName { get; set; } - /// Name of the log - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Name of the log", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - - } - /// Specifications of the Log for Azure Monitoring - internal partial interface ILogSpecificationInternal - - { - /// Blob duration of the log - string BlobDuration { get; set; } - /// Localized friendly display name of the log - string DisplayName { get; set; } - /// Name of the log - string Name { get; set; } - - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ManagementCluster.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ManagementCluster.PowerShell.cs index 5c53ef3821ec..1345c215ff35 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ManagementCluster.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ManagementCluster.PowerShell.cs @@ -111,19 +111,23 @@ internal ManagementCluster(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ClusterSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterSize = (int?) content.GetValueForProperty("ClusterSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).ClusterSize = (int?) content.GetValueForProperty("ClusterSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).ClusterSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("ClusterId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterId = (int?) content.GetValueForProperty("ClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).ClusterId = (int?) content.GetValueForProperty("ClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).ClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Host")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).Host = (System.Collections.Generic.List) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).Host, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).Host = (System.Collections.Generic.List) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).Host, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("VsanDatastoreName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).VsanDatastoreName = (string) content.GetValueForProperty("VsanDatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).VsanDatastoreName, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } @@ -144,19 +148,23 @@ internal ManagementCluster(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("ClusterSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterSize = (int?) content.GetValueForProperty("ClusterSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).ClusterSize = (int?) content.GetValueForProperty("ClusterSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).ClusterSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("ClusterId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterId = (int?) content.GetValueForProperty("ClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).ClusterId = (int?) content.GetValueForProperty("ClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).ClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Host")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).Host = (System.Collections.Generic.List) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).Host, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).Host = (System.Collections.Generic.List) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).Host, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("VsanDatastoreName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).VsanDatastoreName = (string) content.GetValueForProperty("VsanDatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)this).VsanDatastoreName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ManagementCluster.cs b/src/VMware/VMware.Autorest/generated/api/Models/ManagementCluster.cs index a7e8f9d43803..7454b762eb6c 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ManagementCluster.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ManagementCluster.cs @@ -10,66 +10,133 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models /// The properties of a management cluster public partial class ManagementCluster : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementCluster, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IValidates + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterProperties __commonClusterProperties = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CommonClusterProperties(); + + /// Backing field for property. + private int? _clusterId; /// The identity - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public int? ClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).ClusterId; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public int? ClusterId { get => this._clusterId; } + + /// Backing field for property. + private int? _clusterSize; /// The cluster size - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public int? ClusterSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).ClusterSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).ClusterSize = value ?? default(int); } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public int? ClusterSize { get => this._clusterSize; set => this._clusterSize = value; } + + /// Backing field for property. + private System.Collections.Generic.List _host; /// The hosts - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public System.Collections.Generic.List Host { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).Host; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).Host = value ?? null /* arrayOf */; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public System.Collections.Generic.List Host { get => this._host; set => this._host = value; } /// Internal Acessors for ClusterId - int? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal.ClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).ClusterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).ClusterId = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal.ClusterId { get => this._clusterId; set { {_clusterId = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Backing field for property. + private string _provisioningState; /// The state of the cluster provisioning - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)__commonClusterProperties).ProvisioningState; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private string _vsanDatastoreName; + + /// Name of the vsan datastore associated with the cluster + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string VsanDatastoreName { get => this._vsanDatastoreName; set => this._vsanDatastoreName = value; } /// Creates an new instance. public ManagementCluster() { } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__commonClusterProperties), __commonClusterProperties); - await eventListener.AssertObjectIsValid(nameof(__commonClusterProperties), __commonClusterProperties); - } } /// The properties of a management cluster public partial interface IManagementCluster : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterProperties + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { + /// The identity + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The identity", + SerializedName = @"clusterId", + PossibleTypes = new [] { typeof(int) })] + int? ClusterId { get; } + /// The cluster size + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The cluster size", + SerializedName = @"clusterSize", + PossibleTypes = new [] { typeof(int) })] + int? ClusterSize { get; set; } + /// The hosts + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The hosts", + SerializedName = @"hosts", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List Host { get; set; } + /// The state of the cluster provisioning + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The state of the cluster provisioning", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Deleting", "Updating")] + string ProvisioningState { get; } + /// Name of the vsan datastore associated with the cluster + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Name of the vsan datastore associated with the cluster", + SerializedName = @"vsanDatastoreName", + PossibleTypes = new [] { typeof(string) })] + string VsanDatastoreName { get; set; } } /// The properties of a management cluster - internal partial interface IManagementClusterInternal : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal + internal partial interface IManagementClusterInternal + { + /// The identity + int? ClusterId { get; set; } + /// The cluster size + int? ClusterSize { get; set; } + /// The hosts + System.Collections.Generic.List Host { get; set; } + /// The state of the cluster provisioning + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Deleting", "Updating")] + string ProvisioningState { get; set; } + /// Name of the vsan datastore associated with the cluster + string VsanDatastoreName { get; set; } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ManagementCluster.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ManagementCluster.json.cs index 00b76617a6f5..c2f585859f57 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ManagementCluster.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ManagementCluster.json.cs @@ -77,7 +77,11 @@ internal ManagementCluster(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Jso { return; } - __commonClusterProperties = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CommonClusterProperties(json); + {_clusterSize = If( json?.PropertyT("clusterSize"), out var __jsonClusterSize) ? (int?)__jsonClusterSize : _clusterSize;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} + {_clusterId = If( json?.PropertyT("clusterId"), out var __jsonClusterId) ? (int?)__jsonClusterId : _clusterId;} + {_host = If( json?.PropertyT("hosts"), out var __jsonHosts) ? If( __jsonHosts as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _host;} + {_vsanDatastoreName = If( json?.PropertyT("vsanDatastoreName"), out var __jsonVsanDatastoreName) ? (string)__jsonVsanDatastoreName : (string)_vsanDatastoreName;} AfterFromJson(json); } @@ -100,7 +104,25 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - __commonClusterProperties?.ToJson(container, serializationMode); + AddIf( null != this._clusterSize ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber((int)this._clusterSize) : null, "clusterSize" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != this._clusterId ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber((int)this._clusterId) : null, "clusterId" ,container.Add ); + } + if (null != this._host) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._host ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("hosts",__w); + } + AddIf( null != (((object)this._vsanDatastoreName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._vsanDatastoreName.ToString()) : null, "vsanDatastoreName" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/MetricDimension.cs b/src/VMware/VMware.Autorest/generated/api/Models/MetricDimension.cs deleted file mode 100644 index 524d171dcae6..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/MetricDimension.cs +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - - /// Specifications of the Dimension of metrics - public partial class MetricDimension : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimension, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal - { - - /// Backing field for property. - private string _displayName; - - /// Localized friendly display name of the dimension - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string DisplayName { get => this._displayName; set => this._displayName = value; } - - /// Backing field for property. - private string _internalName; - - /// Name of the dimension as it appears in MDM - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string InternalName { get => this._internalName; set => this._internalName = value; } - - /// Backing field for property. - private string _name; - - /// Name of the dimension - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private bool? _toBeExportedForShoebox; - - /// - /// A boolean flag indicating whether this dimension should be included for the shoebox export scenario - /// - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public bool? ToBeExportedForShoebox { get => this._toBeExportedForShoebox; set => this._toBeExportedForShoebox = value; } - - /// Creates an new instance. - public MetricDimension() - { - - } - } - /// Specifications of the Dimension of metrics - public partial interface IMetricDimension : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable - { - /// Localized friendly display name of the dimension - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Localized friendly display name of the dimension", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - string DisplayName { get; set; } - /// Name of the dimension as it appears in MDM - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Name of the dimension as it appears in MDM", - SerializedName = @"internalName", - PossibleTypes = new [] { typeof(string) })] - string InternalName { get; set; } - /// Name of the dimension - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Name of the dimension", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// - /// A boolean flag indicating whether this dimension should be included for the shoebox export scenario - /// - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"A boolean flag indicating whether this dimension should be included for the shoebox export scenario", - SerializedName = @"toBeExportedForShoebox", - PossibleTypes = new [] { typeof(bool) })] - bool? ToBeExportedForShoebox { get; set; } - - } - /// Specifications of the Dimension of metrics - internal partial interface IMetricDimensionInternal - - { - /// Localized friendly display name of the dimension - string DisplayName { get; set; } - /// Name of the dimension as it appears in MDM - string InternalName { get; set; } - /// Name of the dimension - string Name { get; set; } - /// - /// A boolean flag indicating whether this dimension should be included for the shoebox export scenario - /// - bool? ToBeExportedForShoebox { get; set; } - - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/MetricSpecification.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/MetricSpecification.PowerShell.cs deleted file mode 100644 index 92112ce9b65e..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/MetricSpecification.PowerShell.cs +++ /dev/null @@ -1,260 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - - /// Specifications of the Metrics for Azure Monitoring - [System.ComponentModel.TypeConverter(typeof(MetricSpecificationTypeConverter))] - public partial class MetricSpecification - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecification DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new MetricSpecification(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new MetricSpecification(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecification FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal MetricSpecification(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("DisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).DisplayName, global::System.Convert.ToString); - } - if (content.Contains("DisplayDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).DisplayDescription, global::System.Convert.ToString); - } - if (content.Contains("Unit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).Unit = (string) content.GetValueForProperty("Unit",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).Unit, global::System.Convert.ToString); - } - if (content.Contains("Category")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).Category = (string) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).Category, global::System.Convert.ToString); - } - if (content.Contains("AggregationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).AggregationType = (string) content.GetValueForProperty("AggregationType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).AggregationType, global::System.Convert.ToString); - } - if (content.Contains("SupportedAggregationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).SupportedAggregationType = (System.Collections.Generic.List) content.GetValueForProperty("SupportedAggregationType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).SupportedAggregationType, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("SupportedTimeGrainType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).SupportedTimeGrainType = (System.Collections.Generic.List) content.GetValueForProperty("SupportedTimeGrainType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).SupportedTimeGrainType, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("FillGapWithZero")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).FillGapWithZero = (bool?) content.GetValueForProperty("FillGapWithZero",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).FillGapWithZero, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("Dimension")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).Dimension = (System.Collections.Generic.List) content.GetValueForProperty("Dimension",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).Dimension, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.MetricDimensionTypeConverter.ConvertFrom)); - } - if (content.Contains("EnableRegionalMdmAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).EnableRegionalMdmAccount = (string) content.GetValueForProperty("EnableRegionalMdmAccount",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).EnableRegionalMdmAccount, global::System.Convert.ToString); - } - if (content.Contains("SourceMdmAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).SourceMdmAccount = (string) content.GetValueForProperty("SourceMdmAccount",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).SourceMdmAccount, global::System.Convert.ToString); - } - if (content.Contains("SourceMdmNamespace")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).SourceMdmNamespace = (string) content.GetValueForProperty("SourceMdmNamespace",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).SourceMdmNamespace, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal MetricSpecification(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("DisplayName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).DisplayName, global::System.Convert.ToString); - } - if (content.Contains("DisplayDescription")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).DisplayDescription, global::System.Convert.ToString); - } - if (content.Contains("Unit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).Unit = (string) content.GetValueForProperty("Unit",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).Unit, global::System.Convert.ToString); - } - if (content.Contains("Category")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).Category = (string) content.GetValueForProperty("Category",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).Category, global::System.Convert.ToString); - } - if (content.Contains("AggregationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).AggregationType = (string) content.GetValueForProperty("AggregationType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).AggregationType, global::System.Convert.ToString); - } - if (content.Contains("SupportedAggregationType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).SupportedAggregationType = (System.Collections.Generic.List) content.GetValueForProperty("SupportedAggregationType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).SupportedAggregationType, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("SupportedTimeGrainType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).SupportedTimeGrainType = (System.Collections.Generic.List) content.GetValueForProperty("SupportedTimeGrainType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).SupportedTimeGrainType, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("FillGapWithZero")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).FillGapWithZero = (bool?) content.GetValueForProperty("FillGapWithZero",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).FillGapWithZero, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("Dimension")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).Dimension = (System.Collections.Generic.List) content.GetValueForProperty("Dimension",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).Dimension, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.MetricDimensionTypeConverter.ConvertFrom)); - } - if (content.Contains("EnableRegionalMdmAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).EnableRegionalMdmAccount = (string) content.GetValueForProperty("EnableRegionalMdmAccount",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).EnableRegionalMdmAccount, global::System.Convert.ToString); - } - if (content.Contains("SourceMdmAccount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).SourceMdmAccount = (string) content.GetValueForProperty("SourceMdmAccount",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).SourceMdmAccount, global::System.Convert.ToString); - } - if (content.Contains("SourceMdmNamespace")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).SourceMdmNamespace = (string) content.GetValueForProperty("SourceMdmNamespace",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal)this).SourceMdmNamespace, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Specifications of the Metrics for Azure Monitoring - [System.ComponentModel.TypeConverter(typeof(MetricSpecificationTypeConverter))] - public partial interface IMetricSpecification - - { - - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/MetricSpecification.cs b/src/VMware/VMware.Autorest/generated/api/Models/MetricSpecification.cs deleted file mode 100644 index 5dbdd658242d..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/MetricSpecification.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - - /// Specifications of the Metrics for Azure Monitoring - public partial class MetricSpecification : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecification, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecificationInternal - { - - /// Backing field for property. - private string _aggregationType; - - /// - /// Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. - /// - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string AggregationType { get => this._aggregationType; set => this._aggregationType = value; } - - /// Backing field for property. - private string _category; - - /// - /// Name of the metric category that the metric belongs to. A metric can only belong to a single category. - /// - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string Category { get => this._category; set => this._category = value; } - - /// Backing field for property. - private System.Collections.Generic.List _dimension; - - /// Dimensions of the metric - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Dimension { get => this._dimension; set => this._dimension = value; } - - /// Backing field for property. - private string _displayDescription; - - /// Localized friendly description of the metric - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string DisplayDescription { get => this._displayDescription; set => this._displayDescription = value; } - - /// Backing field for property. - private string _displayName; - - /// Localized friendly display name of the metric - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string DisplayName { get => this._displayName; set => this._displayName = value; } - - /// Backing field for property. - private string _enableRegionalMdmAccount; - - /// Whether or not the service is using regional MDM accounts. - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string EnableRegionalMdmAccount { get => this._enableRegionalMdmAccount; set => this._enableRegionalMdmAccount = value; } - - /// Backing field for property. - private bool? _fillGapWithZero; - - /// - /// Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. - /// - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public bool? FillGapWithZero { get => this._fillGapWithZero; set => this._fillGapWithZero = value; } - - /// Backing field for property. - private string _name; - - /// Name of the metric - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string Name { get => this._name; set => this._name = value; } - - /// Backing field for property. - private string _sourceMdmAccount; - - /// The name of the MDM account. - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string SourceMdmAccount { get => this._sourceMdmAccount; set => this._sourceMdmAccount = value; } - - /// Backing field for property. - private string _sourceMdmNamespace; - - /// The name of the MDM namespace. - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string SourceMdmNamespace { get => this._sourceMdmNamespace; set => this._sourceMdmNamespace = value; } - - /// Backing field for property. - private System.Collections.Generic.List _supportedAggregationType; - - /// Supported aggregation types - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List SupportedAggregationType { get => this._supportedAggregationType; set => this._supportedAggregationType = value; } - - /// Backing field for property. - private System.Collections.Generic.List _supportedTimeGrainType; - - /// Supported time grain types - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List SupportedTimeGrainType { get => this._supportedTimeGrainType; set => this._supportedTimeGrainType = value; } - - /// Backing field for property. - private string _unit; - - /// Unit that makes sense for the metric - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string Unit { get => this._unit; set => this._unit = value; } - - /// Creates an new instance. - public MetricSpecification() - { - - } - } - /// Specifications of the Metrics for Azure Monitoring - public partial interface IMetricSpecification : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable - { - /// - /// Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. - /// - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count.", - SerializedName = @"aggregationType", - PossibleTypes = new [] { typeof(string) })] - string AggregationType { get; set; } - /// - /// Name of the metric category that the metric belongs to. A metric can only belong to a single category. - /// - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Name of the metric category that the metric belongs to. A metric can only belong to a single category.", - SerializedName = @"category", - PossibleTypes = new [] { typeof(string) })] - string Category { get; set; } - /// Dimensions of the metric - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Dimensions of the metric", - SerializedName = @"dimensions", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimension) })] - System.Collections.Generic.List Dimension { get; set; } - /// Localized friendly description of the metric - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Localized friendly description of the metric", - SerializedName = @"displayDescription", - PossibleTypes = new [] { typeof(string) })] - string DisplayDescription { get; set; } - /// Localized friendly display name of the metric - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Localized friendly display name of the metric", - SerializedName = @"displayName", - PossibleTypes = new [] { typeof(string) })] - string DisplayName { get; set; } - /// Whether or not the service is using regional MDM accounts. - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Whether or not the service is using regional MDM accounts.", - SerializedName = @"enableRegionalMdmAccount", - PossibleTypes = new [] { typeof(string) })] - string EnableRegionalMdmAccount { get; set; } - /// - /// Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. - /// - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published.", - SerializedName = @"fillGapWithZero", - PossibleTypes = new [] { typeof(bool) })] - bool? FillGapWithZero { get; set; } - /// Name of the metric - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Name of the metric", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; set; } - /// The name of the MDM account. - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The name of the MDM account.", - SerializedName = @"sourceMdmAccount", - PossibleTypes = new [] { typeof(string) })] - string SourceMdmAccount { get; set; } - /// The name of the MDM namespace. - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"The name of the MDM namespace.", - SerializedName = @"sourceMdmNamespace", - PossibleTypes = new [] { typeof(string) })] - string SourceMdmNamespace { get; set; } - /// Supported aggregation types - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Supported aggregation types", - SerializedName = @"supportedAggregationTypes", - PossibleTypes = new [] { typeof(string) })] - System.Collections.Generic.List SupportedAggregationType { get; set; } - /// Supported time grain types - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Supported time grain types", - SerializedName = @"supportedTimeGrainTypes", - PossibleTypes = new [] { typeof(string) })] - System.Collections.Generic.List SupportedTimeGrainType { get; set; } - /// Unit that makes sense for the metric - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Unit that makes sense for the metric", - SerializedName = @"unit", - PossibleTypes = new [] { typeof(string) })] - string Unit { get; set; } - - } - /// Specifications of the Metrics for Azure Monitoring - internal partial interface IMetricSpecificationInternal - - { - /// - /// Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. - /// - string AggregationType { get; set; } - /// - /// Name of the metric category that the metric belongs to. A metric can only belong to a single category. - /// - string Category { get; set; } - /// Dimensions of the metric - System.Collections.Generic.List Dimension { get; set; } - /// Localized friendly description of the metric - string DisplayDescription { get; set; } - /// Localized friendly display name of the metric - string DisplayName { get; set; } - /// Whether or not the service is using regional MDM accounts. - string EnableRegionalMdmAccount { get; set; } - /// - /// Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. - /// - bool? FillGapWithZero { get; set; } - /// Name of the metric - string Name { get; set; } - /// The name of the MDM account. - string SourceMdmAccount { get; set; } - /// The name of the MDM namespace. - string SourceMdmNamespace { get; set; } - /// Supported aggregation types - System.Collections.Generic.List SupportedAggregationType { get; set; } - /// Supported time grain types - System.Collections.Generic.List SupportedTimeGrainType { get; set; } - /// Unit that makes sense for the metric - string Unit { get; set; } - - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/MetricSpecification.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/MetricSpecification.json.cs deleted file mode 100644 index 9911d7975a9a..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/MetricSpecification.json.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - - /// Specifications of the Metrics for Azure Monitoring - public partial class MetricSpecification - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecification. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecification. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecification FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new MetricSpecification(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal MetricSpecification(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)_displayName;} - {_displayDescription = If( json?.PropertyT("displayDescription"), out var __jsonDisplayDescription) ? (string)__jsonDisplayDescription : (string)_displayDescription;} - {_unit = If( json?.PropertyT("unit"), out var __jsonUnit) ? (string)__jsonUnit : (string)_unit;} - {_category = If( json?.PropertyT("category"), out var __jsonCategory) ? (string)__jsonCategory : (string)_category;} - {_aggregationType = If( json?.PropertyT("aggregationType"), out var __jsonAggregationType) ? (string)__jsonAggregationType : (string)_aggregationType;} - {_supportedAggregationType = If( json?.PropertyT("supportedAggregationTypes"), out var __jsonSupportedAggregationTypes) ? If( __jsonSupportedAggregationTypes as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _supportedAggregationType;} - {_supportedTimeGrainType = If( json?.PropertyT("supportedTimeGrainTypes"), out var __jsonSupportedTimeGrainTypes) ? If( __jsonSupportedTimeGrainTypes as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : _supportedTimeGrainType;} - {_fillGapWithZero = If( json?.PropertyT("fillGapWithZero"), out var __jsonFillGapWithZero) ? (bool?)__jsonFillGapWithZero : _fillGapWithZero;} - {_dimension = If( json?.PropertyT("dimensions"), out var __jsonDimensions) ? If( __jsonDimensions as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __l) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimension) (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.MetricDimension.FromJson(__k) )) ))() : null : _dimension;} - {_enableRegionalMdmAccount = If( json?.PropertyT("enableRegionalMdmAccount"), out var __jsonEnableRegionalMdmAccount) ? (string)__jsonEnableRegionalMdmAccount : (string)_enableRegionalMdmAccount;} - {_sourceMdmAccount = If( json?.PropertyT("sourceMdmAccount"), out var __jsonSourceMdmAccount) ? (string)__jsonSourceMdmAccount : (string)_sourceMdmAccount;} - {_sourceMdmNamespace = If( json?.PropertyT("sourceMdmNamespace"), out var __jsonSourceMdmNamespace) ? (string)__jsonSourceMdmNamespace : (string)_sourceMdmNamespace;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); - AddIf( null != (((object)this._displayDescription)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._displayDescription.ToString()) : null, "displayDescription" ,container.Add ); - AddIf( null != (((object)this._unit)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._unit.ToString()) : null, "unit" ,container.Add ); - AddIf( null != (((object)this._category)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._category.ToString()) : null, "category" ,container.Add ); - AddIf( null != (((object)this._aggregationType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._aggregationType.ToString()) : null, "aggregationType" ,container.Add ); - if (null != this._supportedAggregationType) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._supportedAggregationType ) - { - AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); - } - container.Add("supportedAggregationTypes",__w); - } - if (null != this._supportedTimeGrainType) - { - var __r = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __s in this._supportedTimeGrainType ) - { - AddIf(null != (((object)__s)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(__s.ToString()) : null ,__r.Add); - } - container.Add("supportedTimeGrainTypes",__r); - } - AddIf( null != this._fillGapWithZero ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonBoolean((bool)this._fillGapWithZero) : null, "fillGapWithZero" ,container.Add ); - if (null != this._dimension) - { - var __m = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __n in this._dimension ) - { - AddIf(__n?.ToJson(null, serializationMode) ,__m.Add); - } - container.Add("dimensions",__m); - } - AddIf( null != (((object)this._enableRegionalMdmAccount)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._enableRegionalMdmAccount.ToString()) : null, "enableRegionalMdmAccount" ,container.Add ); - AddIf( null != (((object)this._sourceMdmAccount)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._sourceMdmAccount.ToString()) : null, "sourceMdmAccount" ,container.Add ); - AddIf( null != (((object)this._sourceMdmNamespace)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._sourceMdmNamespace.ToString()) : null, "sourceMdmNamespace" ,container.Add ); - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Operation.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/Operation.PowerShell.cs index b266f2a567bf..5f37b5d00dc4 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Operation.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Operation.PowerShell.cs @@ -7,7 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A REST API operation + /// + /// Details of a REST API operation, returned from the Resource Provider Operations API + /// [System.ComponentModel.TypeConverter(typeof(OperationTypeConverter))] public partial class Operation { @@ -113,10 +115,6 @@ internal Operation(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationDisplayTypeConverter.ConvertFrom); } - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationPropertiesTypeConverter.ConvertFrom); - } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).Name, global::System.Convert.ToString); @@ -129,9 +127,9 @@ internal Operation(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).Origin, global::System.Convert.ToString); } - if (content.Contains("ServiceSpecification")) + if (content.Contains("ActionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ServiceSpecificationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).ActionType, global::System.Convert.ToString); } if (content.Contains("DisplayProvider")) { @@ -149,14 +147,6 @@ internal Operation(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); } - if (content.Contains("ServiceSpecificationLogSpecification")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).ServiceSpecificationLogSpecification = (System.Collections.Generic.List) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.LogSpecificationTypeConverter.ConvertFrom)); - } - if (content.Contains("ServiceSpecificationMetricSpecification")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).ServiceSpecificationMetricSpecification = (System.Collections.Generic.List) content.GetValueForProperty("ServiceSpecificationMetricSpecification",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).ServiceSpecificationMetricSpecification, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.MetricSpecificationTypeConverter.ConvertFrom)); - } AfterDeserializeDictionary(content); } @@ -178,10 +168,6 @@ internal Operation(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationDisplayTypeConverter.ConvertFrom); } - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationPropertiesTypeConverter.ConvertFrom); - } if (content.Contains("Name")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).Name, global::System.Convert.ToString); @@ -194,9 +180,9 @@ internal Operation(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).Origin, global::System.Convert.ToString); } - if (content.Contains("ServiceSpecification")) + if (content.Contains("ActionType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ServiceSpecificationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).ActionType = (string) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).ActionType, global::System.Convert.ToString); } if (content.Contains("DisplayProvider")) { @@ -214,14 +200,6 @@ internal Operation(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); } - if (content.Contains("ServiceSpecificationLogSpecification")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).ServiceSpecificationLogSpecification = (System.Collections.Generic.List) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.LogSpecificationTypeConverter.ConvertFrom)); - } - if (content.Contains("ServiceSpecificationMetricSpecification")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).ServiceSpecificationMetricSpecification = (System.Collections.Generic.List) content.GetValueForProperty("ServiceSpecificationMetricSpecification",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal)this).ServiceSpecificationMetricSpecification, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.MetricSpecificationTypeConverter.ConvertFrom)); - } AfterDeserializePSObject(content); } @@ -242,7 +220,7 @@ public override string ToString() return ToJsonString(); } } - /// A REST API operation + /// Details of a REST API operation, returned from the Resource Provider Operations API [System.ComponentModel.TypeConverter(typeof(OperationTypeConverter))] public partial interface IOperation diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Operation.cs b/src/VMware/VMware.Autorest/generated/api/Models/Operation.cs index 8d4f816954a0..ad21d10c245a 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Operation.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Operation.cs @@ -7,41 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A REST API operation + /// + /// Details of a REST API operation, returned from the Resource Provider Operations API + /// public partial class Operation : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperation, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal { + /// Backing field for property. + private string _actionType; + + /// + /// Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string ActionType { get => this._actionType; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationDisplay _display; - /// Contains the localized display information for this operation + /// Localized display information for this particular operation. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationDisplay()); } + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationDisplay()); set => this._display = value; } - /// Localized friendly description for the operation + /// + /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationDisplayInternal)Display).Description; } - /// Localized friendly name for the operation + /// + /// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", + /// "Restart Virtual Machine". + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationDisplayInternal)Display).Operation; } - /// Localized friendly form of the resource provider name + /// + /// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationDisplayInternal)Display).Provider; } - /// Localized friendly form of the resource type related to this operation + /// + /// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationDisplayInternal)Display).Resource; } /// Backing field for property. private bool? _isDataAction; - /// Gets or sets a value indicating whether the operation is a data action or not + /// + /// Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane + /// operations. + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public bool? IsDataAction { get => this._isDataAction; set => this._isDataAction = value; } + public bool? IsDataAction { get => this._isDataAction; } + + /// Internal Acessors for ActionType + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal.ActionType { get => this._actionType; set { {_actionType = value;} } } /// Internal Acessors for Display Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationDisplay()); set { {_display = value;} } } @@ -58,43 +84,34 @@ public partial class Operation : /// Internal Acessors for DisplayResource string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationDisplayInternal)Display).Resource = value; } + /// Internal Acessors for IsDataAction + bool? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal.IsDataAction { get => this._isDataAction; set { {_isDataAction = value;} } } + /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal.Name { get => this._name; set { {_name = value;} } } - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationProperties()); set { {_property = value;} } } - - /// Internal Acessors for ServiceSpecification - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal.ServiceSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)Property).ServiceSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)Property).ServiceSpecification = value; } + /// Internal Acessors for Origin + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationInternal.Origin { get => this._origin; set { {_origin = value;} } } /// Backing field for property. private string _name; - /// Name of the operation being performed on this object + /// + /// The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", + /// "Microsoft.Compute/virtualMachines/capture/action" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Name { get => this._name; } /// Backing field for property. private string _origin; - /// Origin of the operation - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string Origin { get => this._origin; set => this._origin = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationProperties _property; - - /// Properties of the operation + /// + /// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is + /// "user,system" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationProperties()); set => this._property = value; } - - /// Specifications of the Log for Azure Monitoring - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public System.Collections.Generic.List ServiceSpecificationLogSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)Property).ServiceSpecificationLogSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)Property).ServiceSpecificationLogSpecification = value ?? null /* arrayOf */; } - - /// Specifications of the Metrics for Azure Monitoring - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public System.Collections.Generic.List ServiceSpecificationMetricSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)Property).ServiceSpecificationMetricSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)Property).ServiceSpecificationMetricSpecification = value ?? null /* arrayOf */; } + public string Origin { get => this._origin; } /// Creates an new instance. public Operation() @@ -102,139 +119,166 @@ public Operation() } } - /// A REST API operation + /// Details of a REST API operation, returned from the Resource Provider Operations API public partial interface IOperation : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// Localized friendly description for the operation + /// + /// Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Enum. Indicates the action type. ""Internal"" refers to actions that are for internal only APIs.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Internal")] + string ActionType { get; } + /// + /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Localized friendly description for the operation", + Description = @"The short, localized friendly description of the operation; suitable for tool tips and detailed views.", SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string DisplayDescription { get; } - /// Localized friendly name for the operation + /// + /// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", + /// "Restart Virtual Machine". + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Localized friendly name for the operation", + Description = @"The concise, localized friendly name for the operation; suitable for dropdowns. E.g. ""Create or Update Virtual Machine"", ""Restart Virtual Machine"".", SerializedName = @"operation", PossibleTypes = new [] { typeof(string) })] string DisplayOperation { get; } - /// Localized friendly form of the resource provider name + /// + /// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Localized friendly form of the resource provider name", + Description = @"The localized friendly form of the resource provider name, e.g. ""Microsoft Monitoring Insights"" or ""Microsoft Compute"".", SerializedName = @"provider", PossibleTypes = new [] { typeof(string) })] string DisplayProvider { get; } - /// Localized friendly form of the resource type related to this operation + /// + /// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Localized friendly form of the resource type related to this operation", + Description = @"The localized friendly name of the resource type related to this operation. E.g. ""Virtual Machines"" or ""Job Schedule Collections"".", SerializedName = @"resource", PossibleTypes = new [] { typeof(string) })] string DisplayResource { get; } - /// Gets or sets a value indicating whether the operation is a data action or not + /// + /// Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane + /// operations. + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = false, + ReadOnly = true, Read = true, - Create = true, - Update = true, - Description = @"Gets or sets a value indicating whether the operation is a data action or not", + Create = false, + Update = false, + Description = @"Whether the operation applies to data-plane. This is ""true"" for data-plane operations and ""false"" for ARM/control-plane operations.", SerializedName = @"isDataAction", PossibleTypes = new [] { typeof(bool) })] - bool? IsDataAction { get; set; } - /// Name of the operation being performed on this object + bool? IsDataAction { get; } + /// + /// The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", + /// "Microsoft.Compute/virtualMachines/capture/action" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Name of the operation being performed on this object", + Description = @"The name of the operation, as per Resource-Based Access Control (RBAC). Examples: ""Microsoft.Compute/virtualMachines/write"", ""Microsoft.Compute/virtualMachines/capture/action""", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; } - /// Origin of the operation + /// + /// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is + /// "user,system" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = false, + ReadOnly = true, Read = true, - Create = true, - Update = true, - Description = @"Origin of the operation", + Create = false, + Update = false, + Description = @"The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is ""user,system""", SerializedName = @"origin", PossibleTypes = new [] { typeof(string) })] - string Origin { get; set; } - /// Specifications of the Log for Azure Monitoring - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Specifications of the Log for Azure Monitoring", - SerializedName = @"logSpecifications", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecification) })] - System.Collections.Generic.List ServiceSpecificationLogSpecification { get; set; } - /// Specifications of the Metrics for Azure Monitoring - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Specifications of the Metrics for Azure Monitoring", - SerializedName = @"metricSpecifications", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecification) })] - System.Collections.Generic.List ServiceSpecificationMetricSpecification { get; set; } + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("user", "system", "user,system")] + string Origin { get; } } - /// A REST API operation + /// Details of a REST API operation, returned from the Resource Provider Operations API internal partial interface IOperationInternal { - /// Contains the localized display information for this operation + /// + /// Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Internal")] + string ActionType { get; set; } + /// Localized display information for this particular operation. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationDisplay Display { get; set; } - /// Localized friendly description for the operation + /// + /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. + /// string DisplayDescription { get; set; } - /// Localized friendly name for the operation + /// + /// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", + /// "Restart Virtual Machine". + /// string DisplayOperation { get; set; } - /// Localized friendly form of the resource provider name + /// + /// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + /// string DisplayProvider { get; set; } - /// Localized friendly form of the resource type related to this operation + /// + /// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + /// string DisplayResource { get; set; } - /// Gets or sets a value indicating whether the operation is a data action or not + /// + /// Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane + /// operations. + /// bool? IsDataAction { get; set; } - /// Name of the operation being performed on this object + /// + /// The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", + /// "Microsoft.Compute/virtualMachines/capture/action" + /// string Name { get; set; } - /// Origin of the operation + /// + /// The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is + /// "user,system" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("user", "system", "user,system")] string Origin { get; set; } - /// Properties of the operation - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationProperties Property { get; set; } - /// Service specifications of the operation - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification ServiceSpecification { get; set; } - /// Specifications of the Log for Azure Monitoring - System.Collections.Generic.List ServiceSpecificationLogSpecification { get; set; } - /// Specifications of the Metrics for Azure Monitoring - System.Collections.Generic.List ServiceSpecificationMetricSpecification { get; set; } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Operation.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/Operation.json.cs index 9899ad2f0b95..a82ee016119d 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Operation.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Operation.json.cs @@ -7,7 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A REST API operation + /// + /// Details of a REST API operation, returned from the Resource Provider Operations API + /// public partial class Operation { @@ -76,10 +78,10 @@ internal Operation(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonOb return; } {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationDisplay.FromJson(__jsonDisplay) : _display;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationProperties.FromJson(__jsonProperties) : _property;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} {_isDataAction = If( json?.PropertyT("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : _isDataAction;} {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)_origin;} + {_actionType = If( json?.PropertyT("actionType"), out var __jsonActionType) ? (string)__jsonActionType : (string)_actionType;} AfterFromJson(json); } @@ -102,17 +104,23 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } + AddIf( null != this._display ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._display.ToJson(null,serializationMode) : null, "display" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { - AddIf( null != this._display ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._display.ToJson(null,serializationMode) : null, "display" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); } - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != this._isDataAction ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonBoolean((bool)this._isDataAction) : null, "isDataAction" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._origin)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._origin.ToString()) : null, "origin" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._actionType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._actionType.ToString()) : null, "actionType" ,container.Add ); } - AddIf( null != this._isDataAction ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonBoolean((bool)this._isDataAction) : null, "isDataAction" ,container.Add ); - AddIf( null != (((object)this._origin)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._origin.ToString()) : null, "origin" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/OperationDisplay.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/OperationDisplay.PowerShell.cs index 68fc85c266cd..81bcec950695 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/OperationDisplay.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/OperationDisplay.PowerShell.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// Contains the localized display information for this operation + /// Localized display information for this particular operation. [System.ComponentModel.TypeConverter(typeof(OperationDisplayTypeConverter))] public partial class OperationDisplay { @@ -178,7 +178,7 @@ public override string ToString() return ToJsonString(); } } - /// Contains the localized display information for this operation + /// Localized display information for this particular operation. [System.ComponentModel.TypeConverter(typeof(OperationDisplayTypeConverter))] public partial interface IOperationDisplay diff --git a/src/VMware/VMware.Autorest/generated/api/Models/OperationDisplay.cs b/src/VMware/VMware.Autorest/generated/api/Models/OperationDisplay.cs index f1a42d274ec6..ed6cf7421a56 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/OperationDisplay.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/OperationDisplay.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Contains the localized display information for this operation + /// Localized display information for this particular operation. public partial class OperationDisplay : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationDisplay, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationDisplayInternal @@ -16,7 +16,9 @@ public partial class OperationDisplay : /// Backing field for property. private string _description; - /// Localized friendly description for the operation + /// + /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Description { get => this._description; } @@ -35,21 +37,28 @@ public partial class OperationDisplay : /// Backing field for property. private string _operation; - /// Localized friendly name for the operation + /// + /// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", + /// "Restart Virtual Machine". + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Operation { get => this._operation; } /// Backing field for property. private string _provider; - /// Localized friendly form of the resource provider name + /// + /// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Provider { get => this._provider; } /// Backing field for property. private string _resource; - /// Localized friendly form of the resource type related to this operation + /// + /// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Resource { get => this._resource; } @@ -59,67 +68,85 @@ public OperationDisplay() } } - /// Contains the localized display information for this operation + /// Localized display information for this particular operation. public partial interface IOperationDisplay : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// Localized friendly description for the operation + /// + /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Localized friendly description for the operation", + Description = @"The short, localized friendly description of the operation; suitable for tool tips and detailed views.", SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string Description { get; } - /// Localized friendly name for the operation + /// + /// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", + /// "Restart Virtual Machine". + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Localized friendly name for the operation", + Description = @"The concise, localized friendly name for the operation; suitable for dropdowns. E.g. ""Create or Update Virtual Machine"", ""Restart Virtual Machine"".", SerializedName = @"operation", PossibleTypes = new [] { typeof(string) })] string Operation { get; } - /// Localized friendly form of the resource provider name + /// + /// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Localized friendly form of the resource provider name", + Description = @"The localized friendly form of the resource provider name, e.g. ""Microsoft Monitoring Insights"" or ""Microsoft Compute"".", SerializedName = @"provider", PossibleTypes = new [] { typeof(string) })] string Provider { get; } - /// Localized friendly form of the resource type related to this operation + /// + /// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Localized friendly form of the resource type related to this operation", + Description = @"The localized friendly name of the resource type related to this operation. E.g. ""Virtual Machines"" or ""Job Schedule Collections"".", SerializedName = @"resource", PossibleTypes = new [] { typeof(string) })] string Resource { get; } } - /// Contains the localized display information for this operation + /// Localized display information for this particular operation. internal partial interface IOperationDisplayInternal { - /// Localized friendly description for the operation + /// + /// The short, localized friendly description of the operation; suitable for tool tips and detailed views. + /// string Description { get; set; } - /// Localized friendly name for the operation + /// + /// The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", + /// "Restart Virtual Machine". + /// string Operation { get; set; } - /// Localized friendly form of the resource provider name + /// + /// The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + /// string Provider { get; set; } - /// Localized friendly form of the resource type related to this operation + /// + /// The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + /// string Resource { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/OperationDisplay.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/OperationDisplay.json.cs index 1c05ac2ebcc8..5aae0f15a58a 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/OperationDisplay.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/OperationDisplay.json.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Contains the localized display information for this operation + /// Localized display information for this particular operation. public partial class OperationDisplay { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/OperationList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/OperationList.TypeConverter.cs deleted file mode 100644 index 0a0c6fee8515..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/OperationList.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class OperationListTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationList ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationList).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return OperationList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return OperationList.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return OperationList.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/OperationList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/OperationListResult.PowerShell.cs similarity index 70% rename from src/VMware/VMware.Autorest/generated/api/Models/OperationList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/OperationListResult.PowerShell.cs index f21e0ff67267..aebeffb55e22 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/OperationList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/OperationListResult.PowerShell.cs @@ -7,9 +7,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// Pageable list of operations - [System.ComponentModel.TypeConverter(typeof(OperationListTypeConverter))] - public partial class OperationList + /// + /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + /// results. + /// + [System.ComponentModel.TypeConverter(typeof(OperationListResultTypeConverter))] + public partial class OperationListResult { /// @@ -63,44 +66,44 @@ public partial class OperationList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new OperationList(content); + return new OperationListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new OperationList(content); + return new OperationListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal OperationList(global::System.Collections.IDictionary content) + internal OperationListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -111,21 +114,21 @@ internal OperationList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal OperationList(global::System.Management.Automation.PSObject content) + internal OperationListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -136,11 +139,11 @@ internal OperationList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -162,9 +165,10 @@ public override string ToString() return ToJsonString(); } } - /// Pageable list of operations - [System.ComponentModel.TypeConverter(typeof(OperationListTypeConverter))] - public partial interface IOperationList + /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + /// results. + [System.ComponentModel.TypeConverter(typeof(OperationListResultTypeConverter))] + public partial interface IOperationListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/OperationListResult.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/OperationListResult.TypeConverter.cs new file mode 100644 index 000000000000..388a3cc727f1 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/OperationListResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class OperationListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return OperationListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return OperationListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return OperationListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/OperationList.cs b/src/VMware/VMware.Autorest/generated/api/Models/OperationListResult.cs similarity index 60% rename from src/VMware/VMware.Autorest/generated/api/Models/OperationList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/OperationListResult.cs index 745b680fa702..5c07e67fb760 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/OperationList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/OperationListResult.cs @@ -7,73 +7,78 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Pageable list of operations - public partial class OperationList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListInternal + /// + /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + /// results. + /// + public partial class OperationListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListInternal.Value { get => this._value; set { {_value = value;} } } + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// URL to get the next set of operation list results (if there are any). [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string NextLink { get => this._nextLink; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of operations + /// List of operations supported by the resource provider [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public System.Collections.Generic.List Value { get => this._value; } - /// Creates an new instance. - public OperationList() + /// Creates an new instance. + public OperationListResult() { } } - /// Pageable list of operations - public partial interface IOperationList : + /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + /// results. + public partial interface IOperationListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// URL to get the next set of operation list results (if there are any). [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"URL to get the next page if any", + Description = @"URL to get the next set of operation list results (if there are any).", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] string NextLink { get; } - /// List of operations + /// List of operations supported by the resource provider [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"List of operations", + Description = @"List of operations supported by the resource provider", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperation) })] System.Collections.Generic.List Value { get; } } - /// Pageable list of operations - internal partial interface IOperationListInternal + /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + /// results. + internal partial interface IOperationListResultInternal { - /// URL to get the next page if any + /// URL to get the next set of operation list results (if there are any). string NextLink { get; set; } - /// List of operations + /// List of operations supported by the resource provider System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/OperationList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/OperationListResult.json.cs similarity index 87% rename from src/VMware/VMware.Autorest/generated/api/Models/OperationList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/OperationListResult.json.cs index 5b5a840f481b..e41e420d0804 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/OperationList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/OperationListResult.json.cs @@ -7,8 +7,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Pageable list of operations - public partial class OperationList + /// + /// A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of + /// results. + /// + public partial class OperationListResult { /// @@ -54,20 +57,22 @@ public partial class OperationList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResult. /// /// a to deserialize from. - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationList. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new OperationList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new OperationListResult(json) : null; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal OperationList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal OperationListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -81,13 +86,13 @@ internal OperationList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.Js } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/OperationProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/OperationProperties.cs deleted file mode 100644 index 126a551782f1..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/OperationProperties.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - - /// Extra Operation properties - public partial class OperationProperties : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationProperties, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal - { - - /// Internal Acessors for ServiceSpecification - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal.ServiceSpecification { get => (this._serviceSpecification = this._serviceSpecification ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ServiceSpecification()); set { {_serviceSpecification = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification _serviceSpecification; - - /// Service specifications of the operation - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification ServiceSpecification { get => (this._serviceSpecification = this._serviceSpecification ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ServiceSpecification()); set => this._serviceSpecification = value; } - - /// Specifications of the Log for Azure Monitoring - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public System.Collections.Generic.List ServiceSpecificationLogSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecificationInternal)ServiceSpecification).LogSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecificationInternal)ServiceSpecification).LogSpecification = value ?? null /* arrayOf */; } - - /// Specifications of the Metrics for Azure Monitoring - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public System.Collections.Generic.List ServiceSpecificationMetricSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecificationInternal)ServiceSpecification).MetricSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecificationInternal)ServiceSpecification).MetricSpecification = value ?? null /* arrayOf */; } - - /// Creates an new instance. - public OperationProperties() - { - - } - } - /// Extra Operation properties - public partial interface IOperationProperties : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable - { - /// Specifications of the Log for Azure Monitoring - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Specifications of the Log for Azure Monitoring", - SerializedName = @"logSpecifications", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecification) })] - System.Collections.Generic.List ServiceSpecificationLogSpecification { get; set; } - /// Specifications of the Metrics for Azure Monitoring - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Specifications of the Metrics for Azure Monitoring", - SerializedName = @"metricSpecifications", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecification) })] - System.Collections.Generic.List ServiceSpecificationMetricSpecification { get; set; } - - } - /// Extra Operation properties - internal partial interface IOperationPropertiesInternal - - { - /// Service specifications of the operation - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification ServiceSpecification { get; set; } - /// Specifications of the Log for Azure Monitoring - System.Collections.Generic.List ServiceSpecificationLogSpecification { get; set; } - /// Specifications of the Metrics for Azure Monitoring - System.Collections.Generic.List ServiceSpecificationMetricSpecification { get; set; } - - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPoliciesList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPoliciesList.PowerShell.cs deleted file mode 100644 index 5b03de24a0ad..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPoliciesList.PowerShell.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - - /// Represents list of placement policies - [System.ComponentModel.TypeConverter(typeof(PlacementPoliciesListTypeConverter))] - public partial class PlacementPoliciesList - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesList DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PlacementPoliciesList(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PlacementPoliciesList(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal PlacementPoliciesList(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicyTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesListInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal PlacementPoliciesList(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicyTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesListInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Represents list of placement policies - [System.ComponentModel.TypeConverter(typeof(PlacementPoliciesListTypeConverter))] - public partial interface IPlacementPoliciesList - - { - - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPoliciesList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPoliciesList.TypeConverter.cs deleted file mode 100644 index 6e74aa17f77c..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPoliciesList.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class PlacementPoliciesListTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesList ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesList).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return PlacementPoliciesList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return PlacementPoliciesList.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return PlacementPoliciesList.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicy.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicy.PowerShell.cs index 4447b03c94f9..a00c74101c7c 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicy.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicy.PowerShell.cs @@ -113,6 +113,34 @@ internal PlacementPolicy(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicyPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -146,6 +174,34 @@ internal PlacementPolicy(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicyPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicy.cs b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicy.cs index 6e921aeabeb8..6cbfca10a4d9 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicy.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicy.cs @@ -14,31 +14,36 @@ public partial class PlacementPolicy : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(); - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties _property; - /// placement policy properties + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicyProperties()); set => this._property = value; } @@ -46,9 +51,41 @@ public partial class PlacementPolicy : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } /// Creates an new instance. public PlacementPolicy() @@ -64,23 +101,23 @@ public PlacementPolicy() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + await eventListener.AssertNotNull(nameof(__proxyResource), __proxyResource); + await eventListener.AssertObjectIsValid(nameof(__proxyResource), __proxyResource); } } /// A vSphere Distributed Resource Scheduler (DRS) placement policy public partial interface IPlacementPolicy : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource { - /// placement policy properties + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, - Update = true, - Description = @"placement policy properties", + Update = false, + Description = @"The resource-specific properties for this resource.", SerializedName = @"properties", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties) })] Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties Property { get; set; } @@ -88,9 +125,9 @@ public partial interface IPlacementPolicy : } /// A vSphere Distributed Resource Scheduler (DRS) placement policy internal partial interface IPlacementPolicyInternal : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResourceInternal { - /// placement policy properties + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties Property { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicy.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicy.json.cs index f8ecdd6434c9..9b2237e6499e 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicy.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicy.json.cs @@ -77,7 +77,7 @@ internal PlacementPolicy(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json. { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(json); + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(json); {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicyProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } @@ -101,8 +101,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - __resource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + __proxyResource?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyListResult.PowerShell.cs similarity index 75% rename from src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyListResult.PowerShell.cs index 0b0c18b1fcb9..d2a8baa10025 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A paged list of global reach connections - [System.ComponentModel.TypeConverter(typeof(GlobalReachConnectionListTypeConverter))] - public partial class GlobalReachConnectionList + /// The response of a PlacementPolicy list operation. + [System.ComponentModel.TypeConverter(typeof(PlacementPolicyListResultTypeConverter))] + public partial class PlacementPolicyListResult { /// @@ -63,44 +63,44 @@ public partial class GlobalReachConnectionList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new GlobalReachConnectionList(content); + return new PlacementPolicyListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new GlobalReachConnectionList(content); + return new PlacementPolicyListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal GlobalReachConnectionList(global::System.Collections.IDictionary content) + internal PlacementPolicyListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -111,21 +111,21 @@ internal GlobalReachConnectionList(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnectionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicyTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal GlobalReachConnectionList(global::System.Management.Automation.PSObject content) + internal PlacementPolicyListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -136,11 +136,11 @@ internal GlobalReachConnectionList(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnectionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicyTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -162,9 +162,9 @@ public override string ToString() return ToJsonString(); } } - /// A paged list of global reach connections - [System.ComponentModel.TypeConverter(typeof(GlobalReachConnectionListTypeConverter))] - public partial interface IGlobalReachConnectionList + /// The response of a PlacementPolicy list operation. + [System.ComponentModel.TypeConverter(typeof(PlacementPolicyListResultTypeConverter))] + public partial interface IPlacementPolicyListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyListResult.TypeConverter.cs similarity index 88% rename from src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyListResult.TypeConverter.cs index df6cd51e4ae8..b8aff5ca0eec 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/GlobalReachConnectionList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyListResult.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class GlobalReachConnectionListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class PlacementPolicyListResultTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class GlobalReachConnectionListTypeConverter : global::System.Man public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResult).IsAssignableFrom(type)) { return sourceValue; } try { - return GlobalReachConnectionList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return PlacementPolicyListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConne } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return GlobalReachConnectionList.DeserializeFromPSObject(sourceValue); + return PlacementPolicyListResult.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return GlobalReachConnectionList.DeserializeFromDictionary(sourceValue); + return PlacementPolicyListResult.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPoliciesList.cs b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyListResult.cs similarity index 53% rename from src/VMware/VMware.Autorest/generated/api/Models/PlacementPoliciesList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyListResult.cs index c2c3a3181e5b..4b7ea1ecd9db 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPoliciesList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Represents list of placement policies - public partial class PlacementPoliciesList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesListInternal + /// The response of a PlacementPolicy list operation. + public partial class PlacementPolicyListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on the page + /// The PlacementPolicy items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public PlacementPoliciesList() + /// Creates an new instance. + public PlacementPolicyListResult() { } } - /// Represents list of placement policies - public partial interface IPlacementPoliciesList : + /// The response of a PlacementPolicy list operation. + public partial interface IPlacementPolicyListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on the page + string NextLink { get; set; } + /// The PlacementPolicy items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on the page", + Create = true, + Update = true, + Description = @"The PlacementPolicy items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// Represents list of placement policies - internal partial interface IPlacementPoliciesListInternal + /// The response of a PlacementPolicy list operation. + internal partial interface IPlacementPolicyListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on the page + /// The PlacementPolicy items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPoliciesList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyListResult.json.cs similarity index 79% rename from src/VMware/VMware.Autorest/generated/api/Models/PlacementPoliciesList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyListResult.json.cs index 13ded62cfe01..db4e81ebb430 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPoliciesList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Represents list of placement policies - public partial class PlacementPoliciesList + /// The response of a PlacementPolicy list operation. + public partial class PlacementPolicyListResult { /// @@ -54,22 +54,22 @@ public partial class PlacementPoliciesList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new PlacementPoliciesList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new PlacementPolicyListResult(json) : null; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal PlacementPoliciesList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal PlacementPolicyListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -83,13 +83,13 @@ internal PlacementPoliciesList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -101,22 +101,16 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyProperties.cs index 5eb23ca6dfa4..c37d8fd54a7b 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyProperties.cs @@ -40,7 +40,7 @@ public partial class PlacementPolicyProperties : /// Backing field for property. private string _type; - /// placement policy type + /// Placement Policy type [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Type { get => this._type; set => this._type = value; } @@ -75,7 +75,7 @@ public partial interface IPlacementPolicyProperties : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// Whether the placement policy is enabled or disabled [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -89,14 +89,14 @@ public partial interface IPlacementPolicyProperties : PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] string State { get; set; } - /// placement policy type + /// Placement Policy type [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"placement policy type", + Description = @"Placement Policy type", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("VmVm", "VmHost")] @@ -110,12 +110,12 @@ internal partial interface IPlacementPolicyPropertiesInternal /// Display name of the placement policy string DisplayName { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// Whether the placement policy is enabled or disabled [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] string State { get; set; } - /// placement policy type + /// Placement Policy type [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("VmVm", "VmHost")] string Type { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyProperties.json.cs index 2dd7eb668a26..1708022603c6 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyProperties.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PlacementPolicyProperties.json.cs @@ -72,14 +72,14 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyP switch ( json.StringProperty("type") ) { - case "VmVm": - { - return new VMPlacementPolicyProperties(json); - } case "VmHost": { return new VMHostPlacementPolicyProperties(json); } + case "VmVm": + { + return new VMPlacementPolicyProperties(json); + } } return new PlacementPolicyProperties(json); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.PowerShell.cs index de48c6b2b1c9..f9744171da38 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.PowerShell.cs @@ -109,17 +109,45 @@ internal PrivateCloud(global::System.Collections.IDictionary content) return; } // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudPropertiesTypeConverter.ConvertFrom); + } if (content.Contains("Sku")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SkuTypeConverter.ConvertFrom); } - if (content.Contains("Property")) + if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemAssignedServiceIdentityTypeConverter.ConvertFrom); } - if (content.Contains("Identity")) + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { @@ -133,17 +161,13 @@ internal PrivateCloud(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("SkuName")) + if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ManagementCluster")) { @@ -161,14 +185,34 @@ internal PrivateCloud(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Endpoint = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpoints) content.GetValueForProperty("Endpoint",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Endpoint, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.EndpointsTypeConverter.ConvertFrom); } - if (content.Contains("AvailabilityStrategy")) + if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).AvailabilityStrategy = (string) content.GetValueForProperty("AvailabilityStrategy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).AvailabilityStrategy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("SkuTier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuTier, global::System.Convert.ToString); + } + if (content.Contains("SkuSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuSize, global::System.Convert.ToString); + } + if (content.Contains("SkuFamily")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuCapacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Availability")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Availability = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties) content.GetValueForProperty("Availability",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Availability, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AvailabilityPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SecondaryCircuit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SecondaryCircuit = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuit) content.GetValueForProperty("SecondaryCircuit",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SecondaryCircuit, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CircuitTypeConverter.ConvertFrom); + } if (content.Contains("Internet")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Internet = (string) content.GetValueForProperty("Internet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Internet, global::System.Convert.ToString); @@ -181,10 +225,6 @@ internal PrivateCloud(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ExtendedNetworkBlock = (System.Collections.Generic.List) content.GetValueForProperty("ExtendedNetworkBlock",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ExtendedNetworkBlock, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } - if (content.Contains("SecondaryCircuit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SecondaryCircuit = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuit) content.GetValueForProperty("SecondaryCircuit",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SecondaryCircuit, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CircuitTypeConverter.ConvertFrom); - } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ProvisioningState, global::System.Convert.ToString); @@ -207,11 +247,11 @@ internal PrivateCloud(global::System.Collections.IDictionary content) } if (content.Contains("VcenterPassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VcenterPassword = (string) content.GetValueForProperty("VcenterPassword",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VcenterPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VcenterPassword = (System.Security.SecureString) content.GetValueForProperty("VcenterPassword",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VcenterPassword, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("NsxtPassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).NsxtPassword = (string) content.GetValueForProperty("NsxtPassword",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).NsxtPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).NsxtPassword = (System.Security.SecureString) content.GetValueForProperty("NsxtPassword",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).NsxtPassword, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("VcenterCertificateThumbprint")) { @@ -229,6 +269,22 @@ internal PrivateCloud(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).NsxPublicIPQuotaRaised = (string) content.GetValueForProperty("NsxPublicIPQuotaRaised",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).NsxPublicIPQuotaRaised, global::System.Convert.ToString); } + if (content.Contains("VirtualNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VirtualNetworkId, global::System.Convert.ToString); + } + if (content.Contains("DnsZoneType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).DnsZoneType = (string) content.GetValueForProperty("DnsZoneType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).DnsZoneType, global::System.Convert.ToString); + } + if (content.Contains("ManagementClusterHost")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ManagementClusterHost = (System.Collections.Generic.List) content.GetValueForProperty("ManagementClusterHost",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("AvailabilityStrategy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).AvailabilityStrategy = (string) content.GetValueForProperty("AvailabilityStrategy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).AvailabilityStrategy, global::System.Convert.ToString); + } if (content.Contains("CircuitPrimarySubnet")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).CircuitPrimarySubnet = (string) content.GetValueForProperty("CircuitPrimarySubnet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).CircuitPrimarySubnet, global::System.Convert.ToString); @@ -245,6 +301,10 @@ internal PrivateCloud(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointVcsa = (string) content.GetValueForProperty("EndpointVcsa",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointVcsa, global::System.Convert.ToString); } + if (content.Contains("EndpointVcenterIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointVcenterIP = (string) content.GetValueForProperty("EndpointVcenterIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointVcenterIP, global::System.Convert.ToString); + } if (content.Contains("IdentityPrincipalId")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).IdentityPrincipalId, global::System.Convert.ToString); @@ -269,9 +329,9 @@ internal PrivateCloud(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ManagementClusterId = (int?) content.GetValueForProperty("ManagementClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ManagementClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } - if (content.Contains("ManagementClusterHost")) + if (content.Contains("ManagementClusterVsanDatastoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ManagementClusterHost = (System.Collections.Generic.List) content.GetValueForProperty("ManagementClusterHost",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ManagementClusterVsanDatastoreName = (string) content.GetValueForProperty("ManagementClusterVsanDatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ManagementClusterVsanDatastoreName, global::System.Convert.ToString); } if (content.Contains("AvailabilityZone")) { @@ -309,6 +369,14 @@ internal PrivateCloud(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointHcxCloudManager = (string) content.GetValueForProperty("EndpointHcxCloudManager",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointHcxCloudManager, global::System.Convert.ToString); } + if (content.Contains("EndpointNsxtManagerIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointNsxtManagerIP = (string) content.GetValueForProperty("EndpointNsxtManagerIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointNsxtManagerIP, global::System.Convert.ToString); + } + if (content.Contains("EndpointHcxCloudManagerIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointHcxCloudManagerIP = (string) content.GetValueForProperty("EndpointHcxCloudManagerIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointHcxCloudManagerIP, global::System.Convert.ToString); + } if (content.Contains("SecondaryCircuitPrimarySubnet")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SecondaryCircuitPrimarySubnet = (string) content.GetValueForProperty("SecondaryCircuitPrimarySubnet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SecondaryCircuitPrimarySubnet, global::System.Convert.ToString); @@ -358,17 +426,45 @@ internal PrivateCloud(global::System.Management.Automation.PSObject content) return; } // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudPropertiesTypeConverter.ConvertFrom); + } if (content.Contains("Sku")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SkuTypeConverter.ConvertFrom); } - if (content.Contains("Property")) + if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemAssignedServiceIdentityTypeConverter.ConvertFrom); } - if (content.Contains("Identity")) + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { @@ -382,17 +478,13 @@ internal PrivateCloud(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); - } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("SkuName")) + if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("ManagementCluster")) { @@ -410,14 +502,34 @@ internal PrivateCloud(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Endpoint = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpoints) content.GetValueForProperty("Endpoint",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Endpoint, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.EndpointsTypeConverter.ConvertFrom); } - if (content.Contains("AvailabilityStrategy")) + if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).AvailabilityStrategy = (string) content.GetValueForProperty("AvailabilityStrategy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).AvailabilityStrategy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("SkuTier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuTier, global::System.Convert.ToString); + } + if (content.Contains("SkuSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuSize, global::System.Convert.ToString); + } + if (content.Contains("SkuFamily")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuCapacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Availability")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Availability = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties) content.GetValueForProperty("Availability",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Availability, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AvailabilityPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SecondaryCircuit")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SecondaryCircuit = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuit) content.GetValueForProperty("SecondaryCircuit",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SecondaryCircuit, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CircuitTypeConverter.ConvertFrom); + } if (content.Contains("Internet")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Internet = (string) content.GetValueForProperty("Internet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).Internet, global::System.Convert.ToString); @@ -430,10 +542,6 @@ internal PrivateCloud(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ExtendedNetworkBlock = (System.Collections.Generic.List) content.GetValueForProperty("ExtendedNetworkBlock",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ExtendedNetworkBlock, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } - if (content.Contains("SecondaryCircuit")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SecondaryCircuit = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuit) content.GetValueForProperty("SecondaryCircuit",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SecondaryCircuit, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CircuitTypeConverter.ConvertFrom); - } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ProvisioningState, global::System.Convert.ToString); @@ -456,11 +564,11 @@ internal PrivateCloud(global::System.Management.Automation.PSObject content) } if (content.Contains("VcenterPassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VcenterPassword = (string) content.GetValueForProperty("VcenterPassword",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VcenterPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VcenterPassword = (System.Security.SecureString) content.GetValueForProperty("VcenterPassword",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VcenterPassword, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("NsxtPassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).NsxtPassword = (string) content.GetValueForProperty("NsxtPassword",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).NsxtPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).NsxtPassword = (System.Security.SecureString) content.GetValueForProperty("NsxtPassword",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).NsxtPassword, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("VcenterCertificateThumbprint")) { @@ -478,6 +586,22 @@ internal PrivateCloud(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).NsxPublicIPQuotaRaised = (string) content.GetValueForProperty("NsxPublicIPQuotaRaised",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).NsxPublicIPQuotaRaised, global::System.Convert.ToString); } + if (content.Contains("VirtualNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VirtualNetworkId, global::System.Convert.ToString); + } + if (content.Contains("DnsZoneType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).DnsZoneType = (string) content.GetValueForProperty("DnsZoneType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).DnsZoneType, global::System.Convert.ToString); + } + if (content.Contains("ManagementClusterHost")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ManagementClusterHost = (System.Collections.Generic.List) content.GetValueForProperty("ManagementClusterHost",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("AvailabilityStrategy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).AvailabilityStrategy = (string) content.GetValueForProperty("AvailabilityStrategy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).AvailabilityStrategy, global::System.Convert.ToString); + } if (content.Contains("CircuitPrimarySubnet")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).CircuitPrimarySubnet = (string) content.GetValueForProperty("CircuitPrimarySubnet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).CircuitPrimarySubnet, global::System.Convert.ToString); @@ -494,6 +618,10 @@ internal PrivateCloud(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointVcsa = (string) content.GetValueForProperty("EndpointVcsa",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointVcsa, global::System.Convert.ToString); } + if (content.Contains("EndpointVcenterIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointVcenterIP = (string) content.GetValueForProperty("EndpointVcenterIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointVcenterIP, global::System.Convert.ToString); + } if (content.Contains("IdentityPrincipalId")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).IdentityPrincipalId, global::System.Convert.ToString); @@ -518,9 +646,9 @@ internal PrivateCloud(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ManagementClusterId = (int?) content.GetValueForProperty("ManagementClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ManagementClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } - if (content.Contains("ManagementClusterHost")) + if (content.Contains("ManagementClusterVsanDatastoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ManagementClusterHost = (System.Collections.Generic.List) content.GetValueForProperty("ManagementClusterHost",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ManagementClusterVsanDatastoreName = (string) content.GetValueForProperty("ManagementClusterVsanDatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).ManagementClusterVsanDatastoreName, global::System.Convert.ToString); } if (content.Contains("AvailabilityZone")) { @@ -558,6 +686,14 @@ internal PrivateCloud(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointHcxCloudManager = (string) content.GetValueForProperty("EndpointHcxCloudManager",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointHcxCloudManager, global::System.Convert.ToString); } + if (content.Contains("EndpointNsxtManagerIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointNsxtManagerIP = (string) content.GetValueForProperty("EndpointNsxtManagerIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointNsxtManagerIP, global::System.Convert.ToString); + } + if (content.Contains("EndpointHcxCloudManagerIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointHcxCloudManagerIP = (string) content.GetValueForProperty("EndpointHcxCloudManagerIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).EndpointHcxCloudManagerIP, global::System.Convert.ToString); + } if (content.Contains("SecondaryCircuitPrimarySubnet")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SecondaryCircuitPrimarySubnet = (string) content.GetValueForProperty("SecondaryCircuitPrimarySubnet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SecondaryCircuitPrimarySubnet, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.cs index f5203505ec09..6e585f8514c2 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.cs @@ -20,15 +20,15 @@ public partial class PrivateCloud : /// The secondary availability zone for the private cloud [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public int? AvailabilitySecondaryZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).AvailabilitySecondaryZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).AvailabilitySecondaryZone = value ?? default(int); } + public int? AvailabilitySecondaryZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).AvailabilitySecondaryZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).AvailabilitySecondaryZone = value ?? default(int); } /// The availability strategy for the private cloud [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string AvailabilityStrategy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).AvailabilityStrategy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).AvailabilityStrategy = value ?? null; } + public string AvailabilityStrategy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).AvailabilityStrategy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).AvailabilityStrategy = value ?? null; } /// The primary availability zone for the private cloud [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public int? AvailabilityZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).AvailabilityZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).AvailabilityZone = value ?? default(int); } + public int? AvailabilityZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).AvailabilityZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).AvailabilityZone = value ?? default(int); } /// Identifier of the ExpressRoute Circuit (Microsoft Colo only) [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] @@ -46,122 +46,142 @@ public partial class PrivateCloud : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string CircuitSecondarySubnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).CircuitSecondarySubnet; } + /// The type of DNS zone to use. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string DnsZoneType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).DnsZoneType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).DnsZoneType = value ?? null; } + /// Status of customer managed encryption key [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string EncryptionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).EncryptionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).EncryptionStatus = value ?? null; } + public string EncryptionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EncryptionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EncryptionStatus = value ?? null; } - /// Endpoint for the HCX Cloud Manager + /// Endpoint FQDN for the HCX Cloud Manager [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string EndpointHcxCloudManager { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointHcxCloudManager; } - /// Endpoint for the NSX-T Data Center manager + /// Endpoint IP for the HCX Cloud Manager + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string EndpointHcxCloudManagerIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointHcxCloudManagerIP; } + + /// Endpoint FQDN for the NSX-T Data Center manager [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string EndpointNsxtManager { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointNsxtManager; } - /// Endpoint for Virtual Center Server Appliance + /// Endpoint IP for the NSX-T Data Center manager + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string EndpointNsxtManagerIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointNsxtManagerIP; } + + /// Endpoint IP for Virtual Center Server Appliance + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string EndpointVcenterIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointVcenterIP; } + + /// Endpoint FQDN for Virtual Center Server Appliance [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string EndpointVcsa { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointVcsa; } /// - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet - /// in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to /// (A.B.C.D/X). /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public System.Collections.Generic.List ExtendedNetworkBlock { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ExtendedNetworkBlock; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ExtendedNetworkBlock = value ?? null /* arrayOf */; } + public System.Collections.Generic.List ExtendedNetworkBlock { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ExtendedNetworkBlock; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ExtendedNetworkBlock = value ?? null /* arrayOf */; } /// Array of cloud link IDs from other clouds that connect to this one [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public System.Collections.Generic.List ExternalCloudLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ExternalCloudLink; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).Id; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity _identity; + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity _identity; - /// The identity of the private cloud, if configured. + /// The managed service identities assigned to this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudIdentity()); set => this._identity = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemAssignedServiceIdentity()); set => this._identity = value; } /// - /// The principal ID of private cloud identity. This property will only be provided for a system assigned identity. + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)Identity).PrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)Identity).PrincipalId; } /// vCenter Single Sign On Identity Sources [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public System.Collections.Generic.List IdentitySource { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).IdentitySource; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).IdentitySource = value ?? null /* arrayOf */; } + public System.Collections.Generic.List IdentitySource { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).IdentitySource; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).IdentitySource = value ?? null /* arrayOf */; } /// - /// The tenant ID associated with the private cloud. This property will only be provided for a system assigned identity. + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)Identity).TenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)Identity).TenantId; } - /// - /// The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The - /// type 'None' will remove any identities from the Private Cloud. - /// + /// Type of managed service identity (either system assigned, or none). [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)Identity).Type = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)Identity).Type = value ?? null; } /// Connectivity to internet is enabled or disabled [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string Internet { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).Internet; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).Internet = value ?? null; } + public string Internet { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).Internet; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).Internet = value ?? null; } /// The auto-detected version of the key if versionType is auto-detected. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string KeyVaultPropertyAutoDetectedKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyAutoDetectedKeyVersion; } + public string KeyVaultPropertyAutoDetectedKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).KeyVaultPropertyAutoDetectedKeyVersion; } /// The name of the key. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string KeyVaultPropertyKeyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyKeyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyKeyName = value ?? null; } + public string KeyVaultPropertyKeyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).KeyVaultPropertyKeyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).KeyVaultPropertyKeyName = value ?? null; } /// The state of key provided [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string KeyVaultPropertyKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyKeyState; } + public string KeyVaultPropertyKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).KeyVaultPropertyKeyState; } /// The URL of the vault. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string KeyVaultPropertyKeyVaultUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyKeyVaultUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyKeyVaultUrl = value ?? null; } + public string KeyVaultPropertyKeyVaultUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).KeyVaultPropertyKeyVaultUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).KeyVaultPropertyKeyVaultUrl = value ?? null; } /// The version of the key. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string KeyVaultPropertyKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyKeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyKeyVersion = value ?? null; } + public string KeyVaultPropertyKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).KeyVaultPropertyKeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).KeyVaultPropertyKeyVersion = value ?? null; } /// Property of the key if user provided or auto detected [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string KeyVaultPropertyVersionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyVersionType; } + public string KeyVaultPropertyVersionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).KeyVaultPropertyVersionType; } - /// Resource location + /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)__trackedResource).Location = value ?? null; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)__trackedResource).Location = value ; } /// The hosts [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public System.Collections.Generic.List ManagementClusterHost { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ManagementClusterHost; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ManagementClusterHost = value ?? null /* arrayOf */; } + public System.Collections.Generic.List ManagementClusterHost { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementClusterHost; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementClusterHost = value ?? null /* arrayOf */; } /// The identity [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public int? ManagementClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ManagementClusterId; } + public int? ManagementClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementClusterId; } /// The state of the cluster provisioning [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string ManagementClusterProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ManagementClusterProvisioningState; } + public string ManagementClusterProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementClusterProvisioningState; } /// The cluster size [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public int? ManagementClusterSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ManagementClusterSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ManagementClusterSize = value ?? default(int); } + public int? ManagementClusterSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementClusterSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementClusterSize = value ?? default(int); } + + /// Name of the vsan datastore associated with the cluster + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ManagementClusterVsanDatastoreName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementClusterVsanDatastoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementClusterVsanDatastoreName = value ?? null; } /// Network used to access vCenter Server and NSX-T Manager [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string ManagementNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementNetwork; } /// Internal Acessors for Availability - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.Availability { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).Availability; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).Availability = value; } + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.Availability { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).Availability; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).Availability = value; } /// Internal Acessors for Circuit Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuit Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.Circuit { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).Circuit; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).Circuit = value; } @@ -179,10 +199,10 @@ public partial class PrivateCloud : string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.CircuitSecondarySubnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).CircuitSecondarySubnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).CircuitSecondarySubnet = value; } /// Internal Acessors for Encryption - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.Encryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).Encryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).Encryption = value; } + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.Encryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).Encryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).Encryption = value; } /// Internal Acessors for EncryptionKeyVaultProperty - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionKeyVaultProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.EncryptionKeyVaultProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).EncryptionKeyVaultProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).EncryptionKeyVaultProperty = value; } + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionKeyVaultProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.EncryptionKeyVaultProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EncryptionKeyVaultProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EncryptionKeyVaultProperty = value; } /// Internal Acessors for Endpoint Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpoints Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.Endpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).Endpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).Endpoint = value; } @@ -190,9 +210,18 @@ public partial class PrivateCloud : /// Internal Acessors for EndpointHcxCloudManager string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.EndpointHcxCloudManager { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointHcxCloudManager; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointHcxCloudManager = value; } + /// Internal Acessors for EndpointHcxCloudManagerIP + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.EndpointHcxCloudManagerIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointHcxCloudManagerIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointHcxCloudManagerIP = value; } + /// Internal Acessors for EndpointNsxtManager string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.EndpointNsxtManager { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointNsxtManager; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointNsxtManager = value; } + /// Internal Acessors for EndpointNsxtManagerIP + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.EndpointNsxtManagerIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointNsxtManagerIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointNsxtManagerIP = value; } + + /// Internal Acessors for EndpointVcenterIP + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.EndpointVcenterIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointVcenterIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointVcenterIP = value; } + /// Internal Acessors for EndpointVcsa string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.EndpointVcsa { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointVcsa; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).EndpointVcsa = value; } @@ -200,31 +229,31 @@ public partial class PrivateCloud : System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.ExternalCloudLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ExternalCloudLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ExternalCloudLink = value; } /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudIdentity()); set { {_identity = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemAssignedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)Identity).PrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)Identity).TenantId = value; } /// Internal Acessors for KeyVaultPropertyAutoDetectedKeyVersion - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.KeyVaultPropertyAutoDetectedKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyAutoDetectedKeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyAutoDetectedKeyVersion = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.KeyVaultPropertyAutoDetectedKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).KeyVaultPropertyAutoDetectedKeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).KeyVaultPropertyAutoDetectedKeyVersion = value; } /// Internal Acessors for KeyVaultPropertyKeyState - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.KeyVaultPropertyKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyKeyState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyKeyState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.KeyVaultPropertyKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).KeyVaultPropertyKeyState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).KeyVaultPropertyKeyState = value; } /// Internal Acessors for KeyVaultPropertyVersionType - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.KeyVaultPropertyVersionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyVersionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyVersionType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.KeyVaultPropertyVersionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).KeyVaultPropertyVersionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).KeyVaultPropertyVersionType = value; } /// Internal Acessors for ManagementCluster - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementCluster Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.ManagementCluster { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ManagementCluster; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ManagementCluster = value; } + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementCluster Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.ManagementCluster { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementCluster; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementCluster = value; } /// Internal Acessors for ManagementClusterId - int? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.ManagementClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ManagementClusterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ManagementClusterId = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.ManagementClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementClusterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementClusterId = value; } /// Internal Acessors for ManagementClusterProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.ManagementClusterProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ManagementClusterProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ManagementClusterProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.ManagementClusterProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementClusterProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementClusterProvisioningState = value; } /// Internal Acessors for ManagementNetwork string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.ManagementNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).ManagementNetwork = value; } @@ -274,22 +303,27 @@ public partial class PrivateCloud : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).Type = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).Name; } /// - /// The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format - /// is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22 + /// The block of addresses should be unique across VNet in your subscription as + /// well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where + /// A,B,C,D are between 0 and 255, and X is between 0 and 22 /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string NetworkBlock { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).NetworkBlock; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).NetworkBlock = value ?? null; } /// - /// Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024 + /// Flag to indicate whether the private cloud has the quota for provisioned NSX + /// Public IP count raised from 64 to 1024 /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string NsxPublicIPQuotaRaised { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).NsxPublicIPQuotaRaised; } @@ -300,12 +334,12 @@ public partial class PrivateCloud : /// Optionally, set the NSX-T Manager password when the private cloud is created [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string NsxtPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).NsxtPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).NsxtPassword = value ?? null; } + public System.Security.SecureString NsxtPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).NsxtPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).NsxtPassword = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudProperties _property; - /// The properties of a private cloud resource + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudProperties()); set => this._property = value; } @@ -340,19 +374,77 @@ public partial class PrivateCloud : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku _sku; - /// The private cloud SKU + /// The SKU (Stock Keeping Unit) assigned to this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Sku()); set => this._sku = value; } - /// The name of the SKU. + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Capacity = value ?? default(int); } + + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Family = value ?? null; } + + /// The name of the SKU. E.g. P3. It is typically a letter+number code [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Name = value ; } - /// Resource tags + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Size; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Size = value ?? null; } + + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Tier = value ?? null; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? null; } - /// Resource type. + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? null; } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__trackedResource).Type; } @@ -362,7 +454,11 @@ public partial class PrivateCloud : /// Optionally, set the vCenter admin password when the private cloud is created [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string VcenterPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VcenterPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VcenterPassword = value ?? null; } + public System.Security.SecureString VcenterPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VcenterPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VcenterPassword = value ?? null; } + + /// Azure resource ID of the virtual network + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VirtualNetworkId = value ?? null; } /// Used for live migration of virtual machines [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] @@ -469,54 +565,100 @@ public partial interface IPrivateCloud : SerializedName = @"secondarySubnet", PossibleTypes = new [] { typeof(string) })] string CircuitSecondarySubnet { get; } + /// The type of DNS zone to use. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"The type of DNS zone to use.", + SerializedName = @"dnsZoneType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Public", "Private")] + string DnsZoneType { get; set; } /// Status of customer managed encryption key [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Status of customer managed encryption key", SerializedName = @"status", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] string EncryptionStatus { get; set; } - /// Endpoint for the HCX Cloud Manager + /// Endpoint FQDN for the HCX Cloud Manager [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Endpoint for the HCX Cloud Manager", + Description = @"Endpoint FQDN for the HCX Cloud Manager", SerializedName = @"hcxCloudManager", PossibleTypes = new [] { typeof(string) })] string EndpointHcxCloudManager { get; } - /// Endpoint for the NSX-T Data Center manager + /// Endpoint IP for the HCX Cloud Manager [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Endpoint for the NSX-T Data Center manager", + Description = @"Endpoint IP for the HCX Cloud Manager", + SerializedName = @"hcxCloudManagerIp", + PossibleTypes = new [] { typeof(string) })] + string EndpointHcxCloudManagerIP { get; } + /// Endpoint FQDN for the NSX-T Data Center manager + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Endpoint FQDN for the NSX-T Data Center manager", SerializedName = @"nsxtManager", PossibleTypes = new [] { typeof(string) })] string EndpointNsxtManager { get; } - /// Endpoint for Virtual Center Server Appliance + /// Endpoint IP for the NSX-T Data Center manager + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Endpoint IP for the NSX-T Data Center manager", + SerializedName = @"nsxtManagerIp", + PossibleTypes = new [] { typeof(string) })] + string EndpointNsxtManagerIP { get; } + /// Endpoint IP for Virtual Center Server Appliance + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Endpoint IP for Virtual Center Server Appliance", + SerializedName = @"vcenterIp", + PossibleTypes = new [] { typeof(string) })] + string EndpointVcenterIP { get; } + /// Endpoint FQDN for Virtual Center Server Appliance [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Endpoint for Virtual Center Server Appliance", + Description = @"Endpoint FQDN for Virtual Center Server Appliance", SerializedName = @"vcsa", PossibleTypes = new [] { typeof(string) })] string EndpointVcsa { get; } /// - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet - /// in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to /// (A.B.C.D/X). /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -524,8 +666,11 @@ public partial interface IPrivateCloud : ReadOnly = false, Read = true, Create = true, - Update = true, - Description = @"Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X).", + Update = false, + Description = @"Array of additional networks noncontiguous with networkBlock. Networks must be + unique and non-overlapping across VNet in your subscription, on-premise, and + this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + (A.B.C.D/X).", SerializedName = @"extendedNetworkBlocks", PossibleTypes = new [] { typeof(string) })] System.Collections.Generic.List ExtendedNetworkBlock { get; set; } @@ -541,7 +686,7 @@ public partial interface IPrivateCloud : PossibleTypes = new [] { typeof(string) })] System.Collections.Generic.List ExternalCloudLink { get; } /// - /// The principal ID of private cloud identity. This property will only be provided for a system assigned identity. + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -549,7 +694,7 @@ public partial interface IPrivateCloud : Read = true, Create = false, Update = false, - Description = @"The principal ID of private cloud identity. This property will only be provided for a system assigned identity.", + Description = @"The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", SerializedName = @"principalId", PossibleTypes = new [] { typeof(string) })] string IdentityPrincipalId { get; } @@ -559,13 +704,13 @@ public partial interface IPrivateCloud : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"vCenter Single Sign On Identity Sources", SerializedName = @"identitySources", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource) })] System.Collections.Generic.List IdentitySource { get; set; } /// - /// The tenant ID associated with the private cloud. This property will only be provided for a system assigned identity. + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -573,24 +718,21 @@ public partial interface IPrivateCloud : Read = true, Create = false, Update = false, - Description = @"The tenant ID associated with the private cloud. This property will only be provided for a system assigned identity.", + Description = @"The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", SerializedName = @"tenantId", PossibleTypes = new [] { typeof(string) })] string IdentityTenantId { get; } - /// - /// The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The - /// type 'None' will remove any identities from the Private Cloud. - /// + /// Type of managed service identity (either system assigned, or none). [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Private Cloud.", + Description = @"Type of managed service identity (either system assigned, or none).", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SystemAssigned", "None")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("None", "SystemAssigned")] string IdentityType { get; set; } /// Connectivity to internet is enabled or disabled [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -598,7 +740,7 @@ public partial interface IPrivateCloud : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Connectivity to internet is enabled or disabled", SerializedName = @"internet", PossibleTypes = new [] { typeof(string) })] @@ -621,7 +763,7 @@ public partial interface IPrivateCloud : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"The name of the key.", SerializedName = @"keyName", PossibleTypes = new [] { typeof(string) })] @@ -644,7 +786,7 @@ public partial interface IPrivateCloud : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"The URL of the vault.", SerializedName = @"keyVaultUrl", PossibleTypes = new [] { typeof(string) })] @@ -655,7 +797,7 @@ public partial interface IPrivateCloud : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"The version of the key.", SerializedName = @"keyVersion", PossibleTypes = new [] { typeof(string) })] @@ -678,7 +820,7 @@ public partial interface IPrivateCloud : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"The hosts", SerializedName = @"hosts", PossibleTypes = new [] { typeof(string) })] @@ -704,7 +846,7 @@ public partial interface IPrivateCloud : Description = @"The state of the cluster provisioning", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Deleting", "Updating")] string ManagementClusterProvisioningState { get; } /// The cluster size [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -712,11 +854,22 @@ public partial interface IPrivateCloud : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"The cluster size", SerializedName = @"clusterSize", PossibleTypes = new [] { typeof(int) })] int? ManagementClusterSize { get; set; } + /// Name of the vsan datastore associated with the cluster + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"Name of the vsan datastore associated with the cluster", + SerializedName = @"vsanDatastoreName", + PossibleTypes = new [] { typeof(string) })] + string ManagementClusterVsanDatastoreName { get; set; } /// Network used to access vCenter Server and NSX-T Manager [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -729,8 +882,9 @@ public partial interface IPrivateCloud : PossibleTypes = new [] { typeof(string) })] string ManagementNetwork { get; } /// - /// The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format - /// is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22 + /// The block of addresses should be unique across VNet in your subscription as + /// well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where + /// A,B,C,D are between 0 and 255, and X is between 0 and 22 /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -738,12 +892,15 @@ public partial interface IPrivateCloud : Read = true, Create = true, Update = false, - Description = @"The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22", + Description = @"The block of addresses should be unique across VNet in your subscription as + well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where + A,B,C,D are between 0 and 255, and X is between 0 and 22", SerializedName = @"networkBlock", PossibleTypes = new [] { typeof(string) })] string NetworkBlock { get; set; } /// - /// Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024 + /// Flag to indicate whether the private cloud has the quota for provisioned NSX + /// Public IP count raised from 64 to 1024 /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -751,7 +908,8 @@ public partial interface IPrivateCloud : Read = true, Create = false, Update = false, - Description = @"Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024", + Description = @"Flag to indicate whether the private cloud has the quota for provisioned NSX + Public IP count raised from 64 to 1024", SerializedName = @"nsxPublicIpQuotaRaised", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] @@ -773,11 +931,11 @@ public partial interface IPrivateCloud : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Optionally, set the NSX-T Manager password when the private cloud is created", SerializedName = @"nsxtPassword", - PossibleTypes = new [] { typeof(string) })] - string NsxtPassword { get; set; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString NsxtPassword { get; set; } /// Used for virtual machine cold migration, cloning, and snapshot migration [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -799,7 +957,7 @@ public partial interface IPrivateCloud : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Pending", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Pending", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// Identifier of the ExpressRoute Circuit (Microsoft Colo only) [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -845,17 +1003,72 @@ public partial interface IPrivateCloud : SerializedName = @"secondarySubnet", PossibleTypes = new [] { typeof(string) })] string SecondaryCircuitSecondarySubnet { get; } - /// The name of the SKU. + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + string SkuFamily { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The name of the SKU.", + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string SkuTier { get; set; } /// Thumbprint of the vCenter Server SSL certificate [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -873,11 +1086,22 @@ public partial interface IPrivateCloud : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Optionally, set the vCenter admin password when the private cloud is created", SerializedName = @"vcenterPassword", + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString VcenterPassword { get; set; } + /// Azure resource ID of the virtual network + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"Azure resource ID of the virtual network", + SerializedName = @"virtualNetworkId", PossibleTypes = new [] { typeof(string) })] - string VcenterPassword { get; set; } + string VirtualNetworkId { get; set; } /// Used for live migration of virtual machines [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -914,6 +1138,9 @@ internal partial interface IPrivateCloudInternal : string CircuitPrimarySubnet { get; set; } /// CIDR of secondary subnet string CircuitSecondarySubnet { get; set; } + /// The type of DNS zone to use. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Public", "Private")] + string DnsZoneType { get; set; } /// Customer managed key encryption, can be enabled or disabled Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption Encryption { get; set; } /// The key vault where the encryption key is stored @@ -923,37 +1150,41 @@ internal partial interface IPrivateCloudInternal : string EncryptionStatus { get; set; } /// The endpoints Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpoints Endpoint { get; set; } - /// Endpoint for the HCX Cloud Manager + /// Endpoint FQDN for the HCX Cloud Manager string EndpointHcxCloudManager { get; set; } - /// Endpoint for the NSX-T Data Center manager + /// Endpoint IP for the HCX Cloud Manager + string EndpointHcxCloudManagerIP { get; set; } + /// Endpoint FQDN for the NSX-T Data Center manager string EndpointNsxtManager { get; set; } - /// Endpoint for Virtual Center Server Appliance + /// Endpoint IP for the NSX-T Data Center manager + string EndpointNsxtManagerIP { get; set; } + /// Endpoint IP for Virtual Center Server Appliance + string EndpointVcenterIP { get; set; } + /// Endpoint FQDN for Virtual Center Server Appliance string EndpointVcsa { get; set; } /// - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet - /// in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to /// (A.B.C.D/X). /// System.Collections.Generic.List ExtendedNetworkBlock { get; set; } /// Array of cloud link IDs from other clouds that connect to this one System.Collections.Generic.List ExternalCloudLink { get; set; } - /// The identity of the private cloud, if configured. - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity Identity { get; set; } + /// The managed service identities assigned to this resource. + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity Identity { get; set; } /// - /// The principal ID of private cloud identity. This property will only be provided for a system assigned identity. + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// string IdentityPrincipalId { get; set; } /// vCenter Single Sign On Identity Sources System.Collections.Generic.List IdentitySource { get; set; } /// - /// The tenant ID associated with the private cloud. This property will only be provided for a system assigned identity. + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// string IdentityTenantId { get; set; } - /// - /// The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The - /// type 'None' will remove any identities from the Private Cloud. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SystemAssigned", "None")] + /// Type of managed service identity (either system assigned, or none). + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("None", "SystemAssigned")] string IdentityType { get; set; } /// Connectivity to internet is enabled or disabled [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] @@ -979,35 +1210,40 @@ internal partial interface IPrivateCloudInternal : /// The identity int? ManagementClusterId { get; set; } /// The state of the cluster provisioning - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Deleting", "Updating")] string ManagementClusterProvisioningState { get; set; } /// The cluster size int? ManagementClusterSize { get; set; } + /// Name of the vsan datastore associated with the cluster + string ManagementClusterVsanDatastoreName { get; set; } /// Network used to access vCenter Server and NSX-T Manager string ManagementNetwork { get; set; } /// - /// The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format - /// is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22 + /// The block of addresses should be unique across VNet in your subscription as + /// well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where + /// A,B,C,D are between 0 and 255, and X is between 0 and 22 /// string NetworkBlock { get; set; } /// - /// Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024 + /// Flag to indicate whether the private cloud has the quota for provisioned NSX + /// Public IP count raised from 64 to 1024 /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] string NsxPublicIPQuotaRaised { get; set; } /// Thumbprint of the NSX-T Manager SSL certificate string NsxtCertificateThumbprint { get; set; } /// Optionally, set the NSX-T Manager password when the private cloud is created - string NsxtPassword { get; set; } - /// The properties of a private cloud resource + System.Security.SecureString NsxtPassword { get; set; } + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudProperties Property { get; set; } /// Used for virtual machine cold migration, cloning, and snapshot migration string ProvisioningNetwork { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Pending", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Pending", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// - /// A secondary expressRoute circuit from a separate AZ. Only present in a stretched private cloud + /// A secondary expressRoute circuit from a separate AZ. Only present in a + /// stretched private cloud /// Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuit SecondaryCircuit { get; set; } /// Identifier of the ExpressRoute Circuit (Microsoft Colo only) @@ -1018,14 +1254,35 @@ internal partial interface IPrivateCloudInternal : string SecondaryCircuitPrimarySubnet { get; set; } /// CIDR of secondary subnet string SecondaryCircuitSecondarySubnet { get; set; } - /// The private cloud SKU + /// The SKU (Stock Keeping Unit) assigned to this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku Sku { get; set; } - /// The name of the SKU. + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + string SkuFamily { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string SkuTier { get; set; } /// Thumbprint of the vCenter Server SSL certificate string VcenterCertificateThumbprint { get; set; } /// Optionally, set the vCenter admin password when the private cloud is created - string VcenterPassword { get; set; } + System.Security.SecureString VcenterPassword { get; set; } + /// Azure resource ID of the virtual network + string VirtualNetworkId { get; set; } /// Used for live migration of virtual machines string VmotionNetwork { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.json.cs index 5d7fd2b7ca1b..f59ab1dcc6ed 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.json.cs @@ -76,9 +76,9 @@ internal PrivateCloud(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.Jso return; } __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.TrackedResource(json); - {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Sku.FromJson(__jsonSku) : _sku;} {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudProperties.FromJson(__jsonProperties) : _property;} - {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudIdentity.FromJson(__jsonIdentity) : _identity;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Sku.FromJson(__jsonSku) : _sku;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemAssignedServiceIdentity.FromJson(__jsonIdentity) : _identity;} AfterFromJson(json); } @@ -102,8 +102,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __trackedResource?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudIdentity.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudIdentity.TypeConverter.cs deleted file mode 100644 index 222532cc0a56..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudIdentity.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class PrivateCloudIdentityTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return PrivateCloudIdentity.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return PrivateCloudIdentity.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return PrivateCloudIdentity.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudListResult.PowerShell.cs similarity index 72% rename from src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudListResult.PowerShell.cs index 6386c7b039a5..995ed26d906e 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A paged list of private clouds - [System.ComponentModel.TypeConverter(typeof(PrivateCloudListTypeConverter))] - public partial class PrivateCloudList + /// The response of a PrivateCloud list operation. + [System.ComponentModel.TypeConverter(typeof(PrivateCloudListResultTypeConverter))] + public partial class PrivateCloudListResult { /// @@ -63,44 +63,44 @@ public partial class PrivateCloudList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new PrivateCloudList(content); + return new PrivateCloudListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new PrivateCloudList(content); + return new PrivateCloudListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal PrivateCloudList(global::System.Collections.IDictionary content) + internal PrivateCloudListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -111,21 +111,21 @@ internal PrivateCloudList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal PrivateCloudList(global::System.Management.Automation.PSObject content) + internal PrivateCloudListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -136,11 +136,11 @@ internal PrivateCloudList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -162,9 +162,9 @@ public override string ToString() return ToJsonString(); } } - /// A paged list of private clouds - [System.ComponentModel.TypeConverter(typeof(PrivateCloudListTypeConverter))] - public partial interface IPrivateCloudList + /// The response of a PrivateCloud list operation. + [System.ComponentModel.TypeConverter(typeof(PrivateCloudListResultTypeConverter))] + public partial interface IPrivateCloudListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/DatastoreList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudListResult.TypeConverter.cs similarity index 84% rename from src/VMware/VMware.Autorest/generated/api/Models/DatastoreList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudListResult.TypeConverter.cs index d5d655b25c91..c0bde1cca96c 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/DatastoreList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudListResult.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class DatastoreListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class PrivateCloudListResultTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class DatastoreListTypeConverter : global::System.Management.Auto public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResult).IsAssignableFrom(type)) { return sourceValue; } try { - return DatastoreList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return PrivateCloudListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreList Co } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return DatastoreList.DeserializeFromPSObject(sourceValue); + return PrivateCloudListResult.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return DatastoreList.DeserializeFromDictionary(sourceValue); + return PrivateCloudListResult.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudList.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudListResult.cs similarity index 54% rename from src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudListResult.cs index bd89924cf67e..430cea9c361b 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A paged list of private clouds - public partial class PrivateCloudList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListInternal + /// The response of a PrivateCloud list operation. + public partial class PrivateCloudListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on the page + /// The PrivateCloud items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public PrivateCloudList() + /// Creates an new instance. + public PrivateCloudListResult() { } } - /// A paged list of private clouds - public partial interface IPrivateCloudList : + /// The response of a PrivateCloud list operation. + public partial interface IPrivateCloudListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on the page + string NextLink { get; set; } + /// The PrivateCloud items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on the page", + Create = true, + Update = true, + Description = @"The PrivateCloud items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A paged list of private clouds - internal partial interface IPrivateCloudListInternal + /// The response of a PrivateCloud list operation. + internal partial interface IPrivateCloudListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on the page + /// The PrivateCloud items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudListResult.json.cs similarity index 80% rename from src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudListResult.json.cs index 556c156ee91b..71d03b558956 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A paged list of private clouds - public partial class PrivateCloudList + /// The response of a PrivateCloud list operation. + public partial class PrivateCloudListResult { /// @@ -54,22 +54,22 @@ public partial class PrivateCloudList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new PrivateCloudList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new PrivateCloudListResult(json) : null; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal PrivateCloudList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal PrivateCloudListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -83,13 +83,13 @@ internal PrivateCloudList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -101,22 +101,16 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.PowerShell.cs index 7df4fef40c99..c245c045f69d 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.PowerShell.cs @@ -109,6 +109,18 @@ internal PrivateCloudProperties(global::System.Collections.IDictionary content) return; } // actually deserialize + if (content.Contains("ManagementCluster")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementCluster = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementCluster) content.GetValueForProperty("ManagementCluster",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementCluster, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ManagementClusterTypeConverter.ConvertFrom); + } + if (content.Contains("Availability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).Availability = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties) content.GetValueForProperty("Availability",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).Availability, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AvailabilityPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Encryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).Encryption = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).Encryption, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.EncryptionTypeConverter.ConvertFrom); + } if (content.Contains("Circuit")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).Circuit = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuit) content.GetValueForProperty("Circuit",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).Circuit, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CircuitTypeConverter.ConvertFrom); @@ -121,6 +133,18 @@ internal PrivateCloudProperties(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).SecondaryCircuit = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuit) content.GetValueForProperty("SecondaryCircuit",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).SecondaryCircuit, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CircuitTypeConverter.ConvertFrom); } + if (content.Contains("Internet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).Internet = (string) content.GetValueForProperty("Internet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).Internet, global::System.Convert.ToString); + } + if (content.Contains("IdentitySource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).IdentitySource = (System.Collections.Generic.List) content.GetValueForProperty("IdentitySource",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).IdentitySource, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IdentitySourceTypeConverter.ConvertFrom)); + } + if (content.Contains("ExtendedNetworkBlock")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ExtendedNetworkBlock = (System.Collections.Generic.List) content.GetValueForProperty("ExtendedNetworkBlock",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ExtendedNetworkBlock, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); @@ -143,11 +167,11 @@ internal PrivateCloudProperties(global::System.Collections.IDictionary content) } if (content.Contains("VcenterPassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcenterPassword = (string) content.GetValueForProperty("VcenterPassword",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcenterPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcenterPassword = (System.Security.SecureString) content.GetValueForProperty("VcenterPassword",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcenterPassword, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("NsxtPassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).NsxtPassword = (string) content.GetValueForProperty("NsxtPassword",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).NsxtPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).NsxtPassword = (System.Security.SecureString) content.GetValueForProperty("NsxtPassword",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).NsxtPassword, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("VcenterCertificateThumbprint")) { @@ -165,105 +189,81 @@ internal PrivateCloudProperties(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).NsxPublicIPQuotaRaised = (string) content.GetValueForProperty("NsxPublicIPQuotaRaised",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).NsxPublicIPQuotaRaised, global::System.Convert.ToString); } - if (content.Contains("AvailabilityStrategy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).AvailabilityStrategy = (string) content.GetValueForProperty("AvailabilityStrategy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).AvailabilityStrategy, global::System.Convert.ToString); - } - if (content.Contains("ManagementClusterSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterSize = (int?) content.GetValueForProperty("ManagementClusterSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ManagementClusterProvisioningState")) + if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterProvisioningState = (string) content.GetValueForProperty("ManagementClusterProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } - if (content.Contains("ManagementClusterId")) + if (content.Contains("DnsZoneType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterId = (int?) content.GetValueForProperty("ManagementClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).DnsZoneType = (string) content.GetValueForProperty("DnsZoneType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).DnsZoneType, global::System.Convert.ToString); } if (content.Contains("ManagementClusterHost")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterHost = (System.Collections.Generic.List) content.GetValueForProperty("ManagementClusterHost",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("AvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).AvailabilityZone = (int?) content.GetValueForProperty("AvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).AvailabilityZone, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AvailabilitySecondaryZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).AvailabilitySecondaryZone = (int?) content.GetValueForProperty("AvailabilitySecondaryZone",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).AvailabilitySecondaryZone, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("EncryptionKeyVaultProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).EncryptionKeyVaultProperty = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionKeyVaultProperties) content.GetValueForProperty("EncryptionKeyVaultProperty",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).EncryptionKeyVaultProperty, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.EncryptionKeyVaultPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterHost = (System.Collections.Generic.List) content.GetValueForProperty("ManagementClusterHost",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } - if (content.Contains("EncryptionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).EncryptionStatus = (string) content.GetValueForProperty("EncryptionStatus",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).EncryptionStatus, global::System.Convert.ToString); - } - if (content.Contains("KeyVaultPropertyKeyName")) + if (content.Contains("AvailabilityStrategy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyKeyName = (string) content.GetValueForProperty("KeyVaultPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyKeyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).AvailabilityStrategy = (string) content.GetValueForProperty("AvailabilityStrategy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).AvailabilityStrategy, global::System.Convert.ToString); } - if (content.Contains("KeyVaultPropertyKeyVersion")) + if (content.Contains("CircuitPrimarySubnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyKeyVersion = (string) content.GetValueForProperty("KeyVaultPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyKeyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).CircuitPrimarySubnet = (string) content.GetValueForProperty("CircuitPrimarySubnet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).CircuitPrimarySubnet, global::System.Convert.ToString); } - if (content.Contains("KeyVaultPropertyAutoDetectedKeyVersion")) + if (content.Contains("CircuitSecondarySubnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyAutoDetectedKeyVersion = (string) content.GetValueForProperty("KeyVaultPropertyAutoDetectedKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyAutoDetectedKeyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).CircuitSecondarySubnet = (string) content.GetValueForProperty("CircuitSecondarySubnet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).CircuitSecondarySubnet, global::System.Convert.ToString); } - if (content.Contains("KeyVaultPropertyKeyVaultUrl")) + if (content.Contains("EndpointNsxtManager")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyKeyVaultUrl = (string) content.GetValueForProperty("KeyVaultPropertyKeyVaultUrl",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyKeyVaultUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointNsxtManager = (string) content.GetValueForProperty("EndpointNsxtManager",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointNsxtManager, global::System.Convert.ToString); } - if (content.Contains("KeyVaultPropertyKeyState")) + if (content.Contains("EndpointVcsa")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyKeyState = (string) content.GetValueForProperty("KeyVaultPropertyKeyState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyKeyState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointVcsa = (string) content.GetValueForProperty("EndpointVcsa",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointVcsa, global::System.Convert.ToString); } - if (content.Contains("KeyVaultPropertyVersionType")) + if (content.Contains("EndpointVcenterIP")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyVersionType = (string) content.GetValueForProperty("KeyVaultPropertyVersionType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyVersionType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointVcenterIP = (string) content.GetValueForProperty("EndpointVcenterIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointVcenterIP, global::System.Convert.ToString); } - if (content.Contains("ManagementCluster")) + if (content.Contains("ManagementClusterSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementCluster = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementCluster) content.GetValueForProperty("ManagementCluster",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementCluster, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ManagementClusterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterSize = (int?) content.GetValueForProperty("ManagementClusterSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } - if (content.Contains("Availability")) + if (content.Contains("ManagementClusterProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).Availability = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties) content.GetValueForProperty("Availability",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).Availability, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AvailabilityPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterProvisioningState = (string) content.GetValueForProperty("ManagementClusterProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterProvisioningState, global::System.Convert.ToString); } - if (content.Contains("Encryption")) + if (content.Contains("ManagementClusterId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).Encryption = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).Encryption, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.EncryptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterId = (int?) content.GetValueForProperty("ManagementClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } - if (content.Contains("Internet")) + if (content.Contains("ManagementClusterVsanDatastoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).Internet = (string) content.GetValueForProperty("Internet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).Internet, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterVsanDatastoreName = (string) content.GetValueForProperty("ManagementClusterVsanDatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterVsanDatastoreName, global::System.Convert.ToString); } - if (content.Contains("IdentitySource")) + if (content.Contains("AvailabilityZone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).IdentitySource = (System.Collections.Generic.List) content.GetValueForProperty("IdentitySource",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).IdentitySource, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IdentitySourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).AvailabilityZone = (int?) content.GetValueForProperty("AvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).AvailabilityZone, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } - if (content.Contains("ExtendedNetworkBlock")) + if (content.Contains("AvailabilitySecondaryZone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ExtendedNetworkBlock = (System.Collections.Generic.List) content.GetValueForProperty("ExtendedNetworkBlock",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ExtendedNetworkBlock, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).AvailabilitySecondaryZone = (int?) content.GetValueForProperty("AvailabilitySecondaryZone",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).AvailabilitySecondaryZone, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } - if (content.Contains("CircuitPrimarySubnet")) + if (content.Contains("EncryptionKeyVaultProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).CircuitPrimarySubnet = (string) content.GetValueForProperty("CircuitPrimarySubnet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).CircuitPrimarySubnet, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EncryptionKeyVaultProperty = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionKeyVaultProperties) content.GetValueForProperty("EncryptionKeyVaultProperty",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EncryptionKeyVaultProperty, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.EncryptionKeyVaultPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("CircuitSecondarySubnet")) + if (content.Contains("EncryptionStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).CircuitSecondarySubnet = (string) content.GetValueForProperty("CircuitSecondarySubnet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).CircuitSecondarySubnet, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EncryptionStatus = (string) content.GetValueForProperty("EncryptionStatus",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EncryptionStatus, global::System.Convert.ToString); } - if (content.Contains("EndpointNsxtManager")) + if (content.Contains("KeyVaultPropertyKeyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointNsxtManager = (string) content.GetValueForProperty("EndpointNsxtManager",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointNsxtManager, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyKeyName = (string) content.GetValueForProperty("KeyVaultPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyKeyName, global::System.Convert.ToString); } - if (content.Contains("EndpointVcsa")) + if (content.Contains("KeyVaultPropertyKeyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointVcsa = (string) content.GetValueForProperty("EndpointVcsa",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointVcsa, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyKeyVersion = (string) content.GetValueForProperty("KeyVaultPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyKeyVersion, global::System.Convert.ToString); } if (content.Contains("CircuitExpressRouteId")) { @@ -277,6 +277,14 @@ internal PrivateCloudProperties(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointHcxCloudManager = (string) content.GetValueForProperty("EndpointHcxCloudManager",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointHcxCloudManager, global::System.Convert.ToString); } + if (content.Contains("EndpointNsxtManagerIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointNsxtManagerIP = (string) content.GetValueForProperty("EndpointNsxtManagerIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointNsxtManagerIP, global::System.Convert.ToString); + } + if (content.Contains("EndpointHcxCloudManagerIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointHcxCloudManagerIP = (string) content.GetValueForProperty("EndpointHcxCloudManagerIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointHcxCloudManagerIP, global::System.Convert.ToString); + } if (content.Contains("SecondaryCircuitPrimarySubnet")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).SecondaryCircuitPrimarySubnet = (string) content.GetValueForProperty("SecondaryCircuitPrimarySubnet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).SecondaryCircuitPrimarySubnet, global::System.Convert.ToString); @@ -293,6 +301,22 @@ internal PrivateCloudProperties(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).SecondaryCircuitExpressRoutePrivatePeeringId = (string) content.GetValueForProperty("SecondaryCircuitExpressRoutePrivatePeeringId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).SecondaryCircuitExpressRoutePrivatePeeringId, global::System.Convert.ToString); } + if (content.Contains("KeyVaultPropertyAutoDetectedKeyVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyAutoDetectedKeyVersion = (string) content.GetValueForProperty("KeyVaultPropertyAutoDetectedKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyAutoDetectedKeyVersion, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultPropertyKeyVaultUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyKeyVaultUrl = (string) content.GetValueForProperty("KeyVaultPropertyKeyVaultUrl",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyKeyVaultUrl, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultPropertyKeyState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyKeyState = (string) content.GetValueForProperty("KeyVaultPropertyKeyState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyKeyState, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultPropertyVersionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyVersionType = (string) content.GetValueForProperty("KeyVaultPropertyVersionType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyVersionType, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -310,6 +334,18 @@ internal PrivateCloudProperties(global::System.Management.Automation.PSObject co return; } // actually deserialize + if (content.Contains("ManagementCluster")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementCluster = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementCluster) content.GetValueForProperty("ManagementCluster",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementCluster, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ManagementClusterTypeConverter.ConvertFrom); + } + if (content.Contains("Availability")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).Availability = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties) content.GetValueForProperty("Availability",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).Availability, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AvailabilityPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Encryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).Encryption = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).Encryption, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.EncryptionTypeConverter.ConvertFrom); + } if (content.Contains("Circuit")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).Circuit = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuit) content.GetValueForProperty("Circuit",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).Circuit, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CircuitTypeConverter.ConvertFrom); @@ -322,6 +358,18 @@ internal PrivateCloudProperties(global::System.Management.Automation.PSObject co { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).SecondaryCircuit = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuit) content.GetValueForProperty("SecondaryCircuit",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).SecondaryCircuit, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CircuitTypeConverter.ConvertFrom); } + if (content.Contains("Internet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).Internet = (string) content.GetValueForProperty("Internet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).Internet, global::System.Convert.ToString); + } + if (content.Contains("IdentitySource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).IdentitySource = (System.Collections.Generic.List) content.GetValueForProperty("IdentitySource",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).IdentitySource, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IdentitySourceTypeConverter.ConvertFrom)); + } + if (content.Contains("ExtendedNetworkBlock")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ExtendedNetworkBlock = (System.Collections.Generic.List) content.GetValueForProperty("ExtendedNetworkBlock",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ExtendedNetworkBlock, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } if (content.Contains("ProvisioningState")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); @@ -344,11 +392,11 @@ internal PrivateCloudProperties(global::System.Management.Automation.PSObject co } if (content.Contains("VcenterPassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcenterPassword = (string) content.GetValueForProperty("VcenterPassword",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcenterPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcenterPassword = (System.Security.SecureString) content.GetValueForProperty("VcenterPassword",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcenterPassword, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("NsxtPassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).NsxtPassword = (string) content.GetValueForProperty("NsxtPassword",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).NsxtPassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).NsxtPassword = (System.Security.SecureString) content.GetValueForProperty("NsxtPassword",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).NsxtPassword, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("VcenterCertificateThumbprint")) { @@ -366,105 +414,81 @@ internal PrivateCloudProperties(global::System.Management.Automation.PSObject co { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).NsxPublicIPQuotaRaised = (string) content.GetValueForProperty("NsxPublicIPQuotaRaised",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).NsxPublicIPQuotaRaised, global::System.Convert.ToString); } - if (content.Contains("AvailabilityStrategy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).AvailabilityStrategy = (string) content.GetValueForProperty("AvailabilityStrategy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).AvailabilityStrategy, global::System.Convert.ToString); - } - if (content.Contains("ManagementClusterSize")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterSize = (int?) content.GetValueForProperty("ManagementClusterSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("ManagementClusterProvisioningState")) + if (content.Contains("VirtualNetworkId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterProvisioningState = (string) content.GetValueForProperty("ManagementClusterProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } - if (content.Contains("ManagementClusterId")) + if (content.Contains("DnsZoneType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterId = (int?) content.GetValueForProperty("ManagementClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).DnsZoneType = (string) content.GetValueForProperty("DnsZoneType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).DnsZoneType, global::System.Convert.ToString); } if (content.Contains("ManagementClusterHost")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterHost = (System.Collections.Generic.List) content.GetValueForProperty("ManagementClusterHost",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); - } - if (content.Contains("AvailabilityZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).AvailabilityZone = (int?) content.GetValueForProperty("AvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).AvailabilityZone, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("AvailabilitySecondaryZone")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).AvailabilitySecondaryZone = (int?) content.GetValueForProperty("AvailabilitySecondaryZone",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).AvailabilitySecondaryZone, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("EncryptionKeyVaultProperty")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).EncryptionKeyVaultProperty = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionKeyVaultProperties) content.GetValueForProperty("EncryptionKeyVaultProperty",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).EncryptionKeyVaultProperty, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.EncryptionKeyVaultPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterHost = (System.Collections.Generic.List) content.GetValueForProperty("ManagementClusterHost",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } - if (content.Contains("EncryptionStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).EncryptionStatus = (string) content.GetValueForProperty("EncryptionStatus",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).EncryptionStatus, global::System.Convert.ToString); - } - if (content.Contains("KeyVaultPropertyKeyName")) + if (content.Contains("AvailabilityStrategy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyKeyName = (string) content.GetValueForProperty("KeyVaultPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyKeyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).AvailabilityStrategy = (string) content.GetValueForProperty("AvailabilityStrategy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).AvailabilityStrategy, global::System.Convert.ToString); } - if (content.Contains("KeyVaultPropertyKeyVersion")) + if (content.Contains("CircuitPrimarySubnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyKeyVersion = (string) content.GetValueForProperty("KeyVaultPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyKeyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).CircuitPrimarySubnet = (string) content.GetValueForProperty("CircuitPrimarySubnet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).CircuitPrimarySubnet, global::System.Convert.ToString); } - if (content.Contains("KeyVaultPropertyAutoDetectedKeyVersion")) + if (content.Contains("CircuitSecondarySubnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyAutoDetectedKeyVersion = (string) content.GetValueForProperty("KeyVaultPropertyAutoDetectedKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyAutoDetectedKeyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).CircuitSecondarySubnet = (string) content.GetValueForProperty("CircuitSecondarySubnet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).CircuitSecondarySubnet, global::System.Convert.ToString); } - if (content.Contains("KeyVaultPropertyKeyVaultUrl")) + if (content.Contains("EndpointNsxtManager")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyKeyVaultUrl = (string) content.GetValueForProperty("KeyVaultPropertyKeyVaultUrl",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyKeyVaultUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointNsxtManager = (string) content.GetValueForProperty("EndpointNsxtManager",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointNsxtManager, global::System.Convert.ToString); } - if (content.Contains("KeyVaultPropertyKeyState")) + if (content.Contains("EndpointVcsa")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyKeyState = (string) content.GetValueForProperty("KeyVaultPropertyKeyState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyKeyState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointVcsa = (string) content.GetValueForProperty("EndpointVcsa",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointVcsa, global::System.Convert.ToString); } - if (content.Contains("KeyVaultPropertyVersionType")) + if (content.Contains("EndpointVcenterIP")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyVersionType = (string) content.GetValueForProperty("KeyVaultPropertyVersionType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).KeyVaultPropertyVersionType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointVcenterIP = (string) content.GetValueForProperty("EndpointVcenterIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointVcenterIP, global::System.Convert.ToString); } - if (content.Contains("ManagementCluster")) + if (content.Contains("ManagementClusterSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementCluster = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementCluster) content.GetValueForProperty("ManagementCluster",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementCluster, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ManagementClusterTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterSize = (int?) content.GetValueForProperty("ManagementClusterSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } - if (content.Contains("Availability")) + if (content.Contains("ManagementClusterProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).Availability = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties) content.GetValueForProperty("Availability",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).Availability, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AvailabilityPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterProvisioningState = (string) content.GetValueForProperty("ManagementClusterProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterProvisioningState, global::System.Convert.ToString); } - if (content.Contains("Encryption")) + if (content.Contains("ManagementClusterId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).Encryption = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).Encryption, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.EncryptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterId = (int?) content.GetValueForProperty("ManagementClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } - if (content.Contains("Internet")) + if (content.Contains("ManagementClusterVsanDatastoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).Internet = (string) content.GetValueForProperty("Internet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).Internet, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterVsanDatastoreName = (string) content.GetValueForProperty("ManagementClusterVsanDatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).ManagementClusterVsanDatastoreName, global::System.Convert.ToString); } - if (content.Contains("IdentitySource")) + if (content.Contains("AvailabilityZone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).IdentitySource = (System.Collections.Generic.List) content.GetValueForProperty("IdentitySource",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).IdentitySource, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IdentitySourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).AvailabilityZone = (int?) content.GetValueForProperty("AvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).AvailabilityZone, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } - if (content.Contains("ExtendedNetworkBlock")) + if (content.Contains("AvailabilitySecondaryZone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ExtendedNetworkBlock = (System.Collections.Generic.List) content.GetValueForProperty("ExtendedNetworkBlock",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ExtendedNetworkBlock, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).AvailabilitySecondaryZone = (int?) content.GetValueForProperty("AvailabilitySecondaryZone",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).AvailabilitySecondaryZone, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } - if (content.Contains("CircuitPrimarySubnet")) + if (content.Contains("EncryptionKeyVaultProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).CircuitPrimarySubnet = (string) content.GetValueForProperty("CircuitPrimarySubnet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).CircuitPrimarySubnet, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EncryptionKeyVaultProperty = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionKeyVaultProperties) content.GetValueForProperty("EncryptionKeyVaultProperty",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EncryptionKeyVaultProperty, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.EncryptionKeyVaultPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("CircuitSecondarySubnet")) + if (content.Contains("EncryptionStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).CircuitSecondarySubnet = (string) content.GetValueForProperty("CircuitSecondarySubnet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).CircuitSecondarySubnet, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EncryptionStatus = (string) content.GetValueForProperty("EncryptionStatus",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EncryptionStatus, global::System.Convert.ToString); } - if (content.Contains("EndpointNsxtManager")) + if (content.Contains("KeyVaultPropertyKeyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointNsxtManager = (string) content.GetValueForProperty("EndpointNsxtManager",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointNsxtManager, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyKeyName = (string) content.GetValueForProperty("KeyVaultPropertyKeyName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyKeyName, global::System.Convert.ToString); } - if (content.Contains("EndpointVcsa")) + if (content.Contains("KeyVaultPropertyKeyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointVcsa = (string) content.GetValueForProperty("EndpointVcsa",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointVcsa, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyKeyVersion = (string) content.GetValueForProperty("KeyVaultPropertyKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyKeyVersion, global::System.Convert.ToString); } if (content.Contains("CircuitExpressRouteId")) { @@ -478,6 +502,14 @@ internal PrivateCloudProperties(global::System.Management.Automation.PSObject co { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointHcxCloudManager = (string) content.GetValueForProperty("EndpointHcxCloudManager",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointHcxCloudManager, global::System.Convert.ToString); } + if (content.Contains("EndpointNsxtManagerIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointNsxtManagerIP = (string) content.GetValueForProperty("EndpointNsxtManagerIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointNsxtManagerIP, global::System.Convert.ToString); + } + if (content.Contains("EndpointHcxCloudManagerIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointHcxCloudManagerIP = (string) content.GetValueForProperty("EndpointHcxCloudManagerIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).EndpointHcxCloudManagerIP, global::System.Convert.ToString); + } if (content.Contains("SecondaryCircuitPrimarySubnet")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).SecondaryCircuitPrimarySubnet = (string) content.GetValueForProperty("SecondaryCircuitPrimarySubnet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).SecondaryCircuitPrimarySubnet, global::System.Convert.ToString); @@ -494,6 +526,22 @@ internal PrivateCloudProperties(global::System.Management.Automation.PSObject co { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).SecondaryCircuitExpressRoutePrivatePeeringId = (string) content.GetValueForProperty("SecondaryCircuitExpressRoutePrivatePeeringId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).SecondaryCircuitExpressRoutePrivatePeeringId, global::System.Convert.ToString); } + if (content.Contains("KeyVaultPropertyAutoDetectedKeyVersion")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyAutoDetectedKeyVersion = (string) content.GetValueForProperty("KeyVaultPropertyAutoDetectedKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyAutoDetectedKeyVersion, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultPropertyKeyVaultUrl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyKeyVaultUrl = (string) content.GetValueForProperty("KeyVaultPropertyKeyVaultUrl",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyKeyVaultUrl, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultPropertyKeyState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyKeyState = (string) content.GetValueForProperty("KeyVaultPropertyKeyState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyKeyState, global::System.Convert.ToString); + } + if (content.Contains("KeyVaultPropertyVersionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyVersionType = (string) content.GetValueForProperty("KeyVaultPropertyVersionType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).KeyVaultPropertyVersionType, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.cs index 09c50d4428d1..7078bae125b5 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.cs @@ -10,30 +10,27 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models /// The properties of a private cloud resource public partial class PrivateCloudProperties : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudProperties, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IValidates + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateProperties __privateCloudUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdateProperties(); + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties _availability; /// Properties describing how the cloud is distributed across availability zones - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties Availability { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).Availability; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).Availability = value ?? null /* model class */; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties Availability { get => (this._availability = this._availability ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AvailabilityProperties()); set => this._availability = value; } /// The secondary availability zone for the private cloud - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public int? AvailabilitySecondaryZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).AvailabilitySecondaryZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).AvailabilitySecondaryZone = value ?? default(int); } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public int? AvailabilitySecondaryZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityPropertiesInternal)Availability).SecondaryZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityPropertiesInternal)Availability).SecondaryZone = value ?? default(int); } /// The availability strategy for the private cloud - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string AvailabilityStrategy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).AvailabilityStrategy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).AvailabilityStrategy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string AvailabilityStrategy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityPropertiesInternal)Availability).Strategy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityPropertiesInternal)Availability).Strategy = value ?? null; } /// The primary availability zone for the private cloud - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public int? AvailabilityZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).AvailabilityZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).AvailabilityZone = value ?? default(int); } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public int? AvailabilityZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityPropertiesInternal)Availability).Zone; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityPropertiesInternal)Availability).Zone = value ?? default(int); } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuit _circuit; @@ -58,17 +55,23 @@ public partial class PrivateCloudProperties : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string CircuitSecondarySubnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuitInternal)Circuit).SecondarySubnet; } - /// Customer managed key encryption, can be enabled or disabled - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption Encryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).Encryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).Encryption = value ?? null /* model class */; } + /// Backing field for property. + private string _dnsZoneType; - /// The key vault where the encryption key is stored - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionKeyVaultProperties EncryptionKeyVaultProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).EncryptionKeyVaultProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).EncryptionKeyVaultProperty = value ?? null /* model class */; } + /// The type of DNS zone to use. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string DnsZoneType { get => this._dnsZoneType; set => this._dnsZoneType = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption _encryption; + + /// Customer managed key encryption, can be enabled or disabled + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption Encryption { get => (this._encryption = this._encryption ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Encryption()); set => this._encryption = value; } /// Status of customer managed encryption key - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string EncryptionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).EncryptionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).EncryptionStatus = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string EncryptionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).Status = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpoints _endpoint; @@ -77,25 +80,41 @@ public partial class PrivateCloudProperties : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpoints Endpoint { get => (this._endpoint = this._endpoint ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Endpoints()); } - /// Endpoint for the HCX Cloud Manager + /// Endpoint FQDN for the HCX Cloud Manager [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string EndpointHcxCloudManager { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).HcxCloudManager; } - /// Endpoint for the NSX-T Data Center manager + /// Endpoint IP for the HCX Cloud Manager + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string EndpointHcxCloudManagerIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).HcxCloudManagerIP; } + + /// Endpoint FQDN for the NSX-T Data Center manager [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string EndpointNsxtManager { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).NsxtManager; } - /// Endpoint for Virtual Center Server Appliance + /// Endpoint IP for the NSX-T Data Center manager + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string EndpointNsxtManagerIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).NsxtManagerIP; } + + /// Endpoint IP for Virtual Center Server Appliance + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string EndpointVcenterIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).VcenterIP; } + + /// Endpoint FQDN for Virtual Center Server Appliance [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string EndpointVcsa { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).Vcsa; } + /// Backing field for property. + private System.Collections.Generic.List _extendedNetworkBlock; + /// - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet - /// in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to /// (A.B.C.D/X). /// - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public System.Collections.Generic.List ExtendedNetworkBlock { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).ExtendedNetworkBlock; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).ExtendedNetworkBlock = value ?? null /* arrayOf */; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public System.Collections.Generic.List ExtendedNetworkBlock { get => this._extendedNetworkBlock; set => this._extendedNetworkBlock = value; } /// Backing field for property. private System.Collections.Generic.List _externalCloudLink; @@ -104,57 +123,70 @@ public partial class PrivateCloudProperties : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public System.Collections.Generic.List ExternalCloudLink { get => this._externalCloudLink; } + /// Backing field for property. + private System.Collections.Generic.List _identitySource; + /// vCenter Single Sign On Identity Sources - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public System.Collections.Generic.List IdentitySource { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).IdentitySource; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).IdentitySource = value ?? null /* arrayOf */; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public System.Collections.Generic.List IdentitySource { get => this._identitySource; set => this._identitySource = value; } + + /// Backing field for property. + private string _internet; /// Connectivity to internet is enabled or disabled - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string Internet { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).Internet; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).Internet = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string Internet { get => this._internet; set => this._internet = value; } /// The auto-detected version of the key if versionType is auto-detected. - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string KeyVaultPropertyAutoDetectedKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).KeyVaultPropertyAutoDetectedKeyVersion; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string KeyVaultPropertyAutoDetectedKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultPropertyAutoDetectedKeyVersion; } /// The name of the key. - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string KeyVaultPropertyKeyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).KeyVaultPropertyKeyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).KeyVaultPropertyKeyName = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string KeyVaultPropertyKeyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultPropertyKeyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultPropertyKeyName = value ?? null; } /// The state of key provided - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string KeyVaultPropertyKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).KeyVaultPropertyKeyState; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string KeyVaultPropertyKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultPropertyKeyState; } /// The URL of the vault. - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string KeyVaultPropertyKeyVaultUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).KeyVaultPropertyKeyVaultUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).KeyVaultPropertyKeyVaultUrl = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string KeyVaultPropertyKeyVaultUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultPropertyKeyVaultUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultPropertyKeyVaultUrl = value ?? null; } /// The version of the key. - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string KeyVaultPropertyKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).KeyVaultPropertyKeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).KeyVaultPropertyKeyVersion = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string KeyVaultPropertyKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultPropertyKeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultPropertyKeyVersion = value ?? null; } /// Property of the key if user provided or auto detected - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string KeyVaultPropertyVersionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).KeyVaultPropertyVersionType; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string KeyVaultPropertyVersionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultPropertyVersionType; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementCluster _managementCluster; /// The default cluster used for management - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementCluster ManagementCluster { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).ManagementCluster; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).ManagementCluster = value ?? null /* model class */; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementCluster ManagementCluster { get => (this._managementCluster = this._managementCluster ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ManagementCluster()); set => this._managementCluster = value; } /// The hosts - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public System.Collections.Generic.List ManagementClusterHost { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).ManagementClusterHost; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).ManagementClusterHost = value ?? null /* arrayOf */; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public System.Collections.Generic.List ManagementClusterHost { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).Host; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).Host = value ?? null /* arrayOf */; } /// The identity - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public int? ManagementClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).ManagementClusterId; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public int? ManagementClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).ClusterId; } /// The state of the cluster provisioning - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public string ManagementClusterProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).ManagementClusterProvisioningState; } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ManagementClusterProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).ProvisioningState; } /// The cluster size - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] - public int? ManagementClusterSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).ManagementClusterSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).ManagementClusterSize = value ?? default(int); } + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public int? ManagementClusterSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).ClusterSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).ClusterSize = value ?? default(int); } + + /// Name of the vsan datastore associated with the cluster + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ManagementClusterVsanDatastoreName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).VsanDatastoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).VsanDatastoreName = value ?? null; } /// Backing field for property. private string _managementNetwork; @@ -163,6 +195,9 @@ public partial class PrivateCloudProperties : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ManagementNetwork { get => this._managementNetwork; } + /// Internal Acessors for Availability + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.Availability { get => (this._availability = this._availability ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AvailabilityProperties()); set { {_availability = value;} } } + /// Internal Acessors for Circuit Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuit Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.Circuit { get => (this._circuit = this._circuit ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Circuit()); set { {_circuit = value;} } } @@ -178,21 +213,54 @@ public partial class PrivateCloudProperties : /// Internal Acessors for CircuitSecondarySubnet string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.CircuitSecondarySubnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuitInternal)Circuit).SecondarySubnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuitInternal)Circuit).SecondarySubnet = value; } + /// Internal Acessors for Encryption + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.Encryption { get => (this._encryption = this._encryption ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Encryption()); set { {_encryption = value;} } } + + /// Internal Acessors for EncryptionKeyVaultProperty + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionKeyVaultProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.EncryptionKeyVaultProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultProperty = value; } + /// Internal Acessors for Endpoint Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpoints Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.Endpoint { get => (this._endpoint = this._endpoint ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Endpoints()); set { {_endpoint = value;} } } /// Internal Acessors for EndpointHcxCloudManager string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.EndpointHcxCloudManager { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).HcxCloudManager; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).HcxCloudManager = value; } + /// Internal Acessors for EndpointHcxCloudManagerIP + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.EndpointHcxCloudManagerIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).HcxCloudManagerIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).HcxCloudManagerIP = value; } + /// Internal Acessors for EndpointNsxtManager string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.EndpointNsxtManager { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).NsxtManager; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).NsxtManager = value; } + /// Internal Acessors for EndpointNsxtManagerIP + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.EndpointNsxtManagerIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).NsxtManagerIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).NsxtManagerIP = value; } + + /// Internal Acessors for EndpointVcenterIP + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.EndpointVcenterIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).VcenterIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).VcenterIP = value; } + /// Internal Acessors for EndpointVcsa string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.EndpointVcsa { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).Vcsa; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpointsInternal)Endpoint).Vcsa = value; } /// Internal Acessors for ExternalCloudLink System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.ExternalCloudLink { get => this._externalCloudLink; set { {_externalCloudLink = value;} } } + /// Internal Acessors for KeyVaultPropertyAutoDetectedKeyVersion + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.KeyVaultPropertyAutoDetectedKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultPropertyAutoDetectedKeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultPropertyAutoDetectedKeyVersion = value; } + + /// Internal Acessors for KeyVaultPropertyKeyState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.KeyVaultPropertyKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultPropertyKeyState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultPropertyKeyState = value; } + + /// Internal Acessors for KeyVaultPropertyVersionType + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.KeyVaultPropertyVersionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultPropertyVersionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionInternal)Encryption).KeyVaultPropertyVersionType = value; } + + /// Internal Acessors for ManagementCluster + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementCluster Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.ManagementCluster { get => (this._managementCluster = this._managementCluster ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ManagementCluster()); set { {_managementCluster = value;} } } + + /// Internal Acessors for ManagementClusterId + int? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.ManagementClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).ClusterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).ClusterId = value; } + + /// Internal Acessors for ManagementClusterProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.ManagementClusterProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).ProvisioningState = value; } + /// Internal Acessors for ManagementNetwork string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.ManagementNetwork { get => this._managementNetwork; set { {_managementNetwork = value;} } } @@ -229,39 +297,13 @@ public partial class PrivateCloudProperties : /// Internal Acessors for VmotionNetwork string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.VmotionNetwork { get => this._vmotionNetwork; set { {_vmotionNetwork = value;} } } - /// Internal Acessors for Availability - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal.Availability { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).Availability; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).Availability = value; } - - /// Internal Acessors for Encryption - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal.Encryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).Encryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).Encryption = value; } - - /// Internal Acessors for EncryptionKeyVaultProperty - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionKeyVaultProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal.EncryptionKeyVaultProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).EncryptionKeyVaultProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).EncryptionKeyVaultProperty = value; } - - /// Internal Acessors for KeyVaultPropertyAutoDetectedKeyVersion - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal.KeyVaultPropertyAutoDetectedKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).KeyVaultPropertyAutoDetectedKeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).KeyVaultPropertyAutoDetectedKeyVersion = value; } - - /// Internal Acessors for KeyVaultPropertyKeyState - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal.KeyVaultPropertyKeyState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).KeyVaultPropertyKeyState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).KeyVaultPropertyKeyState = value; } - - /// Internal Acessors for KeyVaultPropertyVersionType - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal.KeyVaultPropertyVersionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).KeyVaultPropertyVersionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).KeyVaultPropertyVersionType = value; } - - /// Internal Acessors for ManagementCluster - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementCluster Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal.ManagementCluster { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).ManagementCluster; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).ManagementCluster = value; } - - /// Internal Acessors for ManagementClusterId - int? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal.ManagementClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).ManagementClusterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).ManagementClusterId = value; } - - /// Internal Acessors for ManagementClusterProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal.ManagementClusterProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).ManagementClusterProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)__privateCloudUpdateProperties).ManagementClusterProvisioningState = value; } - /// Backing field for property. private string _networkBlock; /// - /// The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format - /// is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22 + /// The block of addresses should be unique across VNet in your subscription as + /// well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where + /// A,B,C,D are between 0 and 255, and X is between 0 and 22 /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string NetworkBlock { get => this._networkBlock; set => this._networkBlock = value; } @@ -270,7 +312,8 @@ public partial class PrivateCloudProperties : private string _nsxPublicIPQuotaRaised; /// - /// Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024 + /// Flag to indicate whether the private cloud has the quota for provisioned NSX + /// Public IP count raised from 64 to 1024 /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string NsxPublicIPQuotaRaised { get => this._nsxPublicIPQuotaRaised; } @@ -283,11 +326,11 @@ public partial class PrivateCloudProperties : public string NsxtCertificateThumbprint { get => this._nsxtCertificateThumbprint; } /// Backing field for property. - private string _nsxtPassword; + private System.Security.SecureString _nsxtPassword; /// Optionally, set the NSX-T Manager password when the private cloud is created [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NsxtPassword { get => this._nsxtPassword; set => this._nsxtPassword = value; } + public System.Security.SecureString NsxtPassword { get => this._nsxtPassword; set => this._nsxtPassword = value; } /// Backing field for property. private string _provisioningNetwork; @@ -307,7 +350,8 @@ public partial class PrivateCloudProperties : private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuit _secondaryCircuit; /// - /// A secondary expressRoute circuit from a separate AZ. Only present in a stretched private cloud + /// A secondary expressRoute circuit from a separate AZ. Only present in a + /// stretched private cloud /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuit SecondaryCircuit { get => (this._secondaryCircuit = this._secondaryCircuit ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Circuit()); set => this._secondaryCircuit = value; } @@ -336,11 +380,18 @@ public partial class PrivateCloudProperties : public string VcenterCertificateThumbprint { get => this._vcenterCertificateThumbprint; } /// Backing field for property. - private string _vcenterPassword; + private System.Security.SecureString _vcenterPassword; /// Optionally, set the vCenter admin password when the private cloud is created [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string VcenterPassword { get => this._vcenterPassword; set => this._vcenterPassword = value; } + public System.Security.SecureString VcenterPassword { get => this._vcenterPassword; set => this._vcenterPassword = value; } + + /// Backing field for property. + private string _virtualNetworkId; + + /// Azure resource ID of the virtual network + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string VirtualNetworkId { get => this._virtualNetworkId; set => this._virtualNetworkId = value; } /// Backing field for property. private string _vmotionNetwork; @@ -354,24 +405,45 @@ public PrivateCloudProperties() { } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// A that will be complete when validation is completed. - /// - public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) - { - await eventListener.AssertNotNull(nameof(__privateCloudUpdateProperties), __privateCloudUpdateProperties); - await eventListener.AssertObjectIsValid(nameof(__privateCloudUpdateProperties), __privateCloudUpdateProperties); - } } /// The properties of a private cloud resource public partial interface IPrivateCloudProperties : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateProperties + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { + /// The secondary availability zone for the private cloud + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"The secondary availability zone for the private cloud", + SerializedName = @"secondaryZone", + PossibleTypes = new [] { typeof(int) })] + int? AvailabilitySecondaryZone { get; set; } + /// The availability strategy for the private cloud + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"The availability strategy for the private cloud", + SerializedName = @"strategy", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SingleZone", "DualZone")] + string AvailabilityStrategy { get; set; } + /// The primary availability zone for the private cloud + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"The primary availability zone for the private cloud", + SerializedName = @"zone", + PossibleTypes = new [] { typeof(int) })] + int? AvailabilityZone { get; set; } /// Identifier of the ExpressRoute Circuit (Microsoft Colo only) [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -416,39 +488,115 @@ public partial interface IPrivateCloudProperties : SerializedName = @"secondarySubnet", PossibleTypes = new [] { typeof(string) })] string CircuitSecondarySubnet { get; } - /// Endpoint for the HCX Cloud Manager + /// The type of DNS zone to use. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The type of DNS zone to use.", + SerializedName = @"dnsZoneType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Public", "Private")] + string DnsZoneType { get; set; } + /// Status of customer managed encryption key + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Status of customer managed encryption key", + SerializedName = @"status", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EncryptionStatus { get; set; } + /// Endpoint FQDN for the HCX Cloud Manager [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Endpoint for the HCX Cloud Manager", + Description = @"Endpoint FQDN for the HCX Cloud Manager", SerializedName = @"hcxCloudManager", PossibleTypes = new [] { typeof(string) })] string EndpointHcxCloudManager { get; } - /// Endpoint for the NSX-T Data Center manager + /// Endpoint IP for the HCX Cloud Manager + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Endpoint IP for the HCX Cloud Manager", + SerializedName = @"hcxCloudManagerIp", + PossibleTypes = new [] { typeof(string) })] + string EndpointHcxCloudManagerIP { get; } + /// Endpoint FQDN for the NSX-T Data Center manager [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Endpoint for the NSX-T Data Center manager", + Description = @"Endpoint FQDN for the NSX-T Data Center manager", SerializedName = @"nsxtManager", PossibleTypes = new [] { typeof(string) })] string EndpointNsxtManager { get; } - /// Endpoint for Virtual Center Server Appliance + /// Endpoint IP for the NSX-T Data Center manager + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Endpoint IP for the NSX-T Data Center manager", + SerializedName = @"nsxtManagerIp", + PossibleTypes = new [] { typeof(string) })] + string EndpointNsxtManagerIP { get; } + /// Endpoint IP for Virtual Center Server Appliance [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Endpoint for Virtual Center Server Appliance", + Description = @"Endpoint IP for Virtual Center Server Appliance", + SerializedName = @"vcenterIp", + PossibleTypes = new [] { typeof(string) })] + string EndpointVcenterIP { get; } + /// Endpoint FQDN for Virtual Center Server Appliance + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Endpoint FQDN for Virtual Center Server Appliance", SerializedName = @"vcsa", PossibleTypes = new [] { typeof(string) })] string EndpointVcsa { get; } + /// + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// (A.B.C.D/X). + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Array of additional networks noncontiguous with networkBlock. Networks must be + unique and non-overlapping across VNet in your subscription, on-premise, and + this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + (A.B.C.D/X).", + SerializedName = @"extendedNetworkBlocks", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List ExtendedNetworkBlock { get; set; } /// Array of cloud link IDs from other clouds that connect to this one [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -460,6 +608,153 @@ public partial interface IPrivateCloudProperties : SerializedName = @"externalCloudLinks", PossibleTypes = new [] { typeof(string) })] System.Collections.Generic.List ExternalCloudLink { get; } + /// vCenter Single Sign On Identity Sources + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"vCenter Single Sign On Identity Sources", + SerializedName = @"identitySources", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource) })] + System.Collections.Generic.List IdentitySource { get; set; } + /// Connectivity to internet is enabled or disabled + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Connectivity to internet is enabled or disabled", + SerializedName = @"internet", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string Internet { get; set; } + /// The auto-detected version of the key if versionType is auto-detected. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The auto-detected version of the key if versionType is auto-detected.", + SerializedName = @"autoDetectedKeyVersion", + PossibleTypes = new [] { typeof(string) })] + string KeyVaultPropertyAutoDetectedKeyVersion { get; } + /// The name of the key. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the key.", + SerializedName = @"keyName", + PossibleTypes = new [] { typeof(string) })] + string KeyVaultPropertyKeyName { get; set; } + /// The state of key provided + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The state of key provided", + SerializedName = @"keyState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Connected", "AccessDenied")] + string KeyVaultPropertyKeyState { get; } + /// The URL of the vault. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The URL of the vault.", + SerializedName = @"keyVaultUrl", + PossibleTypes = new [] { typeof(string) })] + string KeyVaultPropertyKeyVaultUrl { get; set; } + /// The version of the key. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The version of the key.", + SerializedName = @"keyVersion", + PossibleTypes = new [] { typeof(string) })] + string KeyVaultPropertyKeyVersion { get; set; } + /// Property of the key if user provided or auto detected + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Property of the key if user provided or auto detected", + SerializedName = @"versionType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Fixed", "AutoDetected")] + string KeyVaultPropertyVersionType { get; } + /// The hosts + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The hosts", + SerializedName = @"hosts", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List ManagementClusterHost { get; set; } + /// The identity + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The identity", + SerializedName = @"clusterId", + PossibleTypes = new [] { typeof(int) })] + int? ManagementClusterId { get; } + /// The state of the cluster provisioning + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The state of the cluster provisioning", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Deleting", "Updating")] + string ManagementClusterProvisioningState { get; } + /// The cluster size + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The cluster size", + SerializedName = @"clusterSize", + PossibleTypes = new [] { typeof(int) })] + int? ManagementClusterSize { get; set; } + /// Name of the vsan datastore associated with the cluster + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Name of the vsan datastore associated with the cluster", + SerializedName = @"vsanDatastoreName", + PossibleTypes = new [] { typeof(string) })] + string ManagementClusterVsanDatastoreName { get; set; } /// Network used to access vCenter Server and NSX-T Manager [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -472,21 +767,25 @@ public partial interface IPrivateCloudProperties : PossibleTypes = new [] { typeof(string) })] string ManagementNetwork { get; } /// - /// The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format - /// is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22 + /// The block of addresses should be unique across VNet in your subscription as + /// well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where + /// A,B,C,D are between 0 and 255, and X is between 0 and 22 /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, - Update = false, - Description = @"The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22", + Update = true, + Description = @"The block of addresses should be unique across VNet in your subscription as + well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where + A,B,C,D are between 0 and 255, and X is between 0 and 22", SerializedName = @"networkBlock", PossibleTypes = new [] { typeof(string) })] string NetworkBlock { get; set; } /// - /// Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024 + /// Flag to indicate whether the private cloud has the quota for provisioned NSX + /// Public IP count raised from 64 to 1024 /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -494,7 +793,8 @@ public partial interface IPrivateCloudProperties : Read = true, Create = false, Update = false, - Description = @"Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024", + Description = @"Flag to indicate whether the private cloud has the quota for provisioned NSX + Public IP count raised from 64 to 1024", SerializedName = @"nsxPublicIpQuotaRaised", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] @@ -519,8 +819,8 @@ public partial interface IPrivateCloudProperties : Update = true, Description = @"Optionally, set the NSX-T Manager password when the private cloud is created", SerializedName = @"nsxtPassword", - PossibleTypes = new [] { typeof(string) })] - string NsxtPassword { get; set; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString NsxtPassword { get; set; } /// Used for virtual machine cold migration, cloning, and snapshot migration [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -542,7 +842,7 @@ public partial interface IPrivateCloudProperties : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Pending", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Pending", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// Identifier of the ExpressRoute Circuit (Microsoft Colo only) [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -608,8 +908,19 @@ public partial interface IPrivateCloudProperties : Update = true, Description = @"Optionally, set the vCenter admin password when the private cloud is created", SerializedName = @"vcenterPassword", + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString VcenterPassword { get; set; } + /// Azure resource ID of the virtual network + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = false, + Description = @"Azure resource ID of the virtual network", + SerializedName = @"virtualNetworkId", PossibleTypes = new [] { typeof(string) })] - string VcenterPassword { get; set; } + string VirtualNetworkId { get; set; } /// Used for live migration of virtual machines [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -624,9 +935,18 @@ public partial interface IPrivateCloudProperties : } /// The properties of a private cloud resource - internal partial interface IPrivateCloudPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal + internal partial interface IPrivateCloudPropertiesInternal + { + /// Properties describing how the cloud is distributed across availability zones + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties Availability { get; set; } + /// The secondary availability zone for the private cloud + int? AvailabilitySecondaryZone { get; set; } + /// The availability strategy for the private cloud + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SingleZone", "DualZone")] + string AvailabilityStrategy { get; set; } + /// The primary availability zone for the private cloud + int? AvailabilityZone { get; set; } /// An ExpressRoute Circuit Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuit Circuit { get; set; } /// Identifier of the ExpressRoute Circuit (Microsoft Colo only) @@ -637,39 +957,97 @@ internal partial interface IPrivateCloudPropertiesInternal : string CircuitPrimarySubnet { get; set; } /// CIDR of secondary subnet string CircuitSecondarySubnet { get; set; } + /// The type of DNS zone to use. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Public", "Private")] + string DnsZoneType { get; set; } + /// Customer managed key encryption, can be enabled or disabled + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption Encryption { get; set; } + /// The key vault where the encryption key is stored + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionKeyVaultProperties EncryptionKeyVaultProperty { get; set; } + /// Status of customer managed encryption key + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string EncryptionStatus { get; set; } /// The endpoints Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEndpoints Endpoint { get; set; } - /// Endpoint for the HCX Cloud Manager + /// Endpoint FQDN for the HCX Cloud Manager string EndpointHcxCloudManager { get; set; } - /// Endpoint for the NSX-T Data Center manager + /// Endpoint IP for the HCX Cloud Manager + string EndpointHcxCloudManagerIP { get; set; } + /// Endpoint FQDN for the NSX-T Data Center manager string EndpointNsxtManager { get; set; } - /// Endpoint for Virtual Center Server Appliance + /// Endpoint IP for the NSX-T Data Center manager + string EndpointNsxtManagerIP { get; set; } + /// Endpoint IP for Virtual Center Server Appliance + string EndpointVcenterIP { get; set; } + /// Endpoint FQDN for Virtual Center Server Appliance string EndpointVcsa { get; set; } + /// + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// (A.B.C.D/X). + /// + System.Collections.Generic.List ExtendedNetworkBlock { get; set; } /// Array of cloud link IDs from other clouds that connect to this one System.Collections.Generic.List ExternalCloudLink { get; set; } + /// vCenter Single Sign On Identity Sources + System.Collections.Generic.List IdentitySource { get; set; } + /// Connectivity to internet is enabled or disabled + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] + string Internet { get; set; } + /// The auto-detected version of the key if versionType is auto-detected. + string KeyVaultPropertyAutoDetectedKeyVersion { get; set; } + /// The name of the key. + string KeyVaultPropertyKeyName { get; set; } + /// The state of key provided + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Connected", "AccessDenied")] + string KeyVaultPropertyKeyState { get; set; } + /// The URL of the vault. + string KeyVaultPropertyKeyVaultUrl { get; set; } + /// The version of the key. + string KeyVaultPropertyKeyVersion { get; set; } + /// Property of the key if user provided or auto detected + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Fixed", "AutoDetected")] + string KeyVaultPropertyVersionType { get; set; } + /// The default cluster used for management + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementCluster ManagementCluster { get; set; } + /// The hosts + System.Collections.Generic.List ManagementClusterHost { get; set; } + /// The identity + int? ManagementClusterId { get; set; } + /// The state of the cluster provisioning + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Deleting", "Updating")] + string ManagementClusterProvisioningState { get; set; } + /// The cluster size + int? ManagementClusterSize { get; set; } + /// Name of the vsan datastore associated with the cluster + string ManagementClusterVsanDatastoreName { get; set; } /// Network used to access vCenter Server and NSX-T Manager string ManagementNetwork { get; set; } /// - /// The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format - /// is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22 + /// The block of addresses should be unique across VNet in your subscription as + /// well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where + /// A,B,C,D are between 0 and 255, and X is between 0 and 22 /// string NetworkBlock { get; set; } /// - /// Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024 + /// Flag to indicate whether the private cloud has the quota for provisioned NSX + /// Public IP count raised from 64 to 1024 /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] string NsxPublicIPQuotaRaised { get; set; } /// Thumbprint of the NSX-T Manager SSL certificate string NsxtCertificateThumbprint { get; set; } /// Optionally, set the NSX-T Manager password when the private cloud is created - string NsxtPassword { get; set; } + System.Security.SecureString NsxtPassword { get; set; } /// Used for virtual machine cold migration, cloning, and snapshot migration string ProvisioningNetwork { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Pending", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Pending", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// - /// A secondary expressRoute circuit from a separate AZ. Only present in a stretched private cloud + /// A secondary expressRoute circuit from a separate AZ. Only present in a + /// stretched private cloud /// Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICircuit SecondaryCircuit { get; set; } /// Identifier of the ExpressRoute Circuit (Microsoft Colo only) @@ -683,7 +1061,9 @@ internal partial interface IPrivateCloudPropertiesInternal : /// Thumbprint of the vCenter Server SSL certificate string VcenterCertificateThumbprint { get; set; } /// Optionally, set the vCenter admin password when the private cloud is created - string VcenterPassword { get; set; } + System.Security.SecureString VcenterPassword { get; set; } + /// Azure resource ID of the virtual network + string VirtualNetworkId { get; set; } /// Used for live migration of virtual machines string VmotionNetwork { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.json.cs index 68ea9f7b1fe2..e277520fbfb4 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.json.cs @@ -77,21 +77,28 @@ internal PrivateCloudProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtim { return; } - __privateCloudUpdateProperties = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdateProperties(json); + {_managementCluster = If( json?.PropertyT("managementCluster"), out var __jsonManagementCluster) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ManagementCluster.FromJson(__jsonManagementCluster) : _managementCluster;} + {_availability = If( json?.PropertyT("availability"), out var __jsonAvailability) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AvailabilityProperties.FromJson(__jsonAvailability) : _availability;} + {_encryption = If( json?.PropertyT("encryption"), out var __jsonEncryption) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Encryption.FromJson(__jsonEncryption) : _encryption;} {_circuit = If( json?.PropertyT("circuit"), out var __jsonCircuit) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Circuit.FromJson(__jsonCircuit) : _circuit;} {_endpoint = If( json?.PropertyT("endpoints"), out var __jsonEndpoints) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Endpoints.FromJson(__jsonEndpoints) : _endpoint;} {_secondaryCircuit = If( json?.PropertyT("secondaryCircuit"), out var __jsonSecondaryCircuit) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Circuit.FromJson(__jsonSecondaryCircuit) : _secondaryCircuit;} + {_internet = If( json?.PropertyT("internet"), out var __jsonInternet) ? (string)__jsonInternet : (string)_internet;} + {_identitySource = If( json?.PropertyT("identitySources"), out var __jsonIdentitySources) ? If( __jsonIdentitySources as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource) (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IdentitySource.FromJson(__u) )) ))() : null : _identitySource;} + {_extendedNetworkBlock = If( json?.PropertyT("extendedNetworkBlocks"), out var __jsonExtendedNetworkBlocks) ? If( __jsonExtendedNetworkBlocks as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : _extendedNetworkBlock;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} {_networkBlock = If( json?.PropertyT("networkBlock"), out var __jsonNetworkBlock) ? (string)__jsonNetworkBlock : (string)_networkBlock;} {_managementNetwork = If( json?.PropertyT("managementNetwork"), out var __jsonManagementNetwork) ? (string)__jsonManagementNetwork : (string)_managementNetwork;} {_provisioningNetwork = If( json?.PropertyT("provisioningNetwork"), out var __jsonProvisioningNetwork) ? (string)__jsonProvisioningNetwork : (string)_provisioningNetwork;} {_vmotionNetwork = If( json?.PropertyT("vmotionNetwork"), out var __jsonVmotionNetwork) ? (string)__jsonVmotionNetwork : (string)_vmotionNetwork;} - {_vcenterPassword = If( json?.PropertyT("vcenterPassword"), out var __jsonVcenterPassword) ? (string)__jsonVcenterPassword : (string)_vcenterPassword;} - {_nsxtPassword = If( json?.PropertyT("nsxtPassword"), out var __jsonNsxtPassword) ? (string)__jsonNsxtPassword : (string)_nsxtPassword;} + {_vcenterPassword = If( json?.PropertyT("vcenterPassword"), out var __jsonVcenterPassword) ? new System.Net.NetworkCredential("",(string)__jsonVcenterPassword).SecurePassword : _vcenterPassword;} + {_nsxtPassword = If( json?.PropertyT("nsxtPassword"), out var __jsonNsxtPassword) ? new System.Net.NetworkCredential("",(string)__jsonNsxtPassword).SecurePassword : _nsxtPassword;} {_vcenterCertificateThumbprint = If( json?.PropertyT("vcenterCertificateThumbprint"), out var __jsonVcenterCertificateThumbprint) ? (string)__jsonVcenterCertificateThumbprint : (string)_vcenterCertificateThumbprint;} {_nsxtCertificateThumbprint = If( json?.PropertyT("nsxtCertificateThumbprint"), out var __jsonNsxtCertificateThumbprint) ? (string)__jsonNsxtCertificateThumbprint : (string)_nsxtCertificateThumbprint;} - {_externalCloudLink = If( json?.PropertyT("externalCloudLinks"), out var __jsonExternalCloudLinks) ? If( __jsonExternalCloudLinks as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _externalCloudLink;} + {_externalCloudLink = If( json?.PropertyT("externalCloudLinks"), out var __jsonExternalCloudLinks) ? If( __jsonExternalCloudLinks as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __l) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__l, (__k)=>(string) (__k is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString __j ? (string)(__j.ToString()) : null)) ))() : null : _externalCloudLink;} {_nsxPublicIPQuotaRaised = If( json?.PropertyT("nsxPublicIpQuotaRaised"), out var __jsonNsxPublicIPQuotaRaised) ? (string)__jsonNsxPublicIPQuotaRaised : (string)_nsxPublicIPQuotaRaised;} + {_virtualNetworkId = If( json?.PropertyT("virtualNetworkId"), out var __jsonVirtualNetworkId) ? (string)__jsonVirtualNetworkId : (string)_virtualNetworkId;} + {_dnsZoneType = If( json?.PropertyT("dnsZoneType"), out var __jsonDnsZoneType) ? (string)__jsonDnsZoneType : (string)_dnsZoneType;} AfterFromJson(json); } @@ -114,21 +121,42 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - __privateCloudUpdateProperties?.ToJson(container, serializationMode); + AddIf( null != this._managementCluster ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._managementCluster.ToJson(null,serializationMode) : null, "managementCluster" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._availability ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._availability.ToJson(null,serializationMode) : null, "availability" ,container.Add ); + } + AddIf( null != this._encryption ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._encryption.ToJson(null,serializationMode) : null, "encryption" ,container.Add ); AddIf( null != this._circuit ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._circuit.ToJson(null,serializationMode) : null, "circuit" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { AddIf( null != this._endpoint ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._endpoint.ToJson(null,serializationMode) : null, "endpoints" ,container.Add ); } AddIf( null != this._secondaryCircuit ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._secondaryCircuit.ToJson(null,serializationMode) : null, "secondaryCircuit" ,container.Add ); - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + AddIf( null != (((object)this._internet)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._internet.ToString()) : null, "internet" ,container.Add ); + if (null != this._identitySource) { - AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._identitySource ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("identitySources",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + if (null != this._extendedNetworkBlock) { - AddIf( null != (((object)this._networkBlock)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._networkBlock.ToString()) : null, "networkBlock" ,container.Add ); + var __r = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __s in this._extendedNetworkBlock ) + { + AddIf(null != (((object)__s)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(__s.ToString()) : null ,__r.Add); + } + container.Add("extendedNetworkBlocks",__r); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); } + AddIf( null != (((object)this._networkBlock)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._networkBlock.ToString()) : null, "networkBlock" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._managementNetwork)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._managementNetwork.ToString()) : null, "managementNetwork" ,container.Add ); @@ -141,8 +169,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { AddIf( null != (((object)this._vmotionNetwork)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._vmotionNetwork.ToString()) : null, "vmotionNetwork" ,container.Add ); } - AddIf( null != (((object)this._vcenterPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._vcenterPassword.ToString()) : null, "vcenterPassword" ,container.Add ); - AddIf( null != (((object)this._nsxtPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nsxtPassword.ToString()) : null, "nsxtPassword" ,container.Add ); + AddIf( null != (((object)this._vcenterPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(System.Runtime.InteropServices.Marshal.PtrToStringBSTR(System.Runtime.InteropServices.Marshal.SecureStringToBSTR(this._vcenterPassword))) : null, "vcenterPassword" ,container.Add ); + AddIf( null != (((object)this._nsxtPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(System.Runtime.InteropServices.Marshal.PtrToStringBSTR(System.Runtime.InteropServices.Marshal.SecureStringToBSTR(this._nsxtPassword))) : null, "nsxtPassword" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._vcenterCertificateThumbprint)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._vcenterCertificateThumbprint.ToString()) : null, "vcenterCertificateThumbprint" ,container.Add ); @@ -155,18 +183,23 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { if (null != this._externalCloudLink) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._externalCloudLink ) + var __m = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __n in this._externalCloudLink ) { - AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + AddIf(null != (((object)__n)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(__n.ToString()) : null ,__m.Add); } - container.Add("externalCloudLinks",__w); + container.Add("externalCloudLinks",__m); } } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._nsxPublicIPQuotaRaised)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nsxPublicIPQuotaRaised.ToString()) : null, "nsxPublicIpQuotaRaised" ,container.Add ); } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != (((object)this._virtualNetworkId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._virtualNetworkId.ToString()) : null, "virtualNetworkId" ,container.Add ); + } + AddIf( null != (((object)this._dnsZoneType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._dnsZoneType.ToString()) : null, "dnsZoneType" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdate.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdate.PowerShell.cs index bd1aa9ec47d0..bf66f70cf385 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdate.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdate.PowerShell.cs @@ -109,17 +109,41 @@ internal PrivateCloudUpdate(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("Property")) + if (content.Contains("Sku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SkuTypeConverter.ConvertFrom); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemAssignedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdateTagsTypeConverter.ConvertFrom); + } + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("SkuTier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuTier, global::System.Convert.ToString); + } + if (content.Contains("SkuSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuSize, global::System.Convert.ToString); + } + if (content.Contains("SkuFamily")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuCapacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ManagementCluster")) { @@ -129,6 +153,18 @@ internal PrivateCloudUpdate(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Encryption = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Encryption, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.EncryptionTypeConverter.ConvertFrom); } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityType, global::System.Convert.ToString); + } if (content.Contains("Availability")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Availability = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties) content.GetValueForProperty("Availability",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Availability, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AvailabilityPropertiesTypeConverter.ConvertFrom); @@ -145,21 +181,17 @@ internal PrivateCloudUpdate(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ExtendedNetworkBlock = (System.Collections.Generic.List) content.GetValueForProperty("ExtendedNetworkBlock",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ExtendedNetworkBlock, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } - if (content.Contains("AvailabilityStrategy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).AvailabilityStrategy = (string) content.GetValueForProperty("AvailabilityStrategy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).AvailabilityStrategy, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) + if (content.Contains("DnsZoneType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).DnsZoneType = (string) content.GetValueForProperty("DnsZoneType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).DnsZoneType, global::System.Convert.ToString); } - if (content.Contains("IdentityTenantId")) + if (content.Contains("ManagementClusterHost")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ManagementClusterHost = (System.Collections.Generic.List) content.GetValueForProperty("ManagementClusterHost",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } - if (content.Contains("IdentityType")) + if (content.Contains("AvailabilityStrategy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).AvailabilityStrategy = (string) content.GetValueForProperty("AvailabilityStrategy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).AvailabilityStrategy, global::System.Convert.ToString); } if (content.Contains("ManagementClusterSize")) { @@ -173,9 +205,9 @@ internal PrivateCloudUpdate(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ManagementClusterId = (int?) content.GetValueForProperty("ManagementClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ManagementClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } - if (content.Contains("ManagementClusterHost")) + if (content.Contains("ManagementClusterVsanDatastoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ManagementClusterHost = (System.Collections.Generic.List) content.GetValueForProperty("ManagementClusterHost",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ManagementClusterVsanDatastoreName = (string) content.GetValueForProperty("ManagementClusterVsanDatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ManagementClusterVsanDatastoreName, global::System.Convert.ToString); } if (content.Contains("AvailabilityZone")) { @@ -234,17 +266,41 @@ internal PrivateCloudUpdate(global::System.Management.Automation.PSObject conten return; } // actually deserialize - if (content.Contains("Property")) + if (content.Contains("Sku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdatePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SkuTypeConverter.ConvertFrom); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemAssignedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdatePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdateTagsTypeConverter.ConvertFrom); + } + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuName, global::System.Convert.ToString); + } + if (content.Contains("SkuTier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuTier, global::System.Convert.ToString); + } + if (content.Contains("SkuSize")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuSize, global::System.Convert.ToString); + } + if (content.Contains("SkuFamily")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuCapacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ManagementCluster")) { @@ -254,6 +310,18 @@ internal PrivateCloudUpdate(global::System.Management.Automation.PSObject conten { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Encryption = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption) content.GetValueForProperty("Encryption",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Encryption, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.EncryptionTypeConverter.ConvertFrom); } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityType, global::System.Convert.ToString); + } if (content.Contains("Availability")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Availability = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties) content.GetValueForProperty("Availability",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).Availability, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AvailabilityPropertiesTypeConverter.ConvertFrom); @@ -270,21 +338,17 @@ internal PrivateCloudUpdate(global::System.Management.Automation.PSObject conten { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ExtendedNetworkBlock = (System.Collections.Generic.List) content.GetValueForProperty("ExtendedNetworkBlock",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ExtendedNetworkBlock, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } - if (content.Contains("AvailabilityStrategy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).AvailabilityStrategy = (string) content.GetValueForProperty("AvailabilityStrategy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).AvailabilityStrategy, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) + if (content.Contains("DnsZoneType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).DnsZoneType = (string) content.GetValueForProperty("DnsZoneType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).DnsZoneType, global::System.Convert.ToString); } - if (content.Contains("IdentityTenantId")) + if (content.Contains("ManagementClusterHost")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ManagementClusterHost = (System.Collections.Generic.List) content.GetValueForProperty("ManagementClusterHost",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } - if (content.Contains("IdentityType")) + if (content.Contains("AvailabilityStrategy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).AvailabilityStrategy = (string) content.GetValueForProperty("AvailabilityStrategy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).AvailabilityStrategy, global::System.Convert.ToString); } if (content.Contains("ManagementClusterSize")) { @@ -298,9 +362,9 @@ internal PrivateCloudUpdate(global::System.Management.Automation.PSObject conten { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ManagementClusterId = (int?) content.GetValueForProperty("ManagementClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ManagementClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } - if (content.Contains("ManagementClusterHost")) + if (content.Contains("ManagementClusterVsanDatastoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ManagementClusterHost = (System.Collections.Generic.List) content.GetValueForProperty("ManagementClusterHost",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ManagementClusterVsanDatastoreName = (string) content.GetValueForProperty("ManagementClusterVsanDatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal)this).ManagementClusterVsanDatastoreName, global::System.Convert.ToString); } if (content.Contains("AvailabilityZone")) { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdate.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdate.cs index e0d053ce698f..388737555041 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdate.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdate.cs @@ -25,47 +25,49 @@ public partial class PrivateCloudUpdate : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public int? AvailabilityZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).AvailabilityZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).AvailabilityZone = value ?? default(int); } + /// The type of DNS zone to use. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string DnsZoneType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).DnsZoneType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).DnsZoneType = value ?? null; } + /// Status of customer managed encryption key [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string EncryptionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).EncryptionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).EncryptionStatus = value ?? null; } /// - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet - /// in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to /// (A.B.C.D/X). /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public System.Collections.Generic.List ExtendedNetworkBlock { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ExtendedNetworkBlock; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ExtendedNetworkBlock = value ?? null /* arrayOf */; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity _identity; + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity _identity; - /// The identity of the private cloud, if configured. + /// The managed service identities assigned to this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudIdentity()); set => this._identity = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemAssignedServiceIdentity()); set => this._identity = value; } /// - /// The principal ID of private cloud identity. This property will only be provided for a system assigned identity. + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)Identity).PrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)Identity).PrincipalId; } /// vCenter Single Sign On Identity Sources [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public System.Collections.Generic.List IdentitySource { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).IdentitySource; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).IdentitySource = value ?? null /* arrayOf */; } /// - /// The tenant ID associated with the private cloud. This property will only be provided for a system assigned identity. + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)Identity).TenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)Identity).TenantId; } - /// - /// The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The - /// type 'None' will remove any identities from the Private Cloud. - /// + /// Type of managed service identity (either system assigned, or none). [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)Identity).Type = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)Identity).Type = value ?? null; } /// Connectivity to internet is enabled or disabled [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] @@ -111,6 +113,10 @@ public partial class PrivateCloudUpdate : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public int? ManagementClusterSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ManagementClusterSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ManagementClusterSize = value ?? default(int); } + /// Name of the vsan datastore associated with the cluster + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ManagementClusterVsanDatastoreName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ManagementClusterVsanDatastoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).ManagementClusterVsanDatastoreName = value ?? null; } + /// Internal Acessors for Availability Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal.Availability { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).Availability; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).Availability = value; } @@ -121,13 +127,13 @@ public partial class PrivateCloudUpdate : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryptionKeyVaultProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal.EncryptionKeyVaultProperty { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).EncryptionKeyVaultProperty; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).EncryptionKeyVaultProperty = value; } /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudIdentity()); set { {_identity = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemAssignedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)Identity).PrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)Identity).TenantId = value; } /// Internal Acessors for KeyVaultPropertyAutoDetectedKeyVersion string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal.KeyVaultPropertyAutoDetectedKeyVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyAutoDetectedKeyVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)Property).KeyVaultPropertyAutoDetectedKeyVersion = value; } @@ -150,6 +156,9 @@ public partial class PrivateCloudUpdate : /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdateProperties()); set { {_property = value;} } } + /// Internal Acessors for Sku + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Sku()); set { {_sku = value;} } } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateProperties _property; @@ -157,12 +166,49 @@ public partial class PrivateCloudUpdate : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdateProperties()); set => this._property = value; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku _sku; + + /// The SKU (Stock Keeping Unit) assigned to this resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Sku()); set => this._sku = value; } + + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public int? SkuCapacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Capacity = value ?? default(int); } + + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Family = value ?? null; } + + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Name = value ?? null; } + + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SkuSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Size; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Size = value ?? null; } + + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SkuTier { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Tier; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)Sku).Tier = value ?? null; } + /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTags _tag; - /// Resource tags + /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ResourceTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdateTags()); set => this._tag = value; } /// Creates an new instance. public PrivateCloudUpdate() @@ -208,6 +254,18 @@ public partial interface IPrivateCloudUpdate : SerializedName = @"zone", PossibleTypes = new [] { typeof(int) })] int? AvailabilityZone { get; set; } + /// The type of DNS zone to use. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The type of DNS zone to use.", + SerializedName = @"dnsZoneType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Public", "Private")] + string DnsZoneType { get; set; } /// Status of customer managed encryption key [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -221,8 +279,9 @@ public partial interface IPrivateCloudUpdate : [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] string EncryptionStatus { get; set; } /// - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet - /// in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to /// (A.B.C.D/X). /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -231,12 +290,15 @@ public partial interface IPrivateCloudUpdate : Read = true, Create = true, Update = true, - Description = @"Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X).", + Description = @"Array of additional networks noncontiguous with networkBlock. Networks must be + unique and non-overlapping across VNet in your subscription, on-premise, and + this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + (A.B.C.D/X).", SerializedName = @"extendedNetworkBlocks", PossibleTypes = new [] { typeof(string) })] System.Collections.Generic.List ExtendedNetworkBlock { get; set; } /// - /// The principal ID of private cloud identity. This property will only be provided for a system assigned identity. + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -244,7 +306,7 @@ public partial interface IPrivateCloudUpdate : Read = true, Create = false, Update = false, - Description = @"The principal ID of private cloud identity. This property will only be provided for a system assigned identity.", + Description = @"The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", SerializedName = @"principalId", PossibleTypes = new [] { typeof(string) })] string IdentityPrincipalId { get; } @@ -260,7 +322,7 @@ public partial interface IPrivateCloudUpdate : PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource) })] System.Collections.Generic.List IdentitySource { get; set; } /// - /// The tenant ID associated with the private cloud. This property will only be provided for a system assigned identity. + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -268,24 +330,21 @@ public partial interface IPrivateCloudUpdate : Read = true, Create = false, Update = false, - Description = @"The tenant ID associated with the private cloud. This property will only be provided for a system assigned identity.", + Description = @"The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", SerializedName = @"tenantId", PossibleTypes = new [] { typeof(string) })] string IdentityTenantId { get; } - /// - /// The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The - /// type 'None' will remove any identities from the Private Cloud. - /// + /// Type of managed service identity (either system assigned, or none). [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Private Cloud.", + Description = @"Type of managed service identity (either system assigned, or none).", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SystemAssigned", "None")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("None", "SystemAssigned")] string IdentityType { get; set; } /// Connectivity to internet is enabled or disabled [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -399,7 +458,7 @@ public partial interface IPrivateCloudUpdate : Description = @"The state of the cluster provisioning", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Deleting", "Updating")] string ManagementClusterProvisioningState { get; } /// The cluster size [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -412,17 +471,94 @@ public partial interface IPrivateCloudUpdate : SerializedName = @"clusterSize", PossibleTypes = new [] { typeof(int) })] int? ManagementClusterSize { get; set; } - /// Resource tags + /// Name of the vsan datastore associated with the cluster [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Resource tags", + Description = @"Name of the vsan datastore associated with the cluster", + SerializedName = @"vsanDatastoreName", + PossibleTypes = new [] { typeof(string) })] + string ManagementClusterVsanDatastoreName { get; set; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + string SkuFamily { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string SkuTier { get; set; } + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTags) })] + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTags Tag { get; set; } } /// An update to a private cloud resource @@ -438,6 +574,9 @@ internal partial interface IPrivateCloudUpdateInternal string AvailabilityStrategy { get; set; } /// The primary availability zone for the private cloud int? AvailabilityZone { get; set; } + /// The type of DNS zone to use. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Public", "Private")] + string DnsZoneType { get; set; } /// Customer managed key encryption, can be enabled or disabled Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption Encryption { get; set; } /// The key vault where the encryption key is stored @@ -446,28 +585,26 @@ internal partial interface IPrivateCloudUpdateInternal [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] string EncryptionStatus { get; set; } /// - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet - /// in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to /// (A.B.C.D/X). /// System.Collections.Generic.List ExtendedNetworkBlock { get; set; } - /// The identity of the private cloud, if configured. - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity Identity { get; set; } + /// The managed service identities assigned to this resource. + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity Identity { get; set; } /// - /// The principal ID of private cloud identity. This property will only be provided for a system assigned identity. + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// string IdentityPrincipalId { get; set; } /// vCenter Single Sign On Identity Sources System.Collections.Generic.List IdentitySource { get; set; } /// - /// The tenant ID associated with the private cloud. This property will only be provided for a system assigned identity. + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// string IdentityTenantId { get; set; } - /// - /// The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The - /// type 'None' will remove any identities from the Private Cloud. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SystemAssigned", "None")] + /// Type of managed service identity (either system assigned, or none). + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("None", "SystemAssigned")] string IdentityType { get; set; } /// Connectivity to internet is enabled or disabled [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] @@ -493,14 +630,39 @@ internal partial interface IPrivateCloudUpdateInternal /// The identity int? ManagementClusterId { get; set; } /// The state of the cluster provisioning - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Deleting", "Updating")] string ManagementClusterProvisioningState { get; set; } /// The cluster size int? ManagementClusterSize { get; set; } + /// Name of the vsan datastore associated with the cluster + string ManagementClusterVsanDatastoreName { get; set; } /// The updatable properties of a private cloud resource Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateProperties Property { get; set; } - /// Resource tags - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags Tag { get; set; } + /// The SKU (Stock Keeping Unit) assigned to this resource. + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku Sku { get; set; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + int? SkuCapacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + string SkuFamily { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code + string SkuName { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + string SkuSize { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string SkuTier { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdate.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdate.json.cs index 9659ff98c73e..521bb124f65f 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdate.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdate.json.cs @@ -77,9 +77,10 @@ internal PrivateCloudUpdate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Js { return; } + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Sku.FromJson(__jsonSku) : _sku;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemAssignedServiceIdentity.FromJson(__jsonIdentity) : _identity;} {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdateProperties.FromJson(__jsonProperties) : _property;} - {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudIdentity.FromJson(__jsonIdentity) : _identity;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ResourceTags.FromJson(__jsonTags) : _tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdateTags.FromJson(__jsonTags) : _tag;} AfterFromJson(json); } @@ -102,8 +103,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AddIf( null != this._sku ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._sku.ToJson(null,serializationMode) : null, "sku" ,container.Add ); AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateProperties.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateProperties.PowerShell.cs index b1a23b758e77..916c9025c505 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateProperties.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateProperties.PowerShell.cs @@ -133,6 +133,14 @@ internal PrivateCloudUpdateProperties(global::System.Collections.IDictionary con { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ExtendedNetworkBlock = (System.Collections.Generic.List) content.GetValueForProperty("ExtendedNetworkBlock",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ExtendedNetworkBlock, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } + if (content.Contains("DnsZoneType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).DnsZoneType = (string) content.GetValueForProperty("DnsZoneType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).DnsZoneType, global::System.Convert.ToString); + } + if (content.Contains("ManagementClusterHost")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterHost = (System.Collections.Generic.List) content.GetValueForProperty("ManagementClusterHost",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } if (content.Contains("AvailabilityStrategy")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).AvailabilityStrategy = (string) content.GetValueForProperty("AvailabilityStrategy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).AvailabilityStrategy, global::System.Convert.ToString); @@ -149,9 +157,9 @@ internal PrivateCloudUpdateProperties(global::System.Collections.IDictionary con { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterId = (int?) content.GetValueForProperty("ManagementClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } - if (content.Contains("ManagementClusterHost")) + if (content.Contains("ManagementClusterVsanDatastoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterHost = (System.Collections.Generic.List) content.GetValueForProperty("ManagementClusterHost",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterVsanDatastoreName = (string) content.GetValueForProperty("ManagementClusterVsanDatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterVsanDatastoreName, global::System.Convert.ToString); } if (content.Contains("AvailabilityZone")) { @@ -234,6 +242,14 @@ internal PrivateCloudUpdateProperties(global::System.Management.Automation.PSObj { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ExtendedNetworkBlock = (System.Collections.Generic.List) content.GetValueForProperty("ExtendedNetworkBlock",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ExtendedNetworkBlock, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } + if (content.Contains("DnsZoneType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).DnsZoneType = (string) content.GetValueForProperty("DnsZoneType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).DnsZoneType, global::System.Convert.ToString); + } + if (content.Contains("ManagementClusterHost")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterHost = (System.Collections.Generic.List) content.GetValueForProperty("ManagementClusterHost",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } if (content.Contains("AvailabilityStrategy")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).AvailabilityStrategy = (string) content.GetValueForProperty("AvailabilityStrategy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).AvailabilityStrategy, global::System.Convert.ToString); @@ -250,9 +266,9 @@ internal PrivateCloudUpdateProperties(global::System.Management.Automation.PSObj { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterId = (int?) content.GetValueForProperty("ManagementClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } - if (content.Contains("ManagementClusterHost")) + if (content.Contains("ManagementClusterVsanDatastoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterHost = (System.Collections.Generic.List) content.GetValueForProperty("ManagementClusterHost",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterHost, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterVsanDatastoreName = (string) content.GetValueForProperty("ManagementClusterVsanDatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal)this).ManagementClusterVsanDatastoreName, global::System.Convert.ToString); } if (content.Contains("AvailabilityZone")) { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateProperties.cs index dd4a0dea2baf..4e9c4242aa55 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateProperties.cs @@ -32,6 +32,13 @@ public partial class PrivateCloudUpdateProperties : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public int? AvailabilityZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityPropertiesInternal)Availability).Zone; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityPropertiesInternal)Availability).Zone = value ?? default(int); } + /// Backing field for property. + private string _dnsZoneType; + + /// The type of DNS zone to use. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string DnsZoneType { get => this._dnsZoneType; set => this._dnsZoneType = value; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption _encryption; @@ -47,8 +54,9 @@ public partial class PrivateCloudUpdateProperties : private System.Collections.Generic.List _extendedNetworkBlock; /// - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet - /// in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to /// (A.B.C.D/X). /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] @@ -101,19 +109,23 @@ public partial class PrivateCloudUpdateProperties : /// The hosts [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public System.Collections.Generic.List ManagementClusterHost { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)ManagementCluster).Host; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)ManagementCluster).Host = value ?? null /* arrayOf */; } + public System.Collections.Generic.List ManagementClusterHost { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).Host; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).Host = value ?? null /* arrayOf */; } /// The identity [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public int? ManagementClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)ManagementCluster).ClusterId; } + public int? ManagementClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).ClusterId; } /// The state of the cluster provisioning [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string ManagementClusterProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)ManagementCluster).ProvisioningState; } + public string ManagementClusterProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).ProvisioningState; } /// The cluster size [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public int? ManagementClusterSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)ManagementCluster).ClusterSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)ManagementCluster).ClusterSize = value ?? default(int); } + public int? ManagementClusterSize { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).ClusterSize; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).ClusterSize = value ?? default(int); } + + /// Name of the vsan datastore associated with the cluster + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ManagementClusterVsanDatastoreName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).VsanDatastoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).VsanDatastoreName = value ?? null; } /// Internal Acessors for Availability Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAvailabilityProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal.Availability { get => (this._availability = this._availability ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AvailabilityProperties()); set { {_availability = value;} } } @@ -137,10 +149,10 @@ public partial class PrivateCloudUpdateProperties : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementCluster Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal.ManagementCluster { get => (this._managementCluster = this._managementCluster ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ManagementCluster()); set { {_managementCluster = value;} } } /// Internal Acessors for ManagementClusterId - int? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal.ManagementClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)ManagementCluster).ClusterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)ManagementCluster).ClusterId = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal.ManagementClusterId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).ClusterId; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).ClusterId = value; } /// Internal Acessors for ManagementClusterProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal.ManagementClusterProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)ManagementCluster).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)ManagementCluster).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdatePropertiesInternal.ManagementClusterProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IManagementClusterInternal)ManagementCluster).ProvisioningState = value; } /// Creates an new instance. public PrivateCloudUpdateProperties() @@ -186,6 +198,18 @@ public partial interface IPrivateCloudUpdateProperties : SerializedName = @"zone", PossibleTypes = new [] { typeof(int) })] int? AvailabilityZone { get; set; } + /// The type of DNS zone to use. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The type of DNS zone to use.", + SerializedName = @"dnsZoneType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Public", "Private")] + string DnsZoneType { get; set; } /// Status of customer managed encryption key [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -199,8 +223,9 @@ public partial interface IPrivateCloudUpdateProperties : [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] string EncryptionStatus { get; set; } /// - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet - /// in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to /// (A.B.C.D/X). /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -209,7 +234,10 @@ public partial interface IPrivateCloudUpdateProperties : Read = true, Create = true, Update = true, - Description = @"Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X).", + Description = @"Array of additional networks noncontiguous with networkBlock. Networks must be + unique and non-overlapping across VNet in your subscription, on-premise, and + this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + (A.B.C.D/X).", SerializedName = @"extendedNetworkBlocks", PossibleTypes = new [] { typeof(string) })] System.Collections.Generic.List ExtendedNetworkBlock { get; set; } @@ -336,7 +364,7 @@ public partial interface IPrivateCloudUpdateProperties : Description = @"The state of the cluster provisioning", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Deleting", "Updating")] string ManagementClusterProvisioningState { get; } /// The cluster size [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -349,6 +377,17 @@ public partial interface IPrivateCloudUpdateProperties : SerializedName = @"clusterSize", PossibleTypes = new [] { typeof(int) })] int? ManagementClusterSize { get; set; } + /// Name of the vsan datastore associated with the cluster + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Name of the vsan datastore associated with the cluster", + SerializedName = @"vsanDatastoreName", + PossibleTypes = new [] { typeof(string) })] + string ManagementClusterVsanDatastoreName { get; set; } } /// The properties of a private cloud resource that may be updated @@ -364,6 +403,9 @@ internal partial interface IPrivateCloudUpdatePropertiesInternal string AvailabilityStrategy { get; set; } /// The primary availability zone for the private cloud int? AvailabilityZone { get; set; } + /// The type of DNS zone to use. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Public", "Private")] + string DnsZoneType { get; set; } /// Customer managed key encryption, can be enabled or disabled Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IEncryption Encryption { get; set; } /// The key vault where the encryption key is stored @@ -372,8 +414,9 @@ internal partial interface IPrivateCloudUpdatePropertiesInternal [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] string EncryptionStatus { get; set; } /// - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet - /// in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to + /// Array of additional networks noncontiguous with networkBlock. Networks must be + /// unique and non-overlapping across VNet in your subscription, on-premise, and + /// this privateCloud networkBlock attribute. Make sure the CIDR format conforms to /// (A.B.C.D/X). /// System.Collections.Generic.List ExtendedNetworkBlock { get; set; } @@ -403,10 +446,12 @@ internal partial interface IPrivateCloudUpdatePropertiesInternal /// The identity int? ManagementClusterId { get; set; } /// The state of the cluster provisioning - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Cancelled", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Cancelled", "Deleting", "Updating")] string ManagementClusterProvisioningState { get; set; } /// The cluster size int? ManagementClusterSize { get; set; } + /// Name of the vsan datastore associated with the cluster + string ManagementClusterVsanDatastoreName { get; set; } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateProperties.json.cs index 3c32d20c5ef7..2804ec0b2c9b 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateProperties.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateProperties.json.cs @@ -83,6 +83,7 @@ internal PrivateCloudUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware. {_internet = If( json?.PropertyT("internet"), out var __jsonInternet) ? (string)__jsonInternet : (string)_internet;} {_identitySource = If( json?.PropertyT("identitySources"), out var __jsonIdentitySources) ? If( __jsonIdentitySources as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource) (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IdentitySource.FromJson(__u) )) ))() : null : _identitySource;} {_extendedNetworkBlock = If( json?.PropertyT("extendedNetworkBlocks"), out var __jsonExtendedNetworkBlocks) ? If( __jsonExtendedNetworkBlocks as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : _extendedNetworkBlock;} + {_dnsZoneType = If( json?.PropertyT("dnsZoneType"), out var __jsonDnsZoneType) ? (string)__jsonDnsZoneType : (string)_dnsZoneType;} AfterFromJson(json); } @@ -130,6 +131,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi } container.Add("extendedNetworkBlocks",__r); } + AddIf( null != (((object)this._dnsZoneType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._dnsZoneType.ToString()) : null, "dnsZoneType" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.PowerShell.cs new file mode 100644 index 000000000000..14b601908b5d --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.PowerShell.cs @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(PrivateCloudUpdateTagsTypeConverter))] + public partial class PrivateCloudUpdateTags + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PrivateCloudUpdateTags(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PrivateCloudUpdateTags(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal PrivateCloudUpdateTags(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal PrivateCloudUpdateTags(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + } + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(PrivateCloudUpdateTagsTypeConverter))] + public partial interface IPrivateCloudUpdateTags + + { + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.TypeConverter.cs similarity index 84% rename from src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.TypeConverter.cs index 326dd7fde437..c085dab52ae0 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class HcxEnterpriseSiteListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class PrivateCloudUpdateTagsTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class HcxEnterpriseSiteListTypeConverter : global::System.Managem public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTags).IsAssignableFrom(type)) { return sourceValue; } try { - return HcxEnterpriseSiteList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return PrivateCloudUpdateTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSit } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return HcxEnterpriseSiteList.DeserializeFromPSObject(sourceValue); + return PrivateCloudUpdateTags.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return HcxEnterpriseSiteList.DeserializeFromDictionary(sourceValue); + return PrivateCloudUpdateTags.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.cs new file mode 100644 index 000000000000..a8c601233f5c --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// Resource tags. + public partial class PrivateCloudUpdateTags : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTags, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTagsInternal + { + + /// Creates an new instance. + public PrivateCloudUpdateTags() + { + + } + } + /// Resource tags. + public partial interface IPrivateCloudUpdateTags : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IAssociativeArray + { + + } + /// Resource tags. + internal partial interface IPrivateCloudUpdateTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.dictionary.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.dictionary.cs new file mode 100644 index 000000000000..f15312580c3b --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.dictionary.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + public partial class PrivateCloudUpdateTags : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdateTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.json.cs new file mode 100644 index 000000000000..f47e45e9c9c9 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudUpdateTags.json.cs @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// Resource tags. + public partial class PrivateCloudUpdateTags + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new PrivateCloudUpdateTags(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. + /// + internal PrivateCloudUpdateTags(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ProxyResource.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ProxyResource.PowerShell.cs index 8d212c49b8eb..85a33889c0a5 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ProxyResource.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ProxyResource.PowerShell.cs @@ -7,7 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// The resource model definition for a ARM proxy resource + /// + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + /// [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] public partial class ProxyResource { @@ -109,6 +111,34 @@ internal ProxyResource(global::System.Collections.IDictionary content) return; } // actually deserialize + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -138,6 +168,34 @@ internal ProxyResource(global::System.Management.Automation.PSObject content) return; } // actually deserialize + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -170,7 +228,7 @@ public override string ToString() return ToJsonString(); } } - /// The resource model definition for a ARM proxy resource + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] public partial interface IProxyResource diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ProxyResource.cs b/src/VMware/VMware.Autorest/generated/api/Models/ProxyResource.cs index 9755a15ade77..eb8e80f8eb9f 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ProxyResource.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ProxyResource.cs @@ -7,7 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// The resource model definition for a ARM proxy resource + /// + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + /// public partial class ProxyResource : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResourceInternal, @@ -18,7 +20,9 @@ public partial class ProxyResource : /// private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(); - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; } @@ -28,14 +32,49 @@ public partial class ProxyResource : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; } @@ -57,14 +96,14 @@ public ProxyResource() await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } } - /// The resource model definition for a ARM proxy resource + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location public partial interface IProxyResource : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource { } - /// The resource model definition for a ARM proxy resource + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location internal partial interface IProxyResourceInternal : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ProxyResource.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ProxyResource.json.cs index 22f97c3f031a..ca1c4f53fb7e 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ProxyResource.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ProxyResource.json.cs @@ -7,7 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// The resource model definition for a ARM proxy resource + /// + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + /// public partial class ProxyResource { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PsCredentialExecutionParameter.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/PsCredentialExecutionParameter.PowerShell.cs index 55b2e3b78bd1..73c77a514354 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PsCredentialExecutionParameter.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PsCredentialExecutionParameter.PowerShell.cs @@ -115,16 +115,16 @@ internal PsCredentialExecutionParameter(global::System.Collections.IDictionary c } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPsCredentialExecutionParameterInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPsCredentialExecutionParameterInternal)this).Password, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPsCredentialExecutionParameterInternal)this).Password = (System.Security.SecureString) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPsCredentialExecutionParameterInternal)this).Password, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -148,16 +148,16 @@ internal PsCredentialExecutionParameter(global::System.Management.Automation.PSO } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPsCredentialExecutionParameterInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPsCredentialExecutionParameterInternal)this).Password, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPsCredentialExecutionParameterInternal)this).Password = (System.Security.SecureString) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPsCredentialExecutionParameterInternal)this).Password, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PsCredentialExecutionParameter.cs b/src/VMware/VMware.Autorest/generated/api/Models/PsCredentialExecutionParameter.cs index 49e8e920410a..0dc769a874c7 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PsCredentialExecutionParameter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PsCredentialExecutionParameter.cs @@ -24,13 +24,13 @@ public partial class PsCredentialExecutionParameter : public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)__scriptExecutionParameter).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)__scriptExecutionParameter).Name = value ; } /// Backing field for property. - private string _password; + private System.Security.SecureString _password; /// password for login [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string Password { get => this._password; set => this._password = value; } + public System.Security.SecureString Password { get => this._password; set => this._password = value; } - /// The type of execution parameter + /// script execution parameter type [Microsoft.Azure.PowerShell.Cmdlets.VMware.Constant] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => "Credential"; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)__scriptExecutionParameter).Type = "Credential"; } @@ -74,8 +74,8 @@ public partial interface IPsCredentialExecutionParameter : Update = true, Description = @"password for login", SerializedName = @"password", - PossibleTypes = new [] { typeof(string) })] - string Password { get; set; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString Password { get; set; } /// username for login [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -94,7 +94,7 @@ internal partial interface IPsCredentialExecutionParameterInternal : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal { /// password for login - string Password { get; set; } + System.Security.SecureString Password { get; set; } /// username for login string Username { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PsCredentialExecutionParameter.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/PsCredentialExecutionParameter.json.cs index 5b0d5b8d0815..a33087669f60 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PsCredentialExecutionParameter.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/PsCredentialExecutionParameter.json.cs @@ -79,7 +79,7 @@ internal PsCredentialExecutionParameter(Microsoft.Azure.PowerShell.Cmdlets.VMwar } __scriptExecutionParameter = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionParameter(json); {_username = If( json?.PropertyT("username"), out var __jsonUsername) ? (string)__jsonUsername : (string)_username;} - {_password = If( json?.PropertyT("password"), out var __jsonPassword) ? (string)__jsonPassword : (string)_password;} + {_password = If( json?.PropertyT("password"), out var __jsonPassword) ? new System.Net.NetworkCredential("",(string)__jsonPassword).SecurePassword : _password;} AfterFromJson(json); } @@ -104,7 +104,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi } __scriptExecutionParameter?.ToJson(container, serializationMode); AddIf( null != (((object)this._username)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._username.ToString()) : null, "username" ,container.Add ); - AddIf( null != (((object)this._password)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._password.ToString()) : null, "password" ,container.Add ); + AddIf( null != (((object)this._password)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(System.Runtime.InteropServices.Marshal.PtrToStringBSTR(System.Runtime.InteropServices.Marshal.SecureStringToBSTR(this._password))) : null, "password" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Resource.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/Resource.PowerShell.cs index 654e6ef80be5..3bf6bb48c449 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Resource.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Resource.PowerShell.cs @@ -7,7 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// The core properties of ARM resources + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] public partial class Resource { @@ -109,6 +111,10 @@ internal Resource(global::System.Collections.IDictionary content) return; } // actually deserialize + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -121,6 +127,30 @@ internal Resource(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } AfterDeserializeDictionary(content); } @@ -138,6 +168,10 @@ internal Resource(global::System.Management.Automation.PSObject content) return; } // actually deserialize + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -150,6 +184,30 @@ internal Resource(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } AfterDeserializePSObject(content); } @@ -170,7 +228,7 @@ public override string ToString() return ToJsonString(); } } - /// The core properties of ARM resources + /// Common fields that are returned in the response for all Azure Resource Manager resources [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] public partial interface IResource diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Resource.cs b/src/VMware/VMware.Autorest/generated/api/Models/Resource.cs index de7af4005a3c..168fcfafef70 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Resource.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Resource.cs @@ -7,7 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// The core properties of ARM resources + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// public partial class Resource : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal @@ -16,7 +18,9 @@ public partial class Resource : /// Backing field for property. private string _id; - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Id { get => this._id; } @@ -26,20 +30,58 @@ public partial class Resource : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => this._name; set { {_name = value;} } } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemData()); set { {_systemData = value;} } } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Name { get => this._name; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData _systemData; + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemData()); } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)SystemData).CreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)SystemData).LastModifiedByType = value ?? null; } + /// Backing field for property. private string _type; - /// Resource type. + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Type { get => this._type; } @@ -49,54 +91,148 @@ public Resource() } } - /// The core properties of ARM resources + /// Common fields that are returned in the response for all Azure Resource Manager resources public partial interface IResource : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Resource ID.", + Description = @"Fully qualified resource ID for the resource. E.g. ""/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}""", SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] string Id { get; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Resource name.", + Description = @"The name of the resource", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; } - /// Resource type. + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The timestamp of resource creation (UTC).", + SerializedName = @"createdAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SystemDataCreatedAt { get; } + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The identity that created the resource.", + SerializedName = @"createdBy", + PossibleTypes = new [] { typeof(string) })] + string SystemDataCreatedBy { get; } + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The type of identity that created the resource.", + SerializedName = @"createdByType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string SystemDataCreatedByType { get; } + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The timestamp of resource last modification (UTC)", + SerializedName = @"lastModifiedAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SystemDataLastModifiedAt { get; } + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The identity that last modified the resource.", + SerializedName = @"lastModifiedBy", + PossibleTypes = new [] { typeof(string) })] + string SystemDataLastModifiedBy { get; } + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The type of identity that last modified the resource.", + SerializedName = @"lastModifiedByType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string SystemDataLastModifiedByType { get; } + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = true, Read = true, Create = false, Update = false, - Description = @"Resource type.", + Description = @"The type of the resource. E.g. ""Microsoft.Compute/virtualMachines"" or ""Microsoft.Storage/storageAccounts""", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] string Type { get; } } - /// The core properties of ARM resources + /// Common fields that are returned in the response for all Azure Resource Manager resources internal partial interface IResourceInternal { - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// string Id { get; set; } - /// Resource name. + /// The name of the resource string Name { get; set; } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get; set; } + /// The timestamp of resource creation (UTC). + global::System.DateTime? SystemDataCreatedAt { get; set; } + /// The identity that created the resource. + string SystemDataCreatedBy { get; set; } + /// The type of identity that created the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string SystemDataCreatedByType { get; set; } + /// The timestamp of resource last modification (UTC) + global::System.DateTime? SystemDataLastModifiedAt { get; set; } + /// The identity that last modified the resource. + string SystemDataLastModifiedBy { get; set; } + /// The type of identity that last modified the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string SystemDataLastModifiedByType { get; set; } + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// string Type { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Resource.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/Resource.json.cs index c7c7fa4f2f85..884e1f2811ef 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Resource.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Resource.json.cs @@ -7,7 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// The core properties of ARM resources + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// public partial class Resource { @@ -75,6 +77,7 @@ internal Resource(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObj { return; } + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemData.FromJson(__jsonSystemData) : _systemData;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} @@ -101,6 +104,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ResourceTags.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/ResourceTags.TypeConverter.cs deleted file mode 100644 index ff3ef57bd724..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/ResourceTags.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ResourceTagsTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ResourceTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ResourceTags.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ResourceTags.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdlet.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdlet.PowerShell.cs index 03c8ba190f84..af37a8e84f19 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdlet.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdlet.PowerShell.cs @@ -113,6 +113,34 @@ internal ScriptCmdlet(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,6 +153,10 @@ internal ScriptCmdlet(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Description, global::System.Convert.ToString); @@ -133,6 +165,10 @@ internal ScriptCmdlet(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Timeout = (string) content.GetValueForProperty("Timeout",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Timeout, global::System.Convert.ToString); } + if (content.Contains("Audience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Audience = (string) content.GetValueForProperty("Audience",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Audience, global::System.Convert.ToString); + } if (content.Contains("Parameter")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Parameter = (System.Collections.Generic.List) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Parameter, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptParameterTypeConverter.ConvertFrom)); @@ -158,6 +194,34 @@ internal ScriptCmdlet(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -170,6 +234,10 @@ internal ScriptCmdlet(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Description, global::System.Convert.ToString); @@ -178,6 +246,10 @@ internal ScriptCmdlet(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Timeout = (string) content.GetValueForProperty("Timeout",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Timeout, global::System.Convert.ToString); } + if (content.Contains("Audience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Audience = (string) content.GetValueForProperty("Audience",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Audience, global::System.Convert.ToString); + } if (content.Contains("Parameter")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Parameter = (System.Collections.Generic.List) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal)this).Parameter, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptParameterTypeConverter.ConvertFrom)); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdlet.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdlet.cs index 2408ce82ddae..2d758264dc8b 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdlet.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdlet.cs @@ -18,11 +18,19 @@ public partial class ScriptCmdlet : /// private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(); + /// + /// Specifies whether a script cmdlet is intended to be invoked only through automation or visible to customers + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string Audience { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)Property).Audience; } + /// Description of the scripts functionality [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)Property).Description; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } @@ -32,9 +40,15 @@ public partial class ScriptCmdlet : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } + /// Internal Acessors for Audience + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal.Audience { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)Property).Audience; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)Property).Audience = value; } + /// Internal Acessors for Description string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)Property).Description = value; } @@ -44,10 +58,13 @@ public partial class ScriptCmdlet : /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletProperties()); set { {_property = value;} } } + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)Property).ProvisioningState = value; } + /// Internal Acessors for Timeout string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletInternal.Timeout { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)Property).Timeout; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)Property).Timeout = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } @@ -58,19 +75,55 @@ public partial class ScriptCmdlet : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletProperties _property; - /// The properties of a script cmdlet resource + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletProperties()); set => this._property = value; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)Property).ProvisioningState; } + /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + /// Recommended time limit for execution [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string Timeout { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)Property).Timeout; } - /// Resource type. + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } @@ -97,6 +150,20 @@ public partial interface IScriptCmdlet : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource { + /// + /// Specifies whether a script cmdlet is intended to be invoked only through automation or visible to customers + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Specifies whether a script cmdlet is intended to be invoked only through automation or visible to customers", + SerializedName = @"audience", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Automation", "Any")] + string Audience { get; } /// Description of the scripts functionality [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -119,6 +186,18 @@ public partial interface IScriptCmdlet : SerializedName = @"parameters", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptParameter) })] System.Collections.Generic.List Parameter { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; } /// Recommended time limit for execution [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -136,12 +215,20 @@ public partial interface IScriptCmdlet : internal partial interface IScriptCmdletInternal : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResourceInternal { + /// + /// Specifies whether a script cmdlet is intended to be invoked only through automation or visible to customers + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Automation", "Any")] + string Audience { get; set; } /// Description of the scripts functionality string Description { get; set; } /// Parameters the script will accept System.Collections.Generic.List Parameter { get; set; } - /// The properties of a script cmdlet resource + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletProperties Property { get; set; } + /// The provisioning state of the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; set; } /// Recommended time limit for execution string Timeout { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdlet.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdlet.json.cs index 627d9430e362..8639ebf366a4 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdlet.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdlet.json.cs @@ -100,7 +100,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __proxyResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletListResult.PowerShell.cs similarity index 70% rename from src/VMware/VMware.Autorest/generated/api/Models/CloudLinkList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletListResult.PowerShell.cs index 70100a50a0a8..7834275ccd3c 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A paged list of cloud links - [System.ComponentModel.TypeConverter(typeof(CloudLinkListTypeConverter))] - public partial class CloudLinkList + /// The response of a ScriptCmdlet list operation. + [System.ComponentModel.TypeConverter(typeof(ScriptCmdletListResultTypeConverter))] + public partial class ScriptCmdletListResult { /// @@ -63,11 +63,44 @@ public partial class CloudLinkList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal CloudLinkList(global::System.Collections.IDictionary content) + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ScriptCmdletListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ScriptCmdletListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ScriptCmdletListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -78,21 +111,21 @@ internal CloudLinkList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal CloudLinkList(global::System.Management.Automation.PSObject content) + internal ScriptCmdletListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -103,48 +136,15 @@ internal CloudLinkList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkList DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CloudLinkList(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CloudLinkList(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); - /// Serializes this instance to a json string. /// a containing this model serialized to JSON text. @@ -162,9 +162,9 @@ public override string ToString() return ToJsonString(); } } - /// A paged list of cloud links - [System.ComponentModel.TypeConverter(typeof(CloudLinkListTypeConverter))] - public partial interface ICloudLinkList + /// The response of a ScriptCmdlet list operation. + [System.ComponentModel.TypeConverter(typeof(ScriptCmdletListResultTypeConverter))] + public partial interface IScriptCmdletListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletListResult.TypeConverter.cs similarity index 84% rename from src/VMware/VMware.Autorest/generated/api/Models/CloudLinkList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletListResult.TypeConverter.cs index 4d6c762d3d76..1f0f556789ff 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/CloudLinkList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletListResult.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class CloudLinkListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class ScriptCmdletListResultTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class CloudLinkListTypeConverter : global::System.Management.Auto public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResult).IsAssignableFrom(type)) { return sourceValue; } try { - return CloudLinkList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return ScriptCmdletListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkList Co } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return CloudLinkList.DeserializeFromPSObject(sourceValue); + return ScriptCmdletListResult.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return CloudLinkList.DeserializeFromDictionary(sourceValue); + return ScriptCmdletListResult.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletsList.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletListResult.cs similarity index 54% rename from src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletsList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletListResult.cs index c043834fb570..cb250c53c759 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletsList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Pageable list of scripts/cmdlets - public partial class ScriptCmdletsList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsListInternal + /// The response of a ScriptCmdlet list operation. + public partial class ScriptCmdletListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of scripts + /// The ScriptCmdlet items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public ScriptCmdletsList() + /// Creates an new instance. + public ScriptCmdletListResult() { } } - /// Pageable list of scripts/cmdlets - public partial interface IScriptCmdletsList : + /// The response of a ScriptCmdlet list operation. + public partial interface IScriptCmdletListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of scripts + string NextLink { get; set; } + /// The ScriptCmdlet items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"List of scripts", + Create = true, + Update = true, + Description = @"The ScriptCmdlet items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdlet) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// Pageable list of scripts/cmdlets - internal partial interface IScriptCmdletsListInternal + /// The response of a ScriptCmdlet list operation. + internal partial interface IScriptCmdletListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// List of scripts + /// The ScriptCmdlet items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletsList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletListResult.json.cs similarity index 79% rename from src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletsList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletListResult.json.cs index b7a19a503a58..5460fc9d5fd2 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletsList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Pageable list of scripts/cmdlets - public partial class ScriptCmdletsList + /// The response of a ScriptCmdlet list operation. + public partial class ScriptCmdletListResult { /// @@ -54,22 +54,22 @@ public partial class ScriptCmdletsList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new ScriptCmdletsList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new ScriptCmdletListResult(json) : null; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal ScriptCmdletsList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal ScriptCmdletListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -83,13 +83,13 @@ internal ScriptCmdletsList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Jso } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -101,22 +101,16 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletProperties.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletProperties.PowerShell.cs index c7ccb8965e6c..762f63613dad 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletProperties.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletProperties.PowerShell.cs @@ -109,6 +109,10 @@ internal ScriptCmdletProperties(global::System.Collections.IDictionary content) return; } // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).Description, global::System.Convert.ToString); @@ -117,6 +121,10 @@ internal ScriptCmdletProperties(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).Timeout = (string) content.GetValueForProperty("Timeout",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).Timeout, global::System.Convert.ToString); } + if (content.Contains("Audience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).Audience = (string) content.GetValueForProperty("Audience",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).Audience, global::System.Convert.ToString); + } if (content.Contains("Parameter")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).Parameter = (System.Collections.Generic.List) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).Parameter, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptParameterTypeConverter.ConvertFrom)); @@ -138,6 +146,10 @@ internal ScriptCmdletProperties(global::System.Management.Automation.PSObject co return; } // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).Description, global::System.Convert.ToString); @@ -146,6 +158,10 @@ internal ScriptCmdletProperties(global::System.Management.Automation.PSObject co { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).Timeout = (string) content.GetValueForProperty("Timeout",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).Timeout, global::System.Convert.ToString); } + if (content.Contains("Audience")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).Audience = (string) content.GetValueForProperty("Audience",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).Audience, global::System.Convert.ToString); + } if (content.Contains("Parameter")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).Parameter = (System.Collections.Generic.List) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal)this).Parameter, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptParameterTypeConverter.ConvertFrom)); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletProperties.cs index b97f13146a1b..a056b2b690d1 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletProperties.cs @@ -13,6 +13,15 @@ public partial class ScriptCmdletProperties : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal { + /// Backing field for property. + private string _audience; + + /// + /// Specifies whether a script cmdlet is intended to be invoked only through automation or visible to customers + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string Audience { get => this._audience; } + /// Backing field for property. private string _description; @@ -20,12 +29,18 @@ public partial class ScriptCmdletProperties : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Description { get => this._description; } + /// Internal Acessors for Audience + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal.Audience { get => this._audience; set { {_audience = value;} } } + /// Internal Acessors for Description string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal.Description { get => this._description; set { {_description = value;} } } /// Internal Acessors for Parameter System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal.Parameter { get => this._parameter; set { {_parameter = value;} } } + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + /// Internal Acessors for Timeout string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletPropertiesInternal.Timeout { get => this._timeout; set { {_timeout = value;} } } @@ -36,6 +51,13 @@ public partial class ScriptCmdletProperties : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public System.Collections.Generic.List Parameter { get => this._parameter; } + /// Backing field for property. + private string _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + /// Backing field for property. private string _timeout; @@ -53,6 +75,20 @@ public ScriptCmdletProperties() public partial interface IScriptCmdletProperties : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { + /// + /// Specifies whether a script cmdlet is intended to be invoked only through automation or visible to customers + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Specifies whether a script cmdlet is intended to be invoked only through automation or visible to customers", + SerializedName = @"audience", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Automation", "Any")] + string Audience { get; } /// Description of the scripts functionality [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -75,6 +111,18 @@ public partial interface IScriptCmdletProperties : SerializedName = @"parameters", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptParameter) })] System.Collections.Generic.List Parameter { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; } /// Recommended time limit for execution [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -92,10 +140,18 @@ public partial interface IScriptCmdletProperties : internal partial interface IScriptCmdletPropertiesInternal { + /// + /// Specifies whether a script cmdlet is intended to be invoked only through automation or visible to customers + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Automation", "Any")] + string Audience { get; set; } /// Description of the scripts functionality string Description { get; set; } /// Parameters the script will accept System.Collections.Generic.List Parameter { get; set; } + /// The provisioning state of the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; set; } /// Recommended time limit for execution string Timeout { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletProperties.json.cs index e1d21f22fb51..a41c594f2a54 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletProperties.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptCmdletProperties.json.cs @@ -77,8 +77,10 @@ internal ScriptCmdletProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtim { return; } + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)_description;} {_timeout = If( json?.PropertyT("timeout"), out var __jsonTimeout) ? (string)__jsonTimeout : (string)_timeout;} + {_audience = If( json?.PropertyT("audience"), out var __jsonAudience) ? (string)__jsonAudience : (string)_audience;} {_parameter = If( json?.PropertyT("parameters"), out var __jsonParameters) ? If( __jsonParameters as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptParameter) (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptParameter.FromJson(__u) )) ))() : null : _parameter;} AfterFromJson(json); } @@ -103,6 +105,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); } @@ -111,6 +117,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi AddIf( null != (((object)this._timeout)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._timeout.ToString()) : null, "timeout" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._audience)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._audience.ToString()) : null, "audience" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { if (null != this._parameter) { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecution.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecution.PowerShell.cs index 868fac2fc774..4b263dad5916 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecution.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecution.PowerShell.cs @@ -113,6 +113,34 @@ internal ScriptExecution(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -206,6 +234,34 @@ internal ScriptExecution(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecution.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecution.cs index e59f8a5975f3..8ed810bf0d98 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecution.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecution.cs @@ -23,7 +23,8 @@ public partial class ScriptExecution : public System.Collections.Generic.List Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionPropertiesInternal)Property).Error; } /// - /// Error message if the script was able to run, but if the script itself had errors or powershell threw an exception + /// Error message if the script was able to run, but if the script itself had + /// errors or powershell threw an exception /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string FailureReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionPropertiesInternal)Property).FailureReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionPropertiesInternal)Property).FailureReason = value ?? null; } @@ -33,12 +34,15 @@ public partial class ScriptExecution : public global::System.DateTime? FinishedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionPropertiesInternal)Property).FinishedAt; } /// - /// Parameters that will be hidden/not visible to ARM, such as passwords and credentials + /// Parameters that will be hidden/not visible to ARM, such as passwords and + /// credentials /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public System.Collections.Generic.List HiddenParameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionPropertiesInternal)Property).HiddenParameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionPropertiesInternal)Property).HiddenParameter = value ?? null /* arrayOf */; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } @@ -52,6 +56,9 @@ public partial class ScriptExecution : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } @@ -79,7 +86,7 @@ public partial class ScriptExecution : /// Internal Acessors for Warning System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionInternal.Warning { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionPropertiesInternal)Property).Warning; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionPropertiesInternal)Property).Warning = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } @@ -98,7 +105,7 @@ public partial class ScriptExecution : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionProperties _property; - /// The properties of a script execution resource + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionProperties()); set => this._property = value; } @@ -126,11 +133,43 @@ public partial class ScriptExecution : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public global::System.DateTime? SubmittedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionPropertiesInternal)Property).SubmittedAt; } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + /// Time limit for execution [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string Timeout { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionPropertiesInternal)Property).Timeout; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionPropertiesInternal)Property).Timeout = value ?? null; } - /// Resource type. + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } @@ -173,15 +212,17 @@ public partial interface IScriptExecution : PossibleTypes = new [] { typeof(string) })] System.Collections.Generic.List Error { get; } /// - /// Error message if the script was able to run, but if the script itself had errors or powershell threw an exception + /// Error message if the script was able to run, but if the script itself had + /// errors or powershell threw an exception /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, - Update = true, - Description = @"Error message if the script was able to run, but if the script itself had errors or powershell threw an exception", + Update = false, + Description = @"Error message if the script was able to run, but if the script itself had + errors or powershell threw an exception", SerializedName = @"failureReason", PossibleTypes = new [] { typeof(string) })] string FailureReason { get; set; } @@ -197,15 +238,17 @@ public partial interface IScriptExecution : PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? FinishedAt { get; } /// - /// Parameters that will be hidden/not visible to ARM, such as passwords and credentials + /// Parameters that will be hidden/not visible to ARM, such as passwords and + /// credentials /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, - Update = true, - Description = @"Parameters that will be hidden/not visible to ARM, such as passwords and credentials", + Update = false, + Description = @"Parameters that will be hidden/not visible to ARM, such as passwords and + credentials", SerializedName = @"hiddenParameters", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameter) })] System.Collections.Generic.List HiddenParameter { get; set; } @@ -226,7 +269,7 @@ public partial interface IScriptExecution : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"User-defined dictionary.", SerializedName = @"namedOutputs", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionPropertiesNamedOutputs) })] @@ -237,7 +280,7 @@ public partial interface IScriptExecution : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Standard output stream from the powershell execution", SerializedName = @"output", PossibleTypes = new [] { typeof(string) })] @@ -248,7 +291,7 @@ public partial interface IScriptExecution : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Parameters the script will accept", SerializedName = @"parameters", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameter) })] @@ -263,7 +306,7 @@ public partial interface IScriptExecution : Description = @"The state of the script execution resource", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Pending", "Running", "Succeeded", "Failed", "Cancelling", "Cancelled", "Deleting", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Pending", "Running", "Cancelling", "Cancelled", "Deleting")] string ProvisioningState { get; } /// Time to live for the resource. If not provided, will be available for 60 days [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -271,7 +314,7 @@ public partial interface IScriptExecution : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Time to live for the resource. If not provided, will be available for 60 days", SerializedName = @"retention", PossibleTypes = new [] { typeof(string) })] @@ -282,7 +325,7 @@ public partial interface IScriptExecution : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"A reference to the script cmdlet resource if user is running a AVS script", SerializedName = @"scriptCmdletId", PossibleTypes = new [] { typeof(string) })] @@ -315,7 +358,7 @@ public partial interface IScriptExecution : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Time limit for execution", SerializedName = @"timeout", PossibleTypes = new [] { typeof(string) })] @@ -340,13 +383,15 @@ internal partial interface IScriptExecutionInternal : /// Standard error output stream from the powershell execution System.Collections.Generic.List Error { get; set; } /// - /// Error message if the script was able to run, but if the script itself had errors or powershell threw an exception + /// Error message if the script was able to run, but if the script itself had + /// errors or powershell threw an exception /// string FailureReason { get; set; } /// Time the script execution was finished global::System.DateTime? FinishedAt { get; set; } /// - /// Parameters that will be hidden/not visible to ARM, such as passwords and credentials + /// Parameters that will be hidden/not visible to ARM, such as passwords and + /// credentials /// System.Collections.Generic.List HiddenParameter { get; set; } /// Standard information out stream from the powershell execution @@ -357,10 +402,10 @@ internal partial interface IScriptExecutionInternal : System.Collections.Generic.List Output { get; set; } /// Parameters the script will accept System.Collections.Generic.List Parameter { get; set; } - /// The properties of a script execution resource + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionProperties Property { get; set; } /// The state of the script execution resource - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Pending", "Running", "Succeeded", "Failed", "Cancelling", "Cancelled", "Deleting", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Pending", "Running", "Cancelling", "Cancelled", "Deleting")] string ProvisioningState { get; set; } /// Time to live for the resource. If not provided, will be available for 60 days string Retention { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecution.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecution.json.cs index 9e4f74f5ff01..dc240d407bc6 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecution.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecution.json.cs @@ -102,7 +102,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __proxyResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionsList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionListResult.PowerShell.cs similarity index 70% rename from src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionsList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionListResult.PowerShell.cs index 2e447f92b8bc..e8007039c13c 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionsList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// Pageable list of script executions - [System.ComponentModel.TypeConverter(typeof(ScriptExecutionsListTypeConverter))] - public partial class ScriptExecutionsList + /// The response of a ScriptExecution list operation. + [System.ComponentModel.TypeConverter(typeof(ScriptExecutionListResultTypeConverter))] + public partial class ScriptExecutionListResult { /// @@ -63,44 +63,44 @@ public partial class ScriptExecutionsList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new ScriptExecutionsList(content); + return new ScriptExecutionListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new ScriptExecutionsList(content); + return new ScriptExecutionListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal ScriptExecutionsList(global::System.Collections.IDictionary content) + internal ScriptExecutionListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -111,21 +111,21 @@ internal ScriptExecutionsList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal ScriptExecutionsList(global::System.Management.Automation.PSObject content) + internal ScriptExecutionListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -136,11 +136,11 @@ internal ScriptExecutionsList(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -162,9 +162,9 @@ public override string ToString() return ToJsonString(); } } - /// Pageable list of script executions - [System.ComponentModel.TypeConverter(typeof(ScriptExecutionsListTypeConverter))] - public partial interface IScriptExecutionsList + /// The response of a ScriptExecution list operation. + [System.ComponentModel.TypeConverter(typeof(ScriptExecutionListResultTypeConverter))] + public partial interface IScriptExecutionListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionsList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionListResult.TypeConverter.cs similarity index 85% rename from src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionsList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionListResult.TypeConverter.cs index 0f925659942b..ccade2d77e21 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionsList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionListResult.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class ScriptExecutionsListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class ScriptExecutionListResultTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class ScriptExecutionsListTypeConverter : global::System.Manageme public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResult).IsAssignableFrom(type)) { return sourceValue; } try { - return ScriptExecutionsList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return ScriptExecutionListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutions } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return ScriptExecutionsList.DeserializeFromPSObject(sourceValue); + return ScriptExecutionListResult.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return ScriptExecutionsList.DeserializeFromDictionary(sourceValue); + return ScriptExecutionListResult.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionsList.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionListResult.cs similarity index 53% rename from src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionsList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionListResult.cs index 61ec3a9e9e2e..a61e21e47a18 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionsList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Pageable list of script executions - public partial class ScriptExecutionsList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsListInternal + /// The response of a ScriptExecution list operation. + public partial class ScriptExecutionListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of scripts + /// The ScriptExecution items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public ScriptExecutionsList() + /// Creates an new instance. + public ScriptExecutionListResult() { } } - /// Pageable list of script executions - public partial interface IScriptExecutionsList : + /// The response of a ScriptExecution list operation. + public partial interface IScriptExecutionListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of scripts + string NextLink { get; set; } + /// The ScriptExecution items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"List of scripts", + Create = true, + Update = true, + Description = @"The ScriptExecution items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// Pageable list of script executions - internal partial interface IScriptExecutionsListInternal + /// The response of a ScriptExecution list operation. + internal partial interface IScriptExecutionListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// List of scripts + /// The ScriptExecution items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionsList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionListResult.json.cs similarity index 79% rename from src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionsList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionListResult.json.cs index 0e45ca6ab7c5..6d55f310f6a3 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionsList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Pageable list of script executions - public partial class ScriptExecutionsList + /// The response of a ScriptExecution list operation. + public partial class ScriptExecutionListResult { /// @@ -54,22 +54,22 @@ public partial class ScriptExecutionsList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new ScriptExecutionsList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new ScriptExecutionListResult(json) : null; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal ScriptExecutionsList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal ScriptExecutionListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -83,13 +83,13 @@ internal ScriptExecutionsList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime. } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -101,22 +101,16 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionParameter.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionParameter.PowerShell.cs index 4c5e0da70426..be46af85ef50 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionParameter.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionParameter.PowerShell.cs @@ -109,14 +109,14 @@ internal ScriptExecutionParameter(global::System.Collections.IDictionary content return; } // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name, global::System.Convert.ToString); - } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -134,14 +134,14 @@ internal ScriptExecutionParameter(global::System.Management.Automation.PSObject return; } // actually deserialize - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name, global::System.Convert.ToString); - } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionParameter.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionParameter.cs index 982460ed4596..514f9d515f0b 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionParameter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionParameter.cs @@ -23,7 +23,7 @@ public partial class ScriptExecutionParameter : /// Backing field for property. private string _type; - /// The type of execution parameter + /// script execution parameter type [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Type { get => this._type; set => this._type = value; } @@ -48,14 +48,14 @@ public partial interface IScriptExecutionParameter : SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; set; } - /// The type of execution parameter + /// script execution parameter type [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The type of execution parameter", + Description = @"script execution parameter type", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Value", "SecureValue", "Credential")] @@ -68,7 +68,7 @@ internal partial interface IScriptExecutionParameterInternal { /// The parameter name string Name { get; set; } - /// The type of execution parameter + /// script execution parameter type [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Value", "SecureValue", "Credential")] string Type { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionParameter.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionParameter.json.cs index 12ddd092e65d..b35d07ca8752 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionParameter.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionParameter.json.cs @@ -72,6 +72,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionP switch ( json.StringProperty("type") ) { + case "Credential": + { + return new PsCredentialExecutionParameter(json); + } case "SecureValue": { return new ScriptSecureStringExecutionParameter(json); @@ -80,10 +84,6 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionP { return new ScriptStringExecutionParameter(json); } - case "Credential": - { - return new PsCredentialExecutionParameter(json); - } } return new ScriptExecutionParameter(json); } @@ -100,8 +100,8 @@ internal ScriptExecutionParameter(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runt { return; } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} AfterFromJson(json); } @@ -124,8 +124,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionProperties.cs index 0cf27453ab2b..9ae2908db7b3 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptExecutionProperties.cs @@ -24,7 +24,8 @@ public partial class ScriptExecutionProperties : private string _failureReason; /// - /// Error message if the script was able to run, but if the script itself had errors or powershell threw an exception + /// Error message if the script was able to run, but if the script itself had + /// errors or powershell threw an exception /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string FailureReason { get => this._failureReason; set => this._failureReason = value; } @@ -40,7 +41,8 @@ public partial class ScriptExecutionProperties : private System.Collections.Generic.List _hiddenParameter; /// - /// Parameters that will be hidden/not visible to ARM, such as passwords and credentials + /// Parameters that will be hidden/not visible to ARM, such as passwords and + /// credentials /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public System.Collections.Generic.List HiddenParameter { get => this._hiddenParameter; set => this._hiddenParameter = value; } @@ -165,7 +167,8 @@ public partial interface IScriptExecutionProperties : PossibleTypes = new [] { typeof(string) })] System.Collections.Generic.List Error { get; } /// - /// Error message if the script was able to run, but if the script itself had errors or powershell threw an exception + /// Error message if the script was able to run, but if the script itself had + /// errors or powershell threw an exception /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -173,7 +176,8 @@ public partial interface IScriptExecutionProperties : Read = true, Create = true, Update = true, - Description = @"Error message if the script was able to run, but if the script itself had errors or powershell threw an exception", + Description = @"Error message if the script was able to run, but if the script itself had + errors or powershell threw an exception", SerializedName = @"failureReason", PossibleTypes = new [] { typeof(string) })] string FailureReason { get; set; } @@ -189,7 +193,8 @@ public partial interface IScriptExecutionProperties : PossibleTypes = new [] { typeof(global::System.DateTime) })] global::System.DateTime? FinishedAt { get; } /// - /// Parameters that will be hidden/not visible to ARM, such as passwords and credentials + /// Parameters that will be hidden/not visible to ARM, such as passwords and + /// credentials /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -197,7 +202,8 @@ public partial interface IScriptExecutionProperties : Read = true, Create = true, Update = true, - Description = @"Parameters that will be hidden/not visible to ARM, such as passwords and credentials", + Description = @"Parameters that will be hidden/not visible to ARM, such as passwords and + credentials", SerializedName = @"hiddenParameters", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameter) })] System.Collections.Generic.List HiddenParameter { get; set; } @@ -255,7 +261,7 @@ public partial interface IScriptExecutionProperties : Description = @"The state of the script execution resource", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Pending", "Running", "Succeeded", "Failed", "Cancelling", "Cancelled", "Deleting", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Pending", "Running", "Cancelling", "Cancelled", "Deleting")] string ProvisioningState { get; } /// Time to live for the resource. If not provided, will be available for 60 days [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -332,13 +338,15 @@ internal partial interface IScriptExecutionPropertiesInternal /// Standard error output stream from the powershell execution System.Collections.Generic.List Error { get; set; } /// - /// Error message if the script was able to run, but if the script itself had errors or powershell threw an exception + /// Error message if the script was able to run, but if the script itself had + /// errors or powershell threw an exception /// string FailureReason { get; set; } /// Time the script execution was finished global::System.DateTime? FinishedAt { get; set; } /// - /// Parameters that will be hidden/not visible to ARM, such as passwords and credentials + /// Parameters that will be hidden/not visible to ARM, such as passwords and + /// credentials /// System.Collections.Generic.List HiddenParameter { get; set; } /// Standard information out stream from the powershell execution @@ -350,7 +358,7 @@ internal partial interface IScriptExecutionPropertiesInternal /// Parameters the script will accept System.Collections.Generic.List Parameter { get; set; } /// The state of the script execution resource - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Pending", "Running", "Succeeded", "Failed", "Cancelling", "Cancelled", "Deleting", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Pending", "Running", "Cancelling", "Cancelled", "Deleting")] string ProvisioningState { get; set; } /// Time to live for the resource. If not provided, will be available for 60 days string Retention { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackage.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackage.PowerShell.cs index f747227120f2..f1d97cae1591 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackage.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackage.PowerShell.cs @@ -113,6 +113,34 @@ internal ScriptPackage(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackagePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -125,6 +153,10 @@ internal ScriptPackage(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageInternal)this).Description, global::System.Convert.ToString); @@ -162,6 +194,34 @@ internal ScriptPackage(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackagePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -174,6 +234,10 @@ internal ScriptPackage(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageInternal)this).Description, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackage.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackage.cs index 49046672512a..3212c7508f75 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackage.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackage.cs @@ -26,7 +26,9 @@ public partial class ScriptPackage : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal)Property).Description; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } @@ -36,6 +38,9 @@ public partial class ScriptPackage : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } @@ -48,28 +53,67 @@ public partial class ScriptPackage : /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackageProperties()); set { {_property = value;} } } + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal)Property).ProvisioningState = value; } + /// Internal Acessors for Uri string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageInternal.Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal)Property).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal)Property).Uri = value; } /// Internal Acessors for Version string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageInternal.Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal)Property).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal)Property).Version = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageProperties _property; - /// ScriptPackage resource properties + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackageProperties()); set => this._property = value; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal)Property).ProvisioningState; } + /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } @@ -126,6 +170,18 @@ public partial interface IScriptPackage : SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string Description { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; } /// Link to support by the package vendor [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -158,8 +214,11 @@ internal partial interface IScriptPackageInternal : string Company { get; set; } /// User friendly description of the package string Description { get; set; } - /// ScriptPackage resource properties + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageProperties Property { get; set; } + /// The provisioning state of the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; set; } /// Link to support by the package vendor string Uri { get; set; } /// Module version diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackage.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackage.json.cs index c8f82cff8172..c2eb1c127337 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackage.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackage.json.cs @@ -100,7 +100,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __proxyResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageListResult.PowerShell.cs similarity index 75% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageListResult.PowerShell.cs index 1835b4a44555..fa68ddea8669 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A list of NSX dhcp entities - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDhcpListTypeConverter))] - public partial class WorkloadNetworkDhcpList + /// The response of a ScriptPackage list operation. + [System.ComponentModel.TypeConverter(typeof(ScriptPackageListResultTypeConverter))] + public partial class ScriptPackageListResult { /// @@ -63,61 +63,44 @@ public partial class WorkloadNetworkDhcpList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new WorkloadNetworkDhcpList(content); + return new ScriptPackageListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new WorkloadNetworkDhcpList(content); + return new ScriptPackageListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal WorkloadNetworkDhcpList(global::System.Collections.IDictionary content) + internal ScriptPackageListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -128,21 +111,21 @@ internal WorkloadNetworkDhcpList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackageTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal WorkloadNetworkDhcpList(global::System.Management.Automation.PSObject content) + internal ScriptPackageListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -153,18 +136,35 @@ internal WorkloadNetworkDhcpList(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackageTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } } - /// A list of NSX dhcp entities - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDhcpListTypeConverter))] - public partial interface IWorkloadNetworkDhcpList + /// The response of a ScriptPackage list operation. + [System.ComponentModel.TypeConverter(typeof(ScriptPackageListResultTypeConverter))] + public partial interface IScriptPackageListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/CommonClusterProperties.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageListResult.TypeConverter.cs similarity index 88% rename from src/VMware/VMware.Autorest/generated/api/Models/CommonClusterProperties.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageListResult.TypeConverter.cs index 7a217820851b..657416de1f36 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/CommonClusterProperties.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageListResult.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class CommonClusterPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class ScriptPackageListResultTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class CommonClusterPropertiesTypeConverter : global::System.Manag public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResult).IsAssignableFrom(type)) { return sourceValue; } try { - return CommonClusterProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return ScriptPackageListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPro } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return CommonClusterProperties.DeserializeFromPSObject(sourceValue); + return ScriptPackageListResult.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return CommonClusterProperties.DeserializeFromDictionary(sourceValue); + return ScriptPackageListResult.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackagesList.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageListResult.cs similarity index 53% rename from src/VMware/VMware.Autorest/generated/api/Models/ScriptPackagesList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageListResult.cs index c2516df675ef..8a4f18b0b8de 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackagesList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of the available script packages - public partial class ScriptPackagesList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesListInternal + /// The response of a ScriptPackage list operation. + public partial class ScriptPackageListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// List of script package resources + /// The ScriptPackage items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public ScriptPackagesList() + /// Creates an new instance. + public ScriptPackageListResult() { } } - /// A list of the available script packages - public partial interface IScriptPackagesList : + /// The response of a ScriptPackage list operation. + public partial interface IScriptPackageListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// List of script package resources + string NextLink { get; set; } + /// The ScriptPackage items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"List of script package resources", + Create = true, + Update = true, + Description = @"The ScriptPackage items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackage) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A list of the available script packages - internal partial interface IScriptPackagesListInternal + /// The response of a ScriptPackage list operation. + internal partial interface IScriptPackageListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// List of script package resources + /// The ScriptPackage items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackagesList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageListResult.json.cs similarity index 79% rename from src/VMware/VMware.Autorest/generated/api/Models/ScriptPackagesList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageListResult.json.cs index d7e971f3f75a..886f6ac55a3d 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackagesList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of the available script packages - public partial class ScriptPackagesList + /// The response of a ScriptPackage list operation. + public partial class ScriptPackageListResult { /// @@ -54,22 +54,22 @@ public partial class ScriptPackagesList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new ScriptPackagesList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new ScriptPackageListResult(json) : null; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal ScriptPackagesList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal ScriptPackageListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -83,13 +83,13 @@ internal ScriptPackagesList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Js } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -101,22 +101,16 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageProperties.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageProperties.PowerShell.cs index 09bd23368b02..a4606e5a31a7 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageProperties.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageProperties.PowerShell.cs @@ -109,6 +109,10 @@ internal ScriptPackageProperties(global::System.Collections.IDictionary content) return; } // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal)this).Description, global::System.Convert.ToString); @@ -142,6 +146,10 @@ internal ScriptPackageProperties(global::System.Management.Automation.PSObject c return; } // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("Description")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal)this).Description, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageProperties.cs index ccd5c5a515ac..8e78bbee34a5 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageProperties.cs @@ -33,12 +33,22 @@ public partial class ScriptPackageProperties : /// Internal Acessors for Description string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal.Description { get => this._description; set { {_description = value;} } } + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + /// Internal Acessors for Uri string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal.Uri { get => this._uri; set { {_uri = value;} } } /// Internal Acessors for Version string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagePropertiesInternal.Version { get => this._version; set { {_version = value;} } } + /// Backing field for property. + private string _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + /// Backing field for property. private string _uri; @@ -85,6 +95,18 @@ public partial interface IScriptPackageProperties : SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string Description { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; } /// Link to support by the package vendor [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -117,6 +139,9 @@ internal partial interface IScriptPackagePropertiesInternal string Company { get; set; } /// User friendly description of the package string Description { get; set; } + /// The provisioning state of the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; set; } /// Link to support by the package vendor string Uri { get; set; } /// Module version diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageProperties.json.cs index a125e7e300c6..be85688e2d75 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageProperties.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackageProperties.json.cs @@ -77,6 +77,7 @@ internal ScriptPackageProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runti { return; } + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)_description;} {_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)_version;} {_company = If( json?.PropertyT("company"), out var __jsonCompany) ? (string)__jsonCompany : (string)_company;} @@ -104,6 +105,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackagesList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackagesList.PowerShell.cs deleted file mode 100644 index 33b031d14ccd..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackagesList.PowerShell.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - - /// A list of the available script packages - [System.ComponentModel.TypeConverter(typeof(ScriptPackagesListTypeConverter))] - public partial class ScriptPackagesList - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesList DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ScriptPackagesList(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ScriptPackagesList(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ScriptPackagesList(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackageTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesListInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ScriptPackagesList(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Value")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackageTypeConverter.ConvertFrom)); - } - if (content.Contains("NextLink")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesListInternal)this).NextLink, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// A list of the available script packages - [System.ComponentModel.TypeConverter(typeof(ScriptPackagesListTypeConverter))] - public partial interface IScriptPackagesList - - { - - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackagesList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackagesList.TypeConverter.cs deleted file mode 100644 index cd585a257dea..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptPackagesList.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ScriptPackagesListTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesList ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesList).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ScriptPackagesList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ScriptPackagesList.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ScriptPackagesList.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptParameter.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptParameter.cs index 4151230f5fe5..4518a0c06824 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptParameter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptParameter.cs @@ -50,7 +50,8 @@ public partial class ScriptParameter : private string _type; /// - /// The type of parameter the script is expecting. psCredential is a PSCredentialObject + /// The type of parameter the script is expecting. psCredential is a + /// PSCredentialObject /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Type { get => this._type; } @@ -59,7 +60,8 @@ public partial class ScriptParameter : private string _visibility; /// - /// Should this parameter be visible to arm and passed in the parameters argument when executing + /// Should this parameter be visible to arm and passed in the parameters argument + /// when executing /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Visibility { get => this._visibility; } @@ -109,7 +111,8 @@ public partial interface IScriptParameter : [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Optional", "Required")] string Optional { get; } /// - /// The type of parameter the script is expecting. psCredential is a PSCredentialObject + /// The type of parameter the script is expecting. psCredential is a + /// PSCredentialObject /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -117,13 +120,15 @@ public partial interface IScriptParameter : Read = true, Create = false, Update = false, - Description = @"The type of parameter the script is expecting. psCredential is a PSCredentialObject", + Description = @"The type of parameter the script is expecting. psCredential is a + PSCredentialObject", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("String", "SecureString", "Credential", "Int", "Bool", "Float")] string Type { get; } /// - /// Should this parameter be visible to arm and passed in the parameters argument when executing + /// Should this parameter be visible to arm and passed in the parameters argument + /// when executing /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -131,7 +136,8 @@ public partial interface IScriptParameter : Read = true, Create = false, Update = false, - Description = @"Should this parameter be visible to arm and passed in the parameters argument when executing", + Description = @"Should this parameter be visible to arm and passed in the parameters argument + when executing", SerializedName = @"visibility", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Visible", "Hidden")] @@ -150,12 +156,14 @@ internal partial interface IScriptParameterInternal [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Optional", "Required")] string Optional { get; set; } /// - /// The type of parameter the script is expecting. psCredential is a PSCredentialObject + /// The type of parameter the script is expecting. psCredential is a + /// PSCredentialObject /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("String", "SecureString", "Credential", "Int", "Bool", "Float")] string Type { get; set; } /// - /// Should this parameter be visible to arm and passed in the parameters argument when executing + /// Should this parameter be visible to arm and passed in the parameters argument + /// when executing /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Visible", "Hidden")] string Visibility { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptSecureStringExecutionParameter.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptSecureStringExecutionParameter.PowerShell.cs index 55827bf8b882..2b581e9b9b03 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptSecureStringExecutionParameter.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptSecureStringExecutionParameter.PowerShell.cs @@ -113,16 +113,16 @@ internal ScriptSecureStringExecutionParameter(global::System.Collections.IDictio // actually deserialize if (content.Contains("SecureValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptSecureStringExecutionParameterInternal)this).SecureValue = (string) content.GetValueForProperty("SecureValue",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptSecureStringExecutionParameterInternal)this).SecureValue, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptSecureStringExecutionParameterInternal)this).SecureValue = (System.Security.SecureString) content.GetValueForProperty("SecureValue",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptSecureStringExecutionParameterInternal)this).SecureValue, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -142,16 +142,16 @@ internal ScriptSecureStringExecutionParameter(global::System.Management.Automati // actually deserialize if (content.Contains("SecureValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptSecureStringExecutionParameterInternal)this).SecureValue = (string) content.GetValueForProperty("SecureValue",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptSecureStringExecutionParameterInternal)this).SecureValue, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptSecureStringExecutionParameterInternal)this).SecureValue = (System.Security.SecureString) content.GetValueForProperty("SecureValue",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptSecureStringExecutionParameterInternal)this).SecureValue, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptSecureStringExecutionParameter.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptSecureStringExecutionParameter.cs index ab07ff0a564a..6de7d10afe20 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptSecureStringExecutionParameter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptSecureStringExecutionParameter.cs @@ -24,13 +24,13 @@ public partial class ScriptSecureStringExecutionParameter : public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)__scriptExecutionParameter).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)__scriptExecutionParameter).Name = value ; } /// Backing field for property. - private string _secureValue; + private System.Security.SecureString _secureValue; /// A secure value for the passed parameter, not to be stored in logs [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string SecureValue { get => this._secureValue; set => this._secureValue = value; } + public System.Security.SecureString SecureValue { get => this._secureValue; set => this._secureValue = value; } - /// The type of execution parameter + /// script execution parameter type [Microsoft.Azure.PowerShell.Cmdlets.VMware.Constant] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => "SecureValue"; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)__scriptExecutionParameter).Type = "SecureValue"; } @@ -67,8 +67,8 @@ public partial interface IScriptSecureStringExecutionParameter : Update = true, Description = @"A secure value for the passed parameter, not to be stored in logs", SerializedName = @"secureValue", - PossibleTypes = new [] { typeof(string) })] - string SecureValue { get; set; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString SecureValue { get; set; } } /// a plain text value execution parameter @@ -76,7 +76,7 @@ internal partial interface IScriptSecureStringExecutionParameterInternal : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal { /// A secure value for the passed parameter, not to be stored in logs - string SecureValue { get; set; } + System.Security.SecureString SecureValue { get; set; } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptSecureStringExecutionParameter.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptSecureStringExecutionParameter.json.cs index 3d15130bd4c4..91775010affa 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptSecureStringExecutionParameter.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptSecureStringExecutionParameter.json.cs @@ -78,7 +78,7 @@ internal ScriptSecureStringExecutionParameter(Microsoft.Azure.PowerShell.Cmdlets return; } __scriptExecutionParameter = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionParameter(json); - {_secureValue = If( json?.PropertyT("secureValue"), out var __jsonSecureValue) ? (string)__jsonSecureValue : (string)_secureValue;} + {_secureValue = If( json?.PropertyT("secureValue"), out var __jsonSecureValue) ? new System.Net.NetworkCredential("",(string)__jsonSecureValue).SecurePassword : _secureValue;} AfterFromJson(json); } @@ -103,7 +103,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __scriptExecutionParameter?.ToJson(container, serializationMode); - AddIf( null != (((object)this._secureValue)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._secureValue.ToString()) : null, "secureValue" ,container.Add ); + AddIf( null != (((object)this._secureValue)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(System.Runtime.InteropServices.Marshal.PtrToStringBSTR(System.Runtime.InteropServices.Marshal.SecureStringToBSTR(this._secureValue))) : null, "secureValue" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptStringExecutionParameter.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptStringExecutionParameter.PowerShell.cs index d0a463f3dd91..2900f9fdfa9c 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptStringExecutionParameter.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptStringExecutionParameter.PowerShell.cs @@ -113,14 +113,14 @@ internal ScriptStringExecutionParameter(global::System.Collections.IDictionary c { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptStringExecutionParameterInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptStringExecutionParameterInternal)this).Value, global::System.Convert.ToString); } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name, global::System.Convert.ToString); - } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -142,14 +142,14 @@ internal ScriptStringExecutionParameter(global::System.Management.Automation.PSO { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptStringExecutionParameterInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptStringExecutionParameterInternal)this).Value, global::System.Convert.ToString); } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name, global::System.Convert.ToString); - } if (content.Contains("Type")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)this).Name, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ScriptStringExecutionParameter.cs b/src/VMware/VMware.Autorest/generated/api/Models/ScriptStringExecutionParameter.cs index 31376934453f..fafc6e10cf0c 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ScriptStringExecutionParameter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/ScriptStringExecutionParameter.cs @@ -23,7 +23,7 @@ public partial class ScriptStringExecutionParameter : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)__scriptExecutionParameter).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)__scriptExecutionParameter).Name = value ; } - /// The type of execution parameter + /// script execution parameter type [Microsoft.Azure.PowerShell.Cmdlets.VMware.Constant] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => "Value"; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameterInternal)__scriptExecutionParameter).Type = "Value"; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ServiceSpecification.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/ServiceSpecification.PowerShell.cs deleted file mode 100644 index 81478ee925d7..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/ServiceSpecification.PowerShell.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - - /// Service specification payload - [System.ComponentModel.TypeConverter(typeof(ServiceSpecificationTypeConverter))] - public partial class ServiceSpecification - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior - /// - /// /// instance serialized to a string, normally it is a Json - /// /// set returnNow to true if you provide a customized OverrideToString function - - partial void OverrideToString(ref string stringResult, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ServiceSpecification(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ServiceSpecification(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ServiceSpecification(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("LogSpecification")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecificationInternal)this).LogSpecification = (System.Collections.Generic.List) content.GetValueForProperty("LogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecificationInternal)this).LogSpecification, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.LogSpecificationTypeConverter.ConvertFrom)); - } - if (content.Contains("MetricSpecification")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecificationInternal)this).MetricSpecification = (System.Collections.Generic.List) content.GetValueForProperty("MetricSpecification",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecificationInternal)this).MetricSpecification, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.MetricSpecificationTypeConverter.ConvertFrom)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ServiceSpecification(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("LogSpecification")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecificationInternal)this).LogSpecification = (System.Collections.Generic.List) content.GetValueForProperty("LogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecificationInternal)this).LogSpecification, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.LogSpecificationTypeConverter.ConvertFrom)); - } - if (content.Contains("MetricSpecification")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecificationInternal)this).MetricSpecification = (System.Collections.Generic.List) content.GetValueForProperty("MetricSpecification",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecificationInternal)this).MetricSpecification, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.MetricSpecificationTypeConverter.ConvertFrom)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } - } - /// Service specification payload - [System.ComponentModel.TypeConverter(typeof(ServiceSpecificationTypeConverter))] - public partial interface IServiceSpecification - - { - - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ServiceSpecification.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/ServiceSpecification.TypeConverter.cs deleted file mode 100644 index 63264e4daa08..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/ServiceSpecification.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class ServiceSpecificationTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return ServiceSpecification.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return ServiceSpecification.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return ServiceSpecification.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ServiceSpecification.cs b/src/VMware/VMware.Autorest/generated/api/Models/ServiceSpecification.cs deleted file mode 100644 index a27ccb2b8d74..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/ServiceSpecification.cs +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - - /// Service specification payload - public partial class ServiceSpecification : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecificationInternal - { - - /// Backing field for property. - private System.Collections.Generic.List _logSpecification; - - /// Specifications of the Log for Azure Monitoring - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List LogSpecification { get => this._logSpecification; set => this._logSpecification = value; } - - /// Backing field for property. - private System.Collections.Generic.List _metricSpecification; - - /// Specifications of the Metrics for Azure Monitoring - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List MetricSpecification { get => this._metricSpecification; set => this._metricSpecification = value; } - - /// Creates an new instance. - public ServiceSpecification() - { - - } - } - /// Service specification payload - public partial interface IServiceSpecification : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable - { - /// Specifications of the Log for Azure Monitoring - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Specifications of the Log for Azure Monitoring", - SerializedName = @"logSpecifications", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecification) })] - System.Collections.Generic.List LogSpecification { get; set; } - /// Specifications of the Metrics for Azure Monitoring - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Specifications of the Metrics for Azure Monitoring", - SerializedName = @"metricSpecifications", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecification) })] - System.Collections.Generic.List MetricSpecification { get; set; } - - } - /// Service specification payload - internal partial interface IServiceSpecificationInternal - - { - /// Specifications of the Log for Azure Monitoring - System.Collections.Generic.List LogSpecification { get; set; } - /// Specifications of the Metrics for Azure Monitoring - System.Collections.Generic.List MetricSpecification { get; set; } - - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ServiceSpecification.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/ServiceSpecification.json.cs deleted file mode 100644 index f2ad7a00d30a..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/ServiceSpecification.json.cs +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - - /// Service specification payload - public partial class ServiceSpecification - { - - /// - /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JsonNode that should be deserialized into this object. - - partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json); - - /// - /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The JSON container that the serialization result will be placed in. - - partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container); - - /// - /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of - /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the - /// output parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JsonNode that should be deserialized into this object. - /// Determines if the rest of the deserialization should be processed, or if the method should return - /// instantly. - - partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, ref bool returnNow); - - /// - /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the - /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The JSON container that the serialization result will be placed in. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); - - /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification. - /// - /// a to deserialize from. - /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new ServiceSpecification(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal ServiceSpecification(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_logSpecification = If( json?.PropertyT("logSpecifications"), out var __jsonLogSpecifications) ? If( __jsonLogSpecifications as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecification) (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.LogSpecification.FromJson(__u) )) ))() : null : _logSpecification;} - {_metricSpecification = If( json?.PropertyT("metricSpecifications"), out var __jsonMetricSpecifications) ? If( __jsonMetricSpecifications as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricSpecification) (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.MetricSpecification.FromJson(__p) )) ))() : null : _metricSpecification;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . - /// - /// The container to serialize this object into. If the caller - /// passes in null, a new instance will be created and returned to the caller. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// a serialized instance of as a . - /// - public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) - { - container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject(); - - bool returnNow = false; - BeforeToJson(ref container, ref returnNow); - if (returnNow) - { - return container; - } - if (null != this._logSpecification) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._logSpecification ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("logSpecifications",__w); - } - if (null != this._metricSpecification) - { - var __r = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __s in this._metricSpecification ) - { - AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); - } - container.Add("metricSpecifications",__r); - } - AfterToJson(ref container); - return container; - } - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Sku.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/Sku.PowerShell.cs index 63c699de3f38..efdcda359deb 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Sku.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Sku.PowerShell.cs @@ -113,6 +113,22 @@ internal Sku(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Name, global::System.Convert.ToString); } + if (content.Contains("Tier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Tier, global::System.Convert.ToString); + } + if (content.Contains("Size")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Size = (string) content.GetValueForProperty("Size",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Size, global::System.Convert.ToString); + } + if (content.Contains("Family")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Family = (string) content.GetValueForProperty("Family",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Family, global::System.Convert.ToString); + } + if (content.Contains("Capacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Capacity = (int?) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Capacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } AfterDeserializeDictionary(content); } @@ -134,6 +150,22 @@ internal Sku(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Name, global::System.Convert.ToString); } + if (content.Contains("Tier")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Tier, global::System.Convert.ToString); + } + if (content.Contains("Size")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Size = (string) content.GetValueForProperty("Size",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Size, global::System.Convert.ToString); + } + if (content.Contains("Family")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Family = (string) content.GetValueForProperty("Family",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Family, global::System.Convert.ToString); + } + if (content.Contains("Capacity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Capacity = (int?) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal)this).Capacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } AfterDeserializePSObject(content); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Sku.cs b/src/VMware/VMware.Autorest/generated/api/Models/Sku.cs index 5d656aff6b55..adc8cc0ca144 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Sku.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Sku.cs @@ -13,13 +13,51 @@ public partial class Sku : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISkuInternal { + /// Backing field for property. + private int? _capacity; + + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public int? Capacity { get => this._capacity; set => this._capacity = value; } + + /// Backing field for property. + private string _family; + + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string Family { get => this._family; set => this._family = value; } + /// Backing field for property. private string _name; - /// The name of the SKU. + /// The name of the SKU. E.g. P3. It is typically a letter+number code [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Name { get => this._name; set => this._name = value; } + /// Backing field for property. + private string _size; + + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string Size { get => this._size; set => this._size = value; } + + /// Backing field for property. + private string _tier; + + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string Tier { get => this._tier; set => this._tier = value; } + /// Creates an new instance. public Sku() { @@ -30,25 +68,99 @@ public Sku() public partial interface ISku : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// The name of the SKU. + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + int? Capacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + string Family { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The name of the SKU.", + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + string Size { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string Tier { get; set; } } /// The resource model definition representing SKU internal partial interface ISkuInternal { - /// The name of the SKU. + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + int? Capacity { get; set; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + string Family { get; set; } + /// The name of the SKU. E.g. P3. It is typically a letter+number code string Name { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + string Size { get; set; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + string Tier { get; set; } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/Sku.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/Sku.json.cs index c8f58db654e2..6a7637c700a4 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/Sku.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/Sku.json.cs @@ -76,6 +76,10 @@ internal Sku(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject j return; } {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_tier = If( json?.PropertyT("tier"), out var __jsonTier) ? (string)__jsonTier : (string)_tier;} + {_size = If( json?.PropertyT("size"), out var __jsonSize) ? (string)__jsonSize : (string)_size;} + {_family = If( json?.PropertyT("family"), out var __jsonFamily) ? (string)__jsonFamily : (string)_family;} + {_capacity = If( json?.PropertyT("capacity"), out var __jsonCapacity) ? (int?)__jsonCapacity : _capacity;} AfterFromJson(json); } @@ -99,6 +103,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._tier)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._tier.ToString()) : null, "tier" ,container.Add ); + AddIf( null != (((object)this._size)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._size.ToString()) : null, "size" ,container.Add ); + AddIf( null != (((object)this._family)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._family.ToString()) : null, "family" ,container.Add ); + AddIf( null != this._capacity ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber((int)this._capacity) : null, "capacity" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudIdentity.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/SystemAssignedServiceIdentity.PowerShell.cs similarity index 69% rename from src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudIdentity.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/SystemAssignedServiceIdentity.PowerShell.cs index b4b3f9510104..233a3fc4fb30 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudIdentity.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/SystemAssignedServiceIdentity.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// Identity for the virtual machine. - [System.ComponentModel.TypeConverter(typeof(PrivateCloudIdentityTypeConverter))] - public partial class PrivateCloudIdentity + /// Managed service identity (either system assigned, or none) + [System.ComponentModel.TypeConverter(typeof(SystemAssignedServiceIdentityTypeConverter))] + public partial class SystemAssignedServiceIdentity { /// @@ -63,44 +63,44 @@ public partial class PrivateCloudIdentity partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new PrivateCloudIdentity(content); + return new SystemAssignedServiceIdentity(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new PrivateCloudIdentity(content); + return new SystemAssignedServiceIdentity(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal PrivateCloudIdentity(global::System.Collections.IDictionary content) + internal SystemAssignedServiceIdentity(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -111,25 +111,25 @@ internal PrivateCloudIdentity(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("TenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)this).TenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)this).TenantId, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal PrivateCloudIdentity(global::System.Management.Automation.PSObject content) + internal SystemAssignedServiceIdentity(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -140,15 +140,15 @@ internal PrivateCloudIdentity(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("TenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)this).TenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)this).TenantId, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -170,9 +170,9 @@ public override string ToString() return ToJsonString(); } } - /// Identity for the virtual machine. - [System.ComponentModel.TypeConverter(typeof(PrivateCloudIdentityTypeConverter))] - public partial interface IPrivateCloudIdentity + /// Managed service identity (either system assigned, or none) + [System.ComponentModel.TypeConverter(typeof(SystemAssignedServiceIdentityTypeConverter))] + public partial interface ISystemAssignedServiceIdentity { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/SystemAssignedServiceIdentity.TypeConverter.cs similarity index 86% rename from src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/SystemAssignedServiceIdentity.TypeConverter.cs index 8549374ae178..7cad0127ac4b 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/SystemAssignedServiceIdentity.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class ExpressRouteAuthorizationListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class SystemAssignedServiceIdentityTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class ExpressRouteAuthorizationListTypeConverter : global::System public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity).IsAssignableFrom(type)) { return sourceValue; } try { - return ExpressRouteAuthorizationList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return SystemAssignedServiceIdentity.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuth } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return ExpressRouteAuthorizationList.DeserializeFromPSObject(sourceValue); + return SystemAssignedServiceIdentity.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return ExpressRouteAuthorizationList.DeserializeFromDictionary(sourceValue); + return SystemAssignedServiceIdentity.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudIdentity.cs b/src/VMware/VMware.Autorest/generated/api/Models/SystemAssignedServiceIdentity.cs similarity index 51% rename from src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudIdentity.cs rename to src/VMware/VMware.Autorest/generated/api/Models/SystemAssignedServiceIdentity.cs index e7c284db84ce..275dc4162877 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/SystemAssignedServiceIdentity.cs @@ -7,23 +7,23 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Identity for the virtual machine. - public partial class PrivateCloudIdentity : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal + /// Managed service identity (either system assigned, or none) + public partial class SystemAssignedServiceIdentity : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal { /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } /// Internal Acessors for TenantId - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentityInternal.TenantId { get => this._tenantId; set { {_tenantId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentityInternal.TenantId { get => this._tenantId; set { {_tenantId = value;} } } /// Backing field for property. private string _principalId; /// - /// The principal ID of private cloud identity. This property will only be provided for a system assigned identity. + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string PrincipalId { get => this._principalId; } @@ -32,7 +32,7 @@ public partial class PrivateCloudIdentity : private string _tenantId; /// - /// The tenant ID associated with the private cloud. This property will only be provided for a system assigned identity. + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string TenantId { get => this._tenantId; } @@ -40,25 +40,22 @@ public partial class PrivateCloudIdentity : /// Backing field for property. private string _type; - /// - /// The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The - /// type 'None' will remove any identities from the Private Cloud. - /// + /// Type of managed service identity (either system assigned, or none). [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Type { get => this._type; set => this._type = value; } - /// Creates an new instance. - public PrivateCloudIdentity() + /// Creates an new instance. + public SystemAssignedServiceIdentity() { } } - /// Identity for the virtual machine. - public partial interface IPrivateCloudIdentity : + /// Managed service identity (either system assigned, or none) + public partial interface ISystemAssignedServiceIdentity : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { /// - /// The principal ID of private cloud identity. This property will only be provided for a system assigned identity. + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -66,12 +63,12 @@ public partial interface IPrivateCloudIdentity : Read = true, Create = false, Update = false, - Description = @"The principal ID of private cloud identity. This property will only be provided for a system assigned identity.", + Description = @"The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.", SerializedName = @"principalId", PossibleTypes = new [] { typeof(string) })] string PrincipalId { get; } /// - /// The tenant ID associated with the private cloud. This property will only be provided for a system assigned identity. + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -79,44 +76,38 @@ public partial interface IPrivateCloudIdentity : Read = true, Create = false, Update = false, - Description = @"The tenant ID associated with the private cloud. This property will only be provided for a system assigned identity.", + Description = @"The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.", SerializedName = @"tenantId", PossibleTypes = new [] { typeof(string) })] string TenantId { get; } - /// - /// The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The - /// type 'None' will remove any identities from the Private Cloud. - /// + /// Type of managed service identity (either system assigned, or none). [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Private Cloud.", + Description = @"Type of managed service identity (either system assigned, or none).", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SystemAssigned", "None")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("None", "SystemAssigned")] string Type { get; set; } } - /// Identity for the virtual machine. - internal partial interface IPrivateCloudIdentityInternal + /// Managed service identity (either system assigned, or none) + internal partial interface ISystemAssignedServiceIdentityInternal { /// - /// The principal ID of private cloud identity. This property will only be provided for a system assigned identity. + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// string PrincipalId { get; set; } /// - /// The tenant ID associated with the private cloud. This property will only be provided for a system assigned identity. + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// string TenantId { get; set; } - /// - /// The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The - /// type 'None' will remove any identities from the Private Cloud. - /// - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SystemAssigned", "None")] + /// Type of managed service identity (either system assigned, or none). + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("None", "SystemAssigned")] string Type { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudIdentity.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/SystemAssignedServiceIdentity.json.cs similarity index 87% rename from src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudIdentity.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/SystemAssignedServiceIdentity.json.cs index 3ef463087d18..a09d87664f16 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/PrivateCloudIdentity.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/SystemAssignedServiceIdentity.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Identity for the virtual machine. - public partial class PrivateCloudIdentity + /// Managed service identity (either system assigned, or none) + public partial class SystemAssignedServiceIdentity { /// @@ -54,22 +54,22 @@ public partial class PrivateCloudIdentity partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemAssignedServiceIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new PrivateCloudIdentity(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new SystemAssignedServiceIdentity(json) : null; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal PrivateCloudIdentity(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal SystemAssignedServiceIdentity(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -84,13 +84,13 @@ internal PrivateCloudIdentity(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime. } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/OperationProperties.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/SystemData.PowerShell.cs similarity index 55% rename from src/VMware/VMware.Autorest/generated/api/Models/OperationProperties.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/SystemData.PowerShell.cs index d4a81858530a..a5435dec5814 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/OperationProperties.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/SystemData.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// Extra Operation properties - [System.ComponentModel.TypeConverter(typeof(OperationPropertiesTypeConverter))] - public partial class OperationProperties + /// Metadata pertaining to creation and last modification of the resource. + [System.ComponentModel.TypeConverter(typeof(SystemDataTypeConverter))] + public partial class SystemData { /// @@ -63,44 +63,44 @@ public partial class OperationProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new OperationProperties(content); + return new SystemData(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new OperationProperties(content); + return new SystemData(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal OperationProperties(global::System.Collections.IDictionary content) + internal SystemData(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -109,27 +109,39 @@ internal OperationProperties(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("ServiceSpecification")) + if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ServiceSpecificationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } - if (content.Contains("ServiceSpecificationLogSpecification")) + if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)this).ServiceSpecificationLogSpecification = (System.Collections.Generic.List) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.LogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).CreatedByType = (string) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).CreatedByType, global::System.Convert.ToString); } - if (content.Contains("ServiceSpecificationMetricSpecification")) + if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)this).ServiceSpecificationMetricSpecification = (System.Collections.Generic.List) content.GetValueForProperty("ServiceSpecificationMetricSpecification",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)this).ServiceSpecificationMetricSpecification, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.MetricSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("LastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).LastModifiedByType = (string) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).LastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("LastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal OperationProperties(global::System.Management.Automation.PSObject content) + internal SystemData(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -138,17 +150,29 @@ internal OperationProperties(global::System.Management.Automation.PSObject conte return; } // actually deserialize - if (content.Contains("ServiceSpecification")) + if (content.Contains("CreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + } + if (content.Contains("CreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).CreatedByType = (string) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).CreatedByType, global::System.Convert.ToString); + } + if (content.Contains("CreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ServiceSpecificationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("ServiceSpecificationLogSpecification")) + if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)this).ServiceSpecificationLogSpecification = (System.Collections.Generic.List) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.LogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).LastModifiedByType = (string) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).LastModifiedByType, global::System.Convert.ToString); } - if (content.Contains("ServiceSpecificationMetricSpecification")) + if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)this).ServiceSpecificationMetricSpecification = (System.Collections.Generic.List) content.GetValueForProperty("ServiceSpecificationMetricSpecification",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationPropertiesInternal)this).ServiceSpecificationMetricSpecification, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.MetricSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } @@ -170,9 +194,9 @@ public override string ToString() return ToJsonString(); } } - /// Extra Operation properties - [System.ComponentModel.TypeConverter(typeof(OperationPropertiesTypeConverter))] - public partial interface IOperationProperties + /// Metadata pertaining to creation and last modification of the resource. + [System.ComponentModel.TypeConverter(typeof(SystemDataTypeConverter))] + public partial interface ISystemData { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ClusterList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/SystemData.TypeConverter.cs similarity index 86% rename from src/VMware/VMware.Autorest/generated/api/Models/ClusterList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/SystemData.TypeConverter.cs index d71cc49314af..ed445b969957 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ClusterList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/SystemData.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class ClusterListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class SystemDataTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,12 @@ public partial class ClusterListTypeConverter : global::System.Management.Automa public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// type. + /// Determines if the converter can convert the parameter to the type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +94,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData).IsAssignableFrom(type)) { return sourceValue; } try { - return ClusterList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return SystemData.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +126,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterList Conv } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return ClusterList.DeserializeFromPSObject(sourceValue); + return SystemData.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return ClusterList.DeserializeFromDictionary(sourceValue); + return SystemData.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/SystemData.cs b/src/VMware/VMware.Autorest/generated/api/Models/SystemData.cs new file mode 100644 index 000000000000..f4d55ea2daad --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/SystemData.cs @@ -0,0 +1,158 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// Metadata pertaining to creation and last modification of the resource. + public partial class SystemData : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemDataInternal + { + + /// Backing field for property. + private global::System.DateTime? _createdAt; + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public global::System.DateTime? CreatedAt { get => this._createdAt; set => this._createdAt = value; } + + /// Backing field for property. + private string _createdBy; + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string CreatedBy { get => this._createdBy; set => this._createdBy = value; } + + /// Backing field for property. + private string _createdByType; + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string CreatedByType { get => this._createdByType; set => this._createdByType = value; } + + /// Backing field for property. + private global::System.DateTime? _lastModifiedAt; + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public global::System.DateTime? LastModifiedAt { get => this._lastModifiedAt; set => this._lastModifiedAt = value; } + + /// Backing field for property. + private string _lastModifiedBy; + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string LastModifiedBy { get => this._lastModifiedBy; set => this._lastModifiedBy = value; } + + /// Backing field for property. + private string _lastModifiedByType; + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string LastModifiedByType { get => this._lastModifiedByType; set => this._lastModifiedByType = value; } + + /// Creates an new instance. + public SystemData() + { + + } + } + /// Metadata pertaining to creation and last modification of the resource. + public partial interface ISystemData : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable + { + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The timestamp of resource creation (UTC).", + SerializedName = @"createdAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? CreatedAt { get; set; } + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The identity that created the resource.", + SerializedName = @"createdBy", + PossibleTypes = new [] { typeof(string) })] + string CreatedBy { get; set; } + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The type of identity that created the resource.", + SerializedName = @"createdByType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string CreatedByType { get; set; } + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The timestamp of resource last modification (UTC)", + SerializedName = @"lastModifiedAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? LastModifiedAt { get; set; } + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The identity that last modified the resource.", + SerializedName = @"lastModifiedBy", + PossibleTypes = new [] { typeof(string) })] + string LastModifiedBy { get; set; } + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"The type of identity that last modified the resource.", + SerializedName = @"lastModifiedByType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string LastModifiedByType { get; set; } + + } + /// Metadata pertaining to creation and last modification of the resource. + internal partial interface ISystemDataInternal + + { + /// The timestamp of resource creation (UTC). + global::System.DateTime? CreatedAt { get; set; } + /// The identity that created the resource. + string CreatedBy { get; set; } + /// The type of identity that created the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string CreatedByType { get; set; } + /// The timestamp of resource last modification (UTC) + global::System.DateTime? LastModifiedAt { get; set; } + /// The identity that last modified the resource. + string LastModifiedBy { get; set; } + /// The type of identity that last modified the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("User", "Application", "ManagedIdentity", "Key")] + string LastModifiedByType { get; set; } + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/SystemData.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/SystemData.json.cs new file mode 100644 index 000000000000..e7658b61ff77 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/SystemData.json.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// Metadata pertaining to creation and last modification of the resource. + public partial class SystemData + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData. + /// + /// a to deserialize from. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new SystemData(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. + internal SystemData(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_createdBy = If( json?.PropertyT("createdBy"), out var __jsonCreatedBy) ? (string)__jsonCreatedBy : (string)_createdBy;} + {_createdByType = If( json?.PropertyT("createdByType"), out var __jsonCreatedByType) ? (string)__jsonCreatedByType : (string)_createdByType;} + {_createdAt = If( json?.PropertyT("createdAt"), out var __jsonCreatedAt) ? global::System.DateTime.TryParse((string)__jsonCreatedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreatedAtValue) ? __jsonCreatedAtValue : _createdAt : _createdAt;} + {_lastModifiedBy = If( json?.PropertyT("lastModifiedBy"), out var __jsonLastModifiedBy) ? (string)__jsonLastModifiedBy : (string)_lastModifiedBy;} + {_lastModifiedByType = If( json?.PropertyT("lastModifiedByType"), out var __jsonLastModifiedByType) ? (string)__jsonLastModifiedByType : (string)_lastModifiedByType;} + {_lastModifiedAt = If( json?.PropertyT("lastModifiedAt"), out var __jsonLastModifiedAt) ? global::System.DateTime.TryParse((string)__jsonLastModifiedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastModifiedAtValue) ? __jsonLastModifiedAtValue : _lastModifiedAt : _lastModifiedAt;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._createdBy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._createdBy.ToString()) : null, "createdBy" ,container.Add ); + AddIf( null != (((object)this._createdByType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._createdByType.ToString()) : null, "createdByType" ,container.Add ); + AddIf( null != this._createdAt ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._createdAt?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "createdAt" ,container.Add ); + AddIf( null != (((object)this._lastModifiedBy)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._lastModifiedBy.ToString()) : null, "lastModifiedBy" ,container.Add ); + AddIf( null != (((object)this._lastModifiedByType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._lastModifiedByType.ToString()) : null, "lastModifiedByType" ,container.Add ); + AddIf( null != this._lastModifiedAt ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._lastModifiedAt?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "lastModifiedAt" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/TrackedResource.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/TrackedResource.PowerShell.cs index 7e4213088a16..a9e28a470cb3 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/TrackedResource.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/TrackedResource.PowerShell.cs @@ -7,7 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// The resource model definition for a ARM tracked top level resource + /// + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + /// [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] public partial class TrackedResource { @@ -126,13 +128,41 @@ internal TrackedResource(global::System.Collections.IDictionary content) return; } // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.TrackedResourceTagsTypeConverter.ConvertFrom); + } if (content.Contains("Location")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { @@ -163,13 +193,41 @@ internal TrackedResource(global::System.Management.Automation.PSObject content) return; } // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.TrackedResourceTagsTypeConverter.ConvertFrom); + } if (content.Contains("Location")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Id")) { @@ -186,7 +244,7 @@ internal TrackedResource(global::System.Management.Automation.PSObject content) AfterDeserializePSObject(content); } } - /// The resource model definition for a ARM tracked top level resource + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] public partial interface ITrackedResource diff --git a/src/VMware/VMware.Autorest/generated/api/Models/TrackedResource.cs b/src/VMware/VMware.Autorest/generated/api/Models/TrackedResource.cs index 6cf3e7e6105a..fa969d7076a0 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/TrackedResource.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/TrackedResource.cs @@ -7,7 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// The resource model definition for a ARM tracked top level resource + /// + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + /// public partial class TrackedResource : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResource, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceInternal, @@ -18,14 +20,16 @@ public partial class TrackedResource : /// private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(); - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Id; } /// Backing field for property. private string _location; - /// Resource location + /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value; } @@ -35,21 +39,56 @@ public partial class TrackedResource : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Name; } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? null; } + /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags _tag; - /// Resource tags + /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ResourceTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.TrackedResourceTags()); set => this._tag = value; } - /// Resource type. + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__resource).Type; } @@ -71,43 +110,43 @@ public TrackedResource() await eventListener.AssertObjectIsValid(nameof(__resource), __resource); } } - /// The resource model definition for a ARM tracked top level resource + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' public partial interface ITrackedResource : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResource { - /// Resource location + /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, Read = true, Create = true, - Update = true, - Description = @"Resource location", + Update = false, + Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; set; } - /// Resource tags + /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Resource tags", + Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags Tag { get; set; } } - /// The resource model definition for a ARM tracked top level resource + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' internal partial interface ITrackedResourceInternal : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal { - /// Resource location + /// The geo-location where the resource lives string Location { get; set; } - /// Resource tags - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags Tag { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/TrackedResource.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/TrackedResource.json.cs index 2411e3cdbfa4..1b8b8f0a500d 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/TrackedResource.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/TrackedResource.json.cs @@ -7,7 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// The resource model definition for a ARM tracked top level resource + /// + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + /// public partial class TrackedResource { @@ -85,8 +87,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __resource?.ToJson(container, serializationMode); - AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AddIf( null != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); + } AfterToJson(ref container); return container; } @@ -104,8 +109,8 @@ internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json. return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Resource(json); + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.TrackedResourceTags.FromJson(__jsonTags) : _tag;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ResourceTags.FromJson(__jsonTags) : _tag;} AfterFromJson(json); } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ResourceTags.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/TrackedResourceTags.PowerShell.cs similarity index 82% rename from src/VMware/VMware.Autorest/generated/api/Models/ResourceTags.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/TrackedResourceTags.PowerShell.cs index adccf11bfc6a..4bb426312f37 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ResourceTags.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/TrackedResourceTags.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// Resource tags - [System.ComponentModel.TypeConverter(typeof(ResourceTagsTypeConverter))] - public partial class ResourceTags + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(TrackedResourceTagsTypeConverter))] + public partial class TrackedResourceTags { /// @@ -63,44 +63,61 @@ public partial class ResourceTags partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new ResourceTags(content); + return new TrackedResourceTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new ResourceTags(content); + return new TrackedResourceTags(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal ResourceTags(global::System.Collections.IDictionary content) + internal TrackedResourceTags(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -115,11 +132,11 @@ internal ResourceTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal ResourceTags(global::System.Management.Automation.PSObject content) + internal TrackedResourceTags(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -132,27 +149,10 @@ internal ResourceTags(global::System.Management.Automation.PSObject content) CopyFrom(content); AfterDeserializePSObject(content); } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } } - /// Resource tags - [System.ComponentModel.TypeConverter(typeof(ResourceTagsTypeConverter))] - public partial interface IResourceTags + /// Resource tags. + [System.ComponentModel.TypeConverter(typeof(TrackedResourceTagsTypeConverter))] + public partial interface ITrackedResourceTags { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/TrackedResourceTags.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/TrackedResourceTags.TypeConverter.cs new file mode 100644 index 000000000000..22ebdbb01ced --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/TrackedResourceTags.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class TrackedResourceTagsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return TrackedResourceTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return TrackedResourceTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return TrackedResourceTags.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ResourceTags.cs b/src/VMware/VMware.Autorest/generated/api/Models/TrackedResourceTags.cs similarity index 55% rename from src/VMware/VMware.Autorest/generated/api/Models/ResourceTags.cs rename to src/VMware/VMware.Autorest/generated/api/Models/TrackedResourceTags.cs index ca383d649af3..f035021d8055 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ResourceTags.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/TrackedResourceTags.cs @@ -7,27 +7,27 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Resource tags - public partial class ResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTagsInternal + /// Resource tags. + public partial class TrackedResourceTags : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTagsInternal { - /// Creates an new instance. - public ResourceTags() + /// Creates an new instance. + public TrackedResourceTags() { } } - /// Resource tags - public partial interface IResourceTags : + /// Resource tags. + public partial interface ITrackedResourceTags : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IAssociativeArray { } - /// Resource tags - internal partial interface IResourceTagsInternal + /// Resource tags. + internal partial interface ITrackedResourceTagsInternal { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ResourceTags.dictionary.cs b/src/VMware/VMware.Autorest/generated/api/Models/TrackedResourceTags.dictionary.cs similarity index 96% rename from src/VMware/VMware.Autorest/generated/api/Models/ResourceTags.dictionary.cs rename to src/VMware/VMware.Autorest/generated/api/Models/TrackedResourceTags.dictionary.cs index 779f147593e2..85760d2d11b7 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ResourceTags.dictionary.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/TrackedResourceTags.dictionary.cs @@ -7,7 +7,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - public partial class ResourceTags : + public partial class TrackedResourceTags : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IAssociativeArray { protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ResourceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.TrackedResourceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ResourceTags.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/TrackedResourceTags.json.cs similarity index 84% rename from src/VMware/VMware.Autorest/generated/api/Models/ResourceTags.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/TrackedResourceTags.json.cs index 5d3535f0a6c4..9498dfb64be0 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ResourceTags.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/TrackedResourceTags.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Resource tags - public partial class ResourceTags + /// Resource tags. + public partial class TrackedResourceTags { /// @@ -54,40 +54,25 @@ public partial class ResourceTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags. /// /// a to deserialize from. - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) - { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new ResourceTags(json) : null; - } - - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - /// - internal ResourceTags(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); - AfterFromJson(json); + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new TrackedResourceTags(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -103,5 +88,22 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi AfterToJson(ref container); return container; } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. + /// + internal TrackedResourceTags(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/VMHostPlacementPolicyProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/VMHostPlacementPolicyProperties.cs index 17f6b651a418..d58f497ec30e 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/VMHostPlacementPolicyProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/VMHostPlacementPolicyProperties.cs @@ -62,7 +62,7 @@ public partial class VMHostPlacementPolicyProperties : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string State { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyPropertiesInternal)__placementPolicyProperties).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyPropertiesInternal)__placementPolicyProperties).State = value ?? null; } - /// placement policy type + /// Placement Policy type [Microsoft.Azure.PowerShell.Cmdlets.VMware.Constant] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => "VmHost"; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyPropertiesInternal)__placementPolicyProperties).Type = "VmHost"; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/VMPlacementPolicyProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/VMPlacementPolicyProperties.cs index 1d3ed5f31168..59343cb3bf82 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/VMPlacementPolicyProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/VMPlacementPolicyProperties.cs @@ -41,7 +41,7 @@ public partial class VMPlacementPolicyProperties : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string State { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyPropertiesInternal)__placementPolicyProperties).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyPropertiesInternal)__placementPolicyProperties).State = value ?? null; } - /// placement policy type + /// Placement Policy type [Microsoft.Azure.PowerShell.Cmdlets.VMware.Constant] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => "VmVm"; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyPropertiesInternal)__placementPolicyProperties).Type = "VmVm"; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/VMwareIdentity.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/VMwareIdentity.PowerShell.cs index 421760105ce3..5a2fe1ace635 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/VMwareIdentity.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/VMwareIdentity.PowerShell.cs @@ -141,6 +141,18 @@ internal VMwareIdentity(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PrivateCloudName = (string) content.GetValueForProperty("PrivateCloudName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PrivateCloudName, global::System.Convert.ToString); } + if (content.Contains("AddonName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).AddonName = (string) content.GetValueForProperty("AddonName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).AddonName, global::System.Convert.ToString); + } + if (content.Contains("AuthorizationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).AuthorizationName = (string) content.GetValueForProperty("AuthorizationName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).AuthorizationName, global::System.Convert.ToString); + } + if (content.Contains("CloudLinkName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).CloudLinkName = (string) content.GetValueForProperty("CloudLinkName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).CloudLinkName, global::System.Convert.ToString); + } if (content.Contains("ClusterName")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ClusterName = (string) content.GetValueForProperty("ClusterName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ClusterName, global::System.Convert.ToString); @@ -149,45 +161,37 @@ internal VMwareIdentity(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).DatastoreName = (string) content.GetValueForProperty("DatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).DatastoreName, global::System.Convert.ToString); } - if (content.Contains("HcxEnterpriseSiteName")) + if (content.Contains("PlacementPolicyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).HcxEnterpriseSiteName = (string) content.GetValueForProperty("HcxEnterpriseSiteName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).HcxEnterpriseSiteName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PlacementPolicyName = (string) content.GetValueForProperty("PlacementPolicyName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PlacementPolicyName, global::System.Convert.ToString); } - if (content.Contains("AuthorizationName")) + if (content.Contains("VirtualMachineId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).AuthorizationName = (string) content.GetValueForProperty("AuthorizationName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).AuthorizationName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).VirtualMachineId, global::System.Convert.ToString); } if (content.Contains("GlobalReachConnectionName")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).GlobalReachConnectionName = (string) content.GetValueForProperty("GlobalReachConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).GlobalReachConnectionName, global::System.Convert.ToString); } - if (content.Contains("WorkloadNetworkName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).WorkloadNetworkName = (string) content.GetValueForProperty("WorkloadNetworkName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).WorkloadNetworkName, global::System.Convert.ToString); - } - if (content.Contains("SegmentId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).SegmentId = (string) content.GetValueForProperty("SegmentId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).SegmentId, global::System.Convert.ToString); - } - if (content.Contains("DhcpId")) + if (content.Contains("HcxEnterpriseSiteName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).DhcpId = (string) content.GetValueForProperty("DhcpId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).DhcpId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).HcxEnterpriseSiteName = (string) content.GetValueForProperty("HcxEnterpriseSiteName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).HcxEnterpriseSiteName, global::System.Convert.ToString); } - if (content.Contains("GatewayId")) + if (content.Contains("ScriptExecutionName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).GatewayId = (string) content.GetValueForProperty("GatewayId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).GatewayId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptExecutionName = (string) content.GetValueForProperty("ScriptExecutionName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptExecutionName, global::System.Convert.ToString); } - if (content.Contains("PortMirroringId")) + if (content.Contains("ScriptPackageName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PortMirroringId = (string) content.GetValueForProperty("PortMirroringId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PortMirroringId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptPackageName = (string) content.GetValueForProperty("ScriptPackageName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptPackageName, global::System.Convert.ToString); } - if (content.Contains("VMGroupId")) + if (content.Contains("ScriptCmdletName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).VMGroupId = (string) content.GetValueForProperty("VMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).VMGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptCmdletName = (string) content.GetValueForProperty("ScriptCmdletName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptCmdletName, global::System.Convert.ToString); } - if (content.Contains("VirtualMachineId")) + if (content.Contains("DhcpId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).VirtualMachineId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).DhcpId = (string) content.GetValueForProperty("DhcpId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).DhcpId, global::System.Convert.ToString); } if (content.Contains("DnsServiceId")) { @@ -197,33 +201,25 @@ internal VMwareIdentity(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).DnsZoneId = (string) content.GetValueForProperty("DnsZoneId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).DnsZoneId, global::System.Convert.ToString); } - if (content.Contains("PublicIPId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PublicIPId = (string) content.GetValueForProperty("PublicIPId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PublicIPId, global::System.Convert.ToString); - } - if (content.Contains("CloudLinkName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).CloudLinkName = (string) content.GetValueForProperty("CloudLinkName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).CloudLinkName, global::System.Convert.ToString); - } - if (content.Contains("AddonName")) + if (content.Contains("GatewayId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).AddonName = (string) content.GetValueForProperty("AddonName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).AddonName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).GatewayId = (string) content.GetValueForProperty("GatewayId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).GatewayId, global::System.Convert.ToString); } - if (content.Contains("PlacementPolicyName")) + if (content.Contains("PortMirroringId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PlacementPolicyName = (string) content.GetValueForProperty("PlacementPolicyName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PlacementPolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PortMirroringId = (string) content.GetValueForProperty("PortMirroringId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PortMirroringId, global::System.Convert.ToString); } - if (content.Contains("ScriptPackageName")) + if (content.Contains("PublicIPId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptPackageName = (string) content.GetValueForProperty("ScriptPackageName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptPackageName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PublicIPId = (string) content.GetValueForProperty("PublicIPId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PublicIPId, global::System.Convert.ToString); } - if (content.Contains("ScriptCmdletName")) + if (content.Contains("SegmentId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptCmdletName = (string) content.GetValueForProperty("ScriptCmdletName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptCmdletName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).SegmentId = (string) content.GetValueForProperty("SegmentId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).SegmentId, global::System.Convert.ToString); } - if (content.Contains("ScriptExecutionName")) + if (content.Contains("VMGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptExecutionName = (string) content.GetValueForProperty("ScriptExecutionName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptExecutionName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).VMGroupId = (string) content.GetValueForProperty("VMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).VMGroupId, global::System.Convert.ToString); } if (content.Contains("Id")) { @@ -262,6 +258,18 @@ internal VMwareIdentity(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PrivateCloudName = (string) content.GetValueForProperty("PrivateCloudName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PrivateCloudName, global::System.Convert.ToString); } + if (content.Contains("AddonName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).AddonName = (string) content.GetValueForProperty("AddonName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).AddonName, global::System.Convert.ToString); + } + if (content.Contains("AuthorizationName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).AuthorizationName = (string) content.GetValueForProperty("AuthorizationName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).AuthorizationName, global::System.Convert.ToString); + } + if (content.Contains("CloudLinkName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).CloudLinkName = (string) content.GetValueForProperty("CloudLinkName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).CloudLinkName, global::System.Convert.ToString); + } if (content.Contains("ClusterName")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ClusterName = (string) content.GetValueForProperty("ClusterName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ClusterName, global::System.Convert.ToString); @@ -270,45 +278,37 @@ internal VMwareIdentity(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).DatastoreName = (string) content.GetValueForProperty("DatastoreName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).DatastoreName, global::System.Convert.ToString); } - if (content.Contains("HcxEnterpriseSiteName")) + if (content.Contains("PlacementPolicyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).HcxEnterpriseSiteName = (string) content.GetValueForProperty("HcxEnterpriseSiteName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).HcxEnterpriseSiteName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PlacementPolicyName = (string) content.GetValueForProperty("PlacementPolicyName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PlacementPolicyName, global::System.Convert.ToString); } - if (content.Contains("AuthorizationName")) + if (content.Contains("VirtualMachineId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).AuthorizationName = (string) content.GetValueForProperty("AuthorizationName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).AuthorizationName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).VirtualMachineId, global::System.Convert.ToString); } if (content.Contains("GlobalReachConnectionName")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).GlobalReachConnectionName = (string) content.GetValueForProperty("GlobalReachConnectionName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).GlobalReachConnectionName, global::System.Convert.ToString); } - if (content.Contains("WorkloadNetworkName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).WorkloadNetworkName = (string) content.GetValueForProperty("WorkloadNetworkName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).WorkloadNetworkName, global::System.Convert.ToString); - } - if (content.Contains("SegmentId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).SegmentId = (string) content.GetValueForProperty("SegmentId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).SegmentId, global::System.Convert.ToString); - } - if (content.Contains("DhcpId")) + if (content.Contains("HcxEnterpriseSiteName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).DhcpId = (string) content.GetValueForProperty("DhcpId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).DhcpId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).HcxEnterpriseSiteName = (string) content.GetValueForProperty("HcxEnterpriseSiteName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).HcxEnterpriseSiteName, global::System.Convert.ToString); } - if (content.Contains("GatewayId")) + if (content.Contains("ScriptExecutionName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).GatewayId = (string) content.GetValueForProperty("GatewayId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).GatewayId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptExecutionName = (string) content.GetValueForProperty("ScriptExecutionName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptExecutionName, global::System.Convert.ToString); } - if (content.Contains("PortMirroringId")) + if (content.Contains("ScriptPackageName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PortMirroringId = (string) content.GetValueForProperty("PortMirroringId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PortMirroringId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptPackageName = (string) content.GetValueForProperty("ScriptPackageName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptPackageName, global::System.Convert.ToString); } - if (content.Contains("VMGroupId")) + if (content.Contains("ScriptCmdletName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).VMGroupId = (string) content.GetValueForProperty("VMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).VMGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptCmdletName = (string) content.GetValueForProperty("ScriptCmdletName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptCmdletName, global::System.Convert.ToString); } - if (content.Contains("VirtualMachineId")) + if (content.Contains("DhcpId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).VirtualMachineId = (string) content.GetValueForProperty("VirtualMachineId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).VirtualMachineId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).DhcpId = (string) content.GetValueForProperty("DhcpId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).DhcpId, global::System.Convert.ToString); } if (content.Contains("DnsServiceId")) { @@ -318,33 +318,25 @@ internal VMwareIdentity(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).DnsZoneId = (string) content.GetValueForProperty("DnsZoneId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).DnsZoneId, global::System.Convert.ToString); } - if (content.Contains("PublicIPId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PublicIPId = (string) content.GetValueForProperty("PublicIPId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PublicIPId, global::System.Convert.ToString); - } - if (content.Contains("CloudLinkName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).CloudLinkName = (string) content.GetValueForProperty("CloudLinkName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).CloudLinkName, global::System.Convert.ToString); - } - if (content.Contains("AddonName")) + if (content.Contains("GatewayId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).AddonName = (string) content.GetValueForProperty("AddonName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).AddonName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).GatewayId = (string) content.GetValueForProperty("GatewayId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).GatewayId, global::System.Convert.ToString); } - if (content.Contains("PlacementPolicyName")) + if (content.Contains("PortMirroringId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PlacementPolicyName = (string) content.GetValueForProperty("PlacementPolicyName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PlacementPolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PortMirroringId = (string) content.GetValueForProperty("PortMirroringId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PortMirroringId, global::System.Convert.ToString); } - if (content.Contains("ScriptPackageName")) + if (content.Contains("PublicIPId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptPackageName = (string) content.GetValueForProperty("ScriptPackageName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptPackageName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PublicIPId = (string) content.GetValueForProperty("PublicIPId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).PublicIPId, global::System.Convert.ToString); } - if (content.Contains("ScriptCmdletName")) + if (content.Contains("SegmentId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptCmdletName = (string) content.GetValueForProperty("ScriptCmdletName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptCmdletName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).SegmentId = (string) content.GetValueForProperty("SegmentId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).SegmentId, global::System.Convert.ToString); } - if (content.Contains("ScriptExecutionName")) + if (content.Contains("VMGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptExecutionName = (string) content.GetValueForProperty("ScriptExecutionName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).ScriptExecutionName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).VMGroupId = (string) content.GetValueForProperty("VMGroupId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentityInternal)this).VMGroupId, global::System.Convert.ToString); } if (content.Contains("Id")) { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/VMwareIdentity.cs b/src/VMware/VMware.Autorest/generated/api/Models/VMwareIdentity.cs index 8f42cec29360..32fa355bb25a 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/VMwareIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/VMwareIdentity.cs @@ -15,79 +15,77 @@ public partial class VMwareIdentity : /// Backing field for property. private string _addonName; - /// Name of the addon for the private cloud + /// Name of the addon. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string AddonName { get => this._addonName; set => this._addonName = value; } /// Backing field for property. private string _authorizationName; - /// Name of the ExpressRoute Circuit Authorization in the private cloud + /// Name of the ExpressRoute Circuit Authorization [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string AuthorizationName { get => this._authorizationName; set => this._authorizationName = value; } /// Backing field for property. private string _cloudLinkName; - /// Name of the cloud link resource + /// Name of the cloud link. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string CloudLinkName { get => this._cloudLinkName; set => this._cloudLinkName = value; } /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud + /// Name of the cluster [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ClusterName { get => this._clusterName; set => this._clusterName = value; } /// Backing field for property. private string _datastoreName; - /// Name of the datastore in the private cloud cluster + /// Name of the datastore [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string DatastoreName { get => this._datastoreName; set => this._datastoreName = value; } /// Backing field for property. private string _dhcpId; - /// NSX DHCP identifier. Generally the same as the DHCP display name + /// The ID of the DHCP configuration [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string DhcpId { get => this._dhcpId; set => this._dhcpId = value; } /// Backing field for property. private string _dnsServiceId; - /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name - /// + /// ID of the DNS service. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string DnsServiceId { get => this._dnsServiceId; set => this._dnsServiceId = value; } /// Backing field for property. private string _dnsZoneId; - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// ID of the DNS zone. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string DnsZoneId { get => this._dnsZoneId; set => this._dnsZoneId = value; } /// Backing field for property. private string _gatewayId; - /// NSX Gateway identifier. Generally the same as the Gateway's display name + /// The ID of the NSX Gateway [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string GatewayId { get => this._gatewayId; set => this._gatewayId = value; } /// Backing field for property. private string _globalReachConnectionName; - /// Name of the global reach connection in the private cloud + /// Name of the global reach connection [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string GlobalReachConnectionName { get => this._globalReachConnectionName; set => this._globalReachConnectionName = value; } /// Backing field for property. private string _hcxEnterpriseSiteName; - /// Name of the HCX Enterprise Site in the private cloud + /// Name of the HCX Enterprise Site [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string HcxEnterpriseSiteName { get => this._hcxEnterpriseSiteName; set => this._hcxEnterpriseSiteName = value; } @@ -101,25 +99,21 @@ public partial class VMwareIdentity : /// Backing field for property. private string _location; - /// Azure region + /// The name of the Azure region. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value; } /// Backing field for property. private string _placementPolicyName; - /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// + /// Name of the placement policy. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string PlacementPolicyName { get => this._placementPolicyName; set => this._placementPolicyName = value; } /// Backing field for property. private string _portMirroringId; - /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - /// + /// ID of the NSX port mirroring profile. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string PortMirroringId { get => this._portMirroringId; set => this._portMirroringId = value; } @@ -133,9 +127,7 @@ public partial class VMwareIdentity : /// Backing field for property. private string _publicIPId; - /// - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name - /// + /// ID of the DNS zone. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string PublicIPId { get => this._publicIPId; set => this._publicIPId = value; } @@ -149,59 +141,52 @@ public partial class VMwareIdentity : /// Backing field for property. private string _scriptCmdletName; - /// Name of the script cmdlet resource in the script package in the private cloud + /// Name of the script cmdlet. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ScriptCmdletName { get => this._scriptCmdletName; set => this._scriptCmdletName = value; } /// Backing field for property. private string _scriptExecutionName; - /// Name of the user-invoked script execution resource + /// Name of the script cmdlet. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ScriptExecutionName { get => this._scriptExecutionName; set => this._scriptExecutionName = value; } /// Backing field for property. private string _scriptPackageName; - /// Name of the script package in the private cloud + /// Name of the script package. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ScriptPackageName { get => this._scriptPackageName; set => this._scriptPackageName = value; } /// Backing field for property. private string _segmentId; - /// NSX Segment identifier. Generally the same as the Segment's display name + /// The ID of the NSX Segment [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string SegmentId { get => this._segmentId; set => this._segmentId = value; } /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } /// Backing field for property. private string _vMGroupId; - /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// ID of the VM group. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string VMGroupId { get => this._vMGroupId; set => this._vMGroupId = value; } /// Backing field for property. private string _virtualMachineId; - /// Virtual Machine identifier + /// ID of the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string VirtualMachineId { get => this._virtualMachineId; set => this._virtualMachineId = value; } - /// Backing field for property. - private string _workloadNetworkName; - - /// Name for the workload network in the private cloud - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string WorkloadNetworkName { get => this._workloadNetworkName; set => this._workloadNetworkName = value; } - /// Creates an new instance. public VMwareIdentity() { @@ -211,126 +196,124 @@ public VMwareIdentity() public partial interface IVMwareIdentity : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// Name of the addon for the private cloud + /// Name of the addon. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Name of the addon for the private cloud", + Description = @"Name of the addon.", SerializedName = @"addonName", PossibleTypes = new [] { typeof(string) })] string AddonName { get; set; } - /// Name of the ExpressRoute Circuit Authorization in the private cloud + /// Name of the ExpressRoute Circuit Authorization [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Name of the ExpressRoute Circuit Authorization in the private cloud", + Description = @"Name of the ExpressRoute Circuit Authorization", SerializedName = @"authorizationName", PossibleTypes = new [] { typeof(string) })] string AuthorizationName { get; set; } - /// Name of the cloud link resource + /// Name of the cloud link. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Name of the cloud link resource", + Description = @"Name of the cloud link.", SerializedName = @"cloudLinkName", PossibleTypes = new [] { typeof(string) })] string CloudLinkName { get; set; } - /// Name of the cluster in the private cloud + /// Name of the cluster [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] string ClusterName { get; set; } - /// Name of the datastore in the private cloud cluster + /// Name of the datastore [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Name of the datastore in the private cloud cluster", + Description = @"Name of the datastore", SerializedName = @"datastoreName", PossibleTypes = new [] { typeof(string) })] string DatastoreName { get; set; } - /// NSX DHCP identifier. Generally the same as the DHCP display name + /// The ID of the DHCP configuration [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"NSX DHCP identifier. Generally the same as the DHCP display name", + Description = @"The ID of the DHCP configuration", SerializedName = @"dhcpId", PossibleTypes = new [] { typeof(string) })] string DhcpId { get; set; } - /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name - /// + /// ID of the DNS service. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"NSX DNS Service identifier. Generally the same as the DNS Service's display name", + Description = @"ID of the DNS service.", SerializedName = @"dnsServiceId", PossibleTypes = new [] { typeof(string) })] string DnsServiceId { get; set; } - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// ID of the DNS zone. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"NSX DNS Zone identifier. Generally the same as the DNS Zone's display name", + Description = @"ID of the DNS zone.", SerializedName = @"dnsZoneId", PossibleTypes = new [] { typeof(string) })] string DnsZoneId { get; set; } - /// NSX Gateway identifier. Generally the same as the Gateway's display name + /// The ID of the NSX Gateway [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"NSX Gateway identifier. Generally the same as the Gateway's display name", + Description = @"The ID of the NSX Gateway", SerializedName = @"gatewayId", PossibleTypes = new [] { typeof(string) })] string GatewayId { get; set; } - /// Name of the global reach connection in the private cloud + /// Name of the global reach connection [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Name of the global reach connection in the private cloud", + Description = @"Name of the global reach connection", SerializedName = @"globalReachConnectionName", PossibleTypes = new [] { typeof(string) })] string GlobalReachConnectionName { get; set; } - /// Name of the HCX Enterprise Site in the private cloud + /// Name of the HCX Enterprise Site [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Name of the HCX Enterprise Site in the private cloud", + Description = @"Name of the HCX Enterprise Site", SerializedName = @"hcxEnterpriseSiteName", PossibleTypes = new [] { typeof(string) })] string HcxEnterpriseSiteName { get; set; } @@ -345,40 +328,36 @@ public partial interface IVMwareIdentity : SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] string Id { get; set; } - /// Azure region + /// The name of the Azure region. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Azure region", + Description = @"The name of the Azure region.", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; set; } - /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// + /// Name of the placement policy. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy", + Description = @"Name of the placement policy.", SerializedName = @"placementPolicyName", PossibleTypes = new [] { typeof(string) })] string PlacementPolicyName { get; set; } - /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - /// + /// ID of the NSX port mirroring profile. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name", + Description = @"ID of the NSX port mirroring profile.", SerializedName = @"portMirroringId", PossibleTypes = new [] { typeof(string) })] string PortMirroringId { get; set; } @@ -393,16 +372,14 @@ public partial interface IVMwareIdentity : SerializedName = @"privateCloudName", PossibleTypes = new [] { typeof(string) })] string PrivateCloudName { get; set; } - /// - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name - /// + /// ID of the DNS zone. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"NSX Public IP Block identifier. Generally the same as the Public IP Block's display name", + Description = @"ID of the DNS zone.", SerializedName = @"publicIPId", PossibleTypes = new [] { typeof(string) })] string PublicIPId { get; set; } @@ -417,161 +394,138 @@ public partial interface IVMwareIdentity : SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] string ResourceGroupName { get; set; } - /// Name of the script cmdlet resource in the script package in the private cloud + /// Name of the script cmdlet. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Name of the script cmdlet resource in the script package in the private cloud", + Description = @"Name of the script cmdlet.", SerializedName = @"scriptCmdletName", PossibleTypes = new [] { typeof(string) })] string ScriptCmdletName { get; set; } - /// Name of the user-invoked script execution resource + /// Name of the script cmdlet. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Name of the user-invoked script execution resource", + Description = @"Name of the script cmdlet.", SerializedName = @"scriptExecutionName", PossibleTypes = new [] { typeof(string) })] string ScriptExecutionName { get; set; } - /// Name of the script package in the private cloud + /// Name of the script package. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Name of the script package in the private cloud", + Description = @"Name of the script package.", SerializedName = @"scriptPackageName", PossibleTypes = new [] { typeof(string) })] string ScriptPackageName { get; set; } - /// NSX Segment identifier. Generally the same as the Segment's display name + /// The ID of the NSX Segment [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"NSX Segment identifier. Generally the same as the Segment's display name", + Description = @"The ID of the NSX Segment", SerializedName = @"segmentId", PossibleTypes = new [] { typeof(string) })] string SegmentId { get; set; } - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] string SubscriptionId { get; set; } - /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// ID of the VM group. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"NSX VM Group identifier. Generally the same as the VM Group's display name", + Description = @"ID of the VM group.", SerializedName = @"vmGroupId", PossibleTypes = new [] { typeof(string) })] string VMGroupId { get; set; } - /// Virtual Machine identifier + /// ID of the virtual machine. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"Virtual Machine identifier", + Description = @"ID of the virtual machine.", SerializedName = @"virtualMachineId", PossibleTypes = new [] { typeof(string) })] string VirtualMachineId { get; set; } - /// Name for the workload network in the private cloud - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Read = true, - Create = true, - Update = true, - Description = @"Name for the workload network in the private cloud", - SerializedName = @"workloadNetworkName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("default")] - string WorkloadNetworkName { get; set; } } internal partial interface IVMwareIdentityInternal { - /// Name of the addon for the private cloud + /// Name of the addon. string AddonName { get; set; } - /// Name of the ExpressRoute Circuit Authorization in the private cloud + /// Name of the ExpressRoute Circuit Authorization string AuthorizationName { get; set; } - /// Name of the cloud link resource + /// Name of the cloud link. string CloudLinkName { get; set; } - /// Name of the cluster in the private cloud + /// Name of the cluster string ClusterName { get; set; } - /// Name of the datastore in the private cloud cluster + /// Name of the datastore string DatastoreName { get; set; } - /// NSX DHCP identifier. Generally the same as the DHCP display name + /// The ID of the DHCP configuration string DhcpId { get; set; } - /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name - /// + /// ID of the DNS service. string DnsServiceId { get; set; } - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// ID of the DNS zone. string DnsZoneId { get; set; } - /// NSX Gateway identifier. Generally the same as the Gateway's display name + /// The ID of the NSX Gateway string GatewayId { get; set; } - /// Name of the global reach connection in the private cloud + /// Name of the global reach connection string GlobalReachConnectionName { get; set; } - /// Name of the HCX Enterprise Site in the private cloud + /// Name of the HCX Enterprise Site string HcxEnterpriseSiteName { get; set; } /// Resource identity path string Id { get; set; } - /// Azure region + /// The name of the Azure region. string Location { get; set; } - /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// + /// Name of the placement policy. string PlacementPolicyName { get; set; } - /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - /// + /// ID of the NSX port mirroring profile. string PortMirroringId { get; set; } /// Name of the private cloud string PrivateCloudName { get; set; } - /// - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name - /// + /// ID of the DNS zone. string PublicIPId { get; set; } /// The name of the resource group. The name is case insensitive. string ResourceGroupName { get; set; } - /// Name of the script cmdlet resource in the script package in the private cloud + /// Name of the script cmdlet. string ScriptCmdletName { get; set; } - /// Name of the user-invoked script execution resource + /// Name of the script cmdlet. string ScriptExecutionName { get; set; } - /// Name of the script package in the private cloud + /// Name of the script package. string ScriptPackageName { get; set; } - /// NSX Segment identifier. Generally the same as the Segment's display name + /// The ID of the NSX Segment string SegmentId { get; set; } - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. string SubscriptionId { get; set; } - /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// ID of the VM group. string VMGroupId { get; set; } - /// Virtual Machine identifier + /// ID of the virtual machine. string VirtualMachineId { get; set; } - /// Name for the workload network in the private cloud - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("default")] - string WorkloadNetworkName { get; set; } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/VMwareIdentity.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/VMwareIdentity.json.cs index 56c188a3047f..029f4f1a8341 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/VMwareIdentity.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/VMwareIdentity.json.cs @@ -87,27 +87,26 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); AddIf( null != (((object)this._resourceGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._resourceGroupName.ToString()) : null, "resourceGroupName" ,container.Add ); AddIf( null != (((object)this._privateCloudName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._privateCloudName.ToString()) : null, "privateCloudName" ,container.Add ); + AddIf( null != (((object)this._addonName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._addonName.ToString()) : null, "addonName" ,container.Add ); + AddIf( null != (((object)this._authorizationName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._authorizationName.ToString()) : null, "authorizationName" ,container.Add ); + AddIf( null != (((object)this._cloudLinkName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._cloudLinkName.ToString()) : null, "cloudLinkName" ,container.Add ); AddIf( null != (((object)this._clusterName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._clusterName.ToString()) : null, "clusterName" ,container.Add ); AddIf( null != (((object)this._datastoreName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._datastoreName.ToString()) : null, "datastoreName" ,container.Add ); - AddIf( null != (((object)this._hcxEnterpriseSiteName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._hcxEnterpriseSiteName.ToString()) : null, "hcxEnterpriseSiteName" ,container.Add ); - AddIf( null != (((object)this._authorizationName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._authorizationName.ToString()) : null, "authorizationName" ,container.Add ); + AddIf( null != (((object)this._placementPolicyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._placementPolicyName.ToString()) : null, "placementPolicyName" ,container.Add ); + AddIf( null != (((object)this._virtualMachineId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._virtualMachineId.ToString()) : null, "virtualMachineId" ,container.Add ); AddIf( null != (((object)this._globalReachConnectionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._globalReachConnectionName.ToString()) : null, "globalReachConnectionName" ,container.Add ); - AddIf( null != (((object)this._workloadNetworkName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._workloadNetworkName.ToString()) : null, "workloadNetworkName" ,container.Add ); - AddIf( null != (((object)this._segmentId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._segmentId.ToString()) : null, "segmentId" ,container.Add ); + AddIf( null != (((object)this._hcxEnterpriseSiteName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._hcxEnterpriseSiteName.ToString()) : null, "hcxEnterpriseSiteName" ,container.Add ); + AddIf( null != (((object)this._scriptExecutionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._scriptExecutionName.ToString()) : null, "scriptExecutionName" ,container.Add ); + AddIf( null != (((object)this._scriptPackageName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._scriptPackageName.ToString()) : null, "scriptPackageName" ,container.Add ); + AddIf( null != (((object)this._scriptCmdletName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._scriptCmdletName.ToString()) : null, "scriptCmdletName" ,container.Add ); AddIf( null != (((object)this._dhcpId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._dhcpId.ToString()) : null, "dhcpId" ,container.Add ); - AddIf( null != (((object)this._gatewayId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._gatewayId.ToString()) : null, "gatewayId" ,container.Add ); - AddIf( null != (((object)this._portMirroringId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._portMirroringId.ToString()) : null, "portMirroringId" ,container.Add ); - AddIf( null != (((object)this._vMGroupId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._vMGroupId.ToString()) : null, "vmGroupId" ,container.Add ); - AddIf( null != (((object)this._virtualMachineId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._virtualMachineId.ToString()) : null, "virtualMachineId" ,container.Add ); AddIf( null != (((object)this._dnsServiceId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._dnsServiceId.ToString()) : null, "dnsServiceId" ,container.Add ); AddIf( null != (((object)this._dnsZoneId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._dnsZoneId.ToString()) : null, "dnsZoneId" ,container.Add ); + AddIf( null != (((object)this._gatewayId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._gatewayId.ToString()) : null, "gatewayId" ,container.Add ); + AddIf( null != (((object)this._portMirroringId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._portMirroringId.ToString()) : null, "portMirroringId" ,container.Add ); AddIf( null != (((object)this._publicIPId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._publicIPId.ToString()) : null, "publicIPId" ,container.Add ); - AddIf( null != (((object)this._cloudLinkName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._cloudLinkName.ToString()) : null, "cloudLinkName" ,container.Add ); - AddIf( null != (((object)this._addonName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._addonName.ToString()) : null, "addonName" ,container.Add ); - AddIf( null != (((object)this._placementPolicyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._placementPolicyName.ToString()) : null, "placementPolicyName" ,container.Add ); - AddIf( null != (((object)this._scriptPackageName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._scriptPackageName.ToString()) : null, "scriptPackageName" ,container.Add ); - AddIf( null != (((object)this._scriptCmdletName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._scriptCmdletName.ToString()) : null, "scriptCmdletName" ,container.Add ); - AddIf( null != (((object)this._scriptExecutionName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._scriptExecutionName.ToString()) : null, "scriptExecutionName" ,container.Add ); + AddIf( null != (((object)this._segmentId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._segmentId.ToString()) : null, "segmentId" ,container.Add ); + AddIf( null != (((object)this._vMGroupId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._vMGroupId.ToString()) : null, "vmGroupId" ,container.Add ); AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); AfterToJson(ref container); return container; @@ -129,27 +128,26 @@ internal VMwareIdentity(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.J {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)_resourceGroupName;} {_privateCloudName = If( json?.PropertyT("privateCloudName"), out var __jsonPrivateCloudName) ? (string)__jsonPrivateCloudName : (string)_privateCloudName;} + {_addonName = If( json?.PropertyT("addonName"), out var __jsonAddonName) ? (string)__jsonAddonName : (string)_addonName;} + {_authorizationName = If( json?.PropertyT("authorizationName"), out var __jsonAuthorizationName) ? (string)__jsonAuthorizationName : (string)_authorizationName;} + {_cloudLinkName = If( json?.PropertyT("cloudLinkName"), out var __jsonCloudLinkName) ? (string)__jsonCloudLinkName : (string)_cloudLinkName;} {_clusterName = If( json?.PropertyT("clusterName"), out var __jsonClusterName) ? (string)__jsonClusterName : (string)_clusterName;} {_datastoreName = If( json?.PropertyT("datastoreName"), out var __jsonDatastoreName) ? (string)__jsonDatastoreName : (string)_datastoreName;} - {_hcxEnterpriseSiteName = If( json?.PropertyT("hcxEnterpriseSiteName"), out var __jsonHcxEnterpriseSiteName) ? (string)__jsonHcxEnterpriseSiteName : (string)_hcxEnterpriseSiteName;} - {_authorizationName = If( json?.PropertyT("authorizationName"), out var __jsonAuthorizationName) ? (string)__jsonAuthorizationName : (string)_authorizationName;} + {_placementPolicyName = If( json?.PropertyT("placementPolicyName"), out var __jsonPlacementPolicyName) ? (string)__jsonPlacementPolicyName : (string)_placementPolicyName;} + {_virtualMachineId = If( json?.PropertyT("virtualMachineId"), out var __jsonVirtualMachineId) ? (string)__jsonVirtualMachineId : (string)_virtualMachineId;} {_globalReachConnectionName = If( json?.PropertyT("globalReachConnectionName"), out var __jsonGlobalReachConnectionName) ? (string)__jsonGlobalReachConnectionName : (string)_globalReachConnectionName;} - {_workloadNetworkName = If( json?.PropertyT("workloadNetworkName"), out var __jsonWorkloadNetworkName) ? (string)__jsonWorkloadNetworkName : (string)_workloadNetworkName;} - {_segmentId = If( json?.PropertyT("segmentId"), out var __jsonSegmentId) ? (string)__jsonSegmentId : (string)_segmentId;} + {_hcxEnterpriseSiteName = If( json?.PropertyT("hcxEnterpriseSiteName"), out var __jsonHcxEnterpriseSiteName) ? (string)__jsonHcxEnterpriseSiteName : (string)_hcxEnterpriseSiteName;} + {_scriptExecutionName = If( json?.PropertyT("scriptExecutionName"), out var __jsonScriptExecutionName) ? (string)__jsonScriptExecutionName : (string)_scriptExecutionName;} + {_scriptPackageName = If( json?.PropertyT("scriptPackageName"), out var __jsonScriptPackageName) ? (string)__jsonScriptPackageName : (string)_scriptPackageName;} + {_scriptCmdletName = If( json?.PropertyT("scriptCmdletName"), out var __jsonScriptCmdletName) ? (string)__jsonScriptCmdletName : (string)_scriptCmdletName;} {_dhcpId = If( json?.PropertyT("dhcpId"), out var __jsonDhcpId) ? (string)__jsonDhcpId : (string)_dhcpId;} - {_gatewayId = If( json?.PropertyT("gatewayId"), out var __jsonGatewayId) ? (string)__jsonGatewayId : (string)_gatewayId;} - {_portMirroringId = If( json?.PropertyT("portMirroringId"), out var __jsonPortMirroringId) ? (string)__jsonPortMirroringId : (string)_portMirroringId;} - {_vMGroupId = If( json?.PropertyT("vmGroupId"), out var __jsonVMGroupId) ? (string)__jsonVMGroupId : (string)_vMGroupId;} - {_virtualMachineId = If( json?.PropertyT("virtualMachineId"), out var __jsonVirtualMachineId) ? (string)__jsonVirtualMachineId : (string)_virtualMachineId;} {_dnsServiceId = If( json?.PropertyT("dnsServiceId"), out var __jsonDnsServiceId) ? (string)__jsonDnsServiceId : (string)_dnsServiceId;} {_dnsZoneId = If( json?.PropertyT("dnsZoneId"), out var __jsonDnsZoneId) ? (string)__jsonDnsZoneId : (string)_dnsZoneId;} + {_gatewayId = If( json?.PropertyT("gatewayId"), out var __jsonGatewayId) ? (string)__jsonGatewayId : (string)_gatewayId;} + {_portMirroringId = If( json?.PropertyT("portMirroringId"), out var __jsonPortMirroringId) ? (string)__jsonPortMirroringId : (string)_portMirroringId;} {_publicIPId = If( json?.PropertyT("publicIPId"), out var __jsonPublicIPId) ? (string)__jsonPublicIPId : (string)_publicIPId;} - {_cloudLinkName = If( json?.PropertyT("cloudLinkName"), out var __jsonCloudLinkName) ? (string)__jsonCloudLinkName : (string)_cloudLinkName;} - {_addonName = If( json?.PropertyT("addonName"), out var __jsonAddonName) ? (string)__jsonAddonName : (string)_addonName;} - {_placementPolicyName = If( json?.PropertyT("placementPolicyName"), out var __jsonPlacementPolicyName) ? (string)__jsonPlacementPolicyName : (string)_placementPolicyName;} - {_scriptPackageName = If( json?.PropertyT("scriptPackageName"), out var __jsonScriptPackageName) ? (string)__jsonScriptPackageName : (string)_scriptPackageName;} - {_scriptCmdletName = If( json?.PropertyT("scriptCmdletName"), out var __jsonScriptCmdletName) ? (string)__jsonScriptCmdletName : (string)_scriptCmdletName;} - {_scriptExecutionName = If( json?.PropertyT("scriptExecutionName"), out var __jsonScriptExecutionName) ? (string)__jsonScriptExecutionName : (string)_scriptExecutionName;} + {_segmentId = If( json?.PropertyT("segmentId"), out var __jsonSegmentId) ? (string)__jsonSegmentId : (string)_segmentId;} + {_vMGroupId = If( json?.PropertyT("vmGroupId"), out var __jsonVMGroupId) ? (string)__jsonVMGroupId : (string)_vMGroupId;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} AfterFromJson(json); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachine.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachine.PowerShell.cs index 9ecc844737fb..c837edf0dcb1 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachine.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachine.PowerShell.cs @@ -130,6 +130,34 @@ internal VirtualMachine(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachinePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -142,6 +170,10 @@ internal VirtualMachine(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineInternal)this).DisplayName, global::System.Convert.ToString); @@ -179,6 +211,34 @@ internal VirtualMachine(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachinePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -191,6 +251,10 @@ internal VirtualMachine(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineInternal)this).DisplayName, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachine.cs b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachine.cs index 278f036aa095..f40c1d723365 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachine.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachine.cs @@ -28,7 +28,9 @@ public partial class VirtualMachine : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string FolderPath { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal)Property).FolderPath; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } @@ -38,6 +40,9 @@ public partial class VirtualMachine : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } @@ -53,6 +58,9 @@ public partial class VirtualMachine : /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineProperties()); set { {_property = value;} } } + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal)Property).ProvisioningState = value; } + /// Internal Acessors for RestrictMovement string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineInternal.RestrictMovement { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal)Property).RestrictMovement; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal)Property).RestrictMovement = value; } @@ -60,17 +68,21 @@ public partial class VirtualMachine : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string MoRefId { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal)Property).MoRefId; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineProperties _property; - /// Virtual machine properties. + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineProperties()); set => this._property = value; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal)Property).ProvisioningState; } + /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } @@ -79,7 +91,39 @@ public partial class VirtualMachine : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string RestrictMovement { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal)Property).RestrictMovement; } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } @@ -141,6 +185,18 @@ public partial interface IVirtualMachine : SerializedName = @"moRefId", PossibleTypes = new [] { typeof(string) })] string MoRefId { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; } /// Whether VM DRS-driven movement is restricted (enabled) or not (disabled) [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -167,8 +223,11 @@ internal partial interface IVirtualMachineInternal : string FolderPath { get; set; } /// Virtual machine managed object reference id string MoRefId { get; set; } - /// Virtual machine properties. + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineProperties Property { get; set; } + /// The provisioning state of the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; set; } /// Whether VM DRS-driven movement is restricted (enabled) or not (disabled) [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] string RestrictMovement { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachine.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachine.json.cs index e832c655ce26..900e9ce31842 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachine.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachine.json.cs @@ -85,7 +85,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __proxyResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineListResult.PowerShell.cs similarity index 69% rename from src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineListResult.PowerShell.cs index 2dac3a4c6512..5b04ec9af87a 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/HcxEnterpriseSiteList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A paged list of HCX Enterprise Sites - [System.ComponentModel.TypeConverter(typeof(HcxEnterpriseSiteListTypeConverter))] - public partial class HcxEnterpriseSiteList + /// The response of a VirtualMachine list operation. + [System.ComponentModel.TypeConverter(typeof(VirtualMachineListResultTypeConverter))] + public partial class VirtualMachineListResult { /// @@ -63,44 +63,61 @@ public partial class HcxEnterpriseSiteList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new HcxEnterpriseSiteList(content); + return new VirtualMachineListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new HcxEnterpriseSiteList(content); + return new VirtualMachineListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal HcxEnterpriseSiteList(global::System.Collections.IDictionary content) + internal VirtualMachineListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -111,21 +128,21 @@ internal HcxEnterpriseSiteList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSiteTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal HcxEnterpriseSiteList(global::System.Management.Automation.PSObject content) + internal VirtualMachineListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -136,35 +153,18 @@ internal HcxEnterpriseSiteList(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSiteTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSiteListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } } - /// A paged list of HCX Enterprise Sites - [System.ComponentModel.TypeConverter(typeof(HcxEnterpriseSiteListTypeConverter))] - public partial interface IHcxEnterpriseSiteList + /// The response of a VirtualMachine list operation. + [System.ComponentModel.TypeConverter(typeof(VirtualMachineListResultTypeConverter))] + public partial interface IVirtualMachineListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineListResult.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineListResult.TypeConverter.cs new file mode 100644 index 000000000000..c6e802276d56 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineListResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class VirtualMachineListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return VirtualMachineListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return VirtualMachineListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return VirtualMachineListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachinesList.cs b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineListResult.cs similarity index 53% rename from src/VMware/VMware.Autorest/generated/api/Models/VirtualMachinesList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineListResult.cs index faeb7f32559a..351f983e68b1 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachinesList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of Virtual Machines - public partial class VirtualMachinesList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesListInternal + /// The response of a VirtualMachine list operation. + public partial class VirtualMachineListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items to be displayed on the page + /// The VirtualMachine items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public VirtualMachinesList() + /// Creates an new instance. + public VirtualMachineListResult() { } } - /// A list of Virtual Machines - public partial interface IVirtualMachinesList : + /// The response of a VirtualMachine list operation. + public partial interface IVirtualMachineListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items to be displayed on the page + string NextLink { get; set; } + /// The VirtualMachine items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items to be displayed on the page", + Create = true, + Update = true, + Description = @"The VirtualMachine items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachine) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A list of Virtual Machines - internal partial interface IVirtualMachinesListInternal + /// The response of a VirtualMachine list operation. + internal partial interface IVirtualMachineListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items to be displayed on the page + /// The VirtualMachine items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachinesList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineListResult.json.cs similarity index 79% rename from src/VMware/VMware.Autorest/generated/api/Models/VirtualMachinesList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineListResult.json.cs index 71e8f1b81ff5..b733b5671edc 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachinesList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of Virtual Machines - public partial class VirtualMachinesList + /// The response of a VirtualMachine list operation. + public partial class VirtualMachineListResult { /// @@ -54,25 +54,25 @@ public partial class VirtualMachinesList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new VirtualMachinesList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new VirtualMachineListResult(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -84,31 +84,25 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal VirtualMachinesList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal VirtualMachineListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineProperties.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineProperties.PowerShell.cs index 502650194d25..7278e90309ac 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineProperties.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineProperties.PowerShell.cs @@ -126,6 +126,10 @@ internal VirtualMachineProperties(global::System.Collections.IDictionary content return; } // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal)this).DisplayName, global::System.Convert.ToString); @@ -159,6 +163,10 @@ internal VirtualMachineProperties(global::System.Management.Automation.PSObject return; } // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal)this).DisplayName, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineProperties.cs index f2af87599b1e..cff5c24ed47b 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineProperties.cs @@ -38,6 +38,9 @@ public partial class VirtualMachineProperties : /// Internal Acessors for MoRefId string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal.MoRefId { get => this._moRefId; set { {_moRefId = value;} } } + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + /// Internal Acessors for RestrictMovement string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinePropertiesInternal.RestrictMovement { get => this._restrictMovement; set { {_restrictMovement = value;} } } @@ -48,6 +51,13 @@ public partial class VirtualMachineProperties : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string MoRefId { get => this._moRefId; } + /// Backing field for property. + private string _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + /// Backing field for property. private string _restrictMovement; @@ -100,6 +110,18 @@ public partial interface IVirtualMachineProperties : SerializedName = @"moRefId", PossibleTypes = new [] { typeof(string) })] string MoRefId { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; } /// Whether VM DRS-driven movement is restricted (enabled) or not (disabled) [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -126,6 +148,9 @@ internal partial interface IVirtualMachinePropertiesInternal string FolderPath { get; set; } /// Virtual machine managed object reference id string MoRefId { get; set; } + /// The provisioning state of the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] + string ProvisioningState { get; set; } /// Whether VM DRS-driven movement is restricted (enabled) or not (disabled) [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] string RestrictMovement { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineProperties.json.cs index b7ea4650d38c..afeda39608f3 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineProperties.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/VirtualMachineProperties.json.cs @@ -85,6 +85,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); } @@ -116,6 +120,7 @@ internal VirtualMachineProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runt { return; } + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)_displayName;} {_moRefId = If( json?.PropertyT("moRefId"), out var __jsonMoRefId) ? (string)__jsonMoRefId : (string)_moRefId;} {_folderPath = If( json?.PropertyT("folderPath"), out var __jsonFolderPath) ? (string)__jsonFolderPath : (string)_folderPath;} diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetwork.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetwork.PowerShell.cs index c1972f5932d2..212fea1f91c2 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetwork.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetwork.PowerShell.cs @@ -126,6 +126,38 @@ internal WorkloadNetwork(global::System.Collections.IDictionary content) return; } // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -138,6 +170,10 @@ internal WorkloadNetwork(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkInternal)this).ProvisioningState, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -155,6 +191,38 @@ internal WorkloadNetwork(global::System.Management.Automation.PSObject content) return; } // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -167,6 +235,10 @@ internal WorkloadNetwork(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkInternal)this).ProvisioningState, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetwork.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetwork.cs index f1fe4d0176e9..a41264a58022 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetwork.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetwork.cs @@ -18,7 +18,9 @@ public partial class WorkloadNetwork : /// private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(); - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } @@ -28,18 +30,70 @@ public partial class WorkloadNetwork : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } - /// Resource name. + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPropertiesInternal)Property).ProvisioningState = value; } + + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkProperties _property; + + /// The resource-specific properties for this resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkProperties()); set => this._property = value; } + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPropertiesInternal)Property).ProvisioningState; } + /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } @@ -66,12 +120,29 @@ public partial interface IWorkloadNetwork : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResource { + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; } } /// Workload Network internal partial interface IWorkloadNetworkInternal : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IProxyResourceInternal { + /// The resource-specific properties for this resource. + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkProperties Property { get; set; } + /// The provisioning state of the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; set; } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetwork.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetwork.json.cs index 1a6f52e78acf..8eb172d2f246 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetwork.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetwork.json.cs @@ -85,6 +85,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __proxyResource?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } @@ -102,6 +106,7 @@ internal WorkloadNetwork(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json. return; } __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ProxyResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcp.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcp.PowerShell.cs index 827289fd4b69..3a4d36f81ec3 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcp.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcp.PowerShell.cs @@ -130,6 +130,34 @@ internal WorkloadNetworkDhcp(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntity) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpEntityTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -183,6 +211,34 @@ internal WorkloadNetworkDhcp(global::System.Management.Automation.PSObject conte { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntity) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpEntityTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcp.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcp.cs index 7ce305876ace..7dd5e6222669 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcp.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcp.cs @@ -26,7 +26,9 @@ public partial class WorkloadNetworkDhcp : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityInternal)Property).DisplayName = value ?? null; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } @@ -36,6 +38,9 @@ public partial class WorkloadNetworkDhcp : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } @@ -48,14 +53,14 @@ public partial class WorkloadNetworkDhcp : /// Internal Acessors for Segment System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpInternal.Segment { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityInternal)Property).Segment; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityInternal)Property).Segment = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntity _property; - /// DHCP properties. + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntity Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpEntity()); set => this._property = value; } @@ -75,7 +80,39 @@ public partial class WorkloadNetworkDhcp : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public System.Collections.Generic.List Segment { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityInternal)Property).Segment; } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } @@ -108,7 +145,7 @@ public partial interface IWorkloadNetworkDhcp : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Type of DHCP: SERVER or RELAY.", SerializedName = @"dhcpType", PossibleTypes = new [] { typeof(string) })] @@ -120,7 +157,7 @@ public partial interface IWorkloadNetworkDhcp : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Display name of the DHCP entity.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] @@ -135,7 +172,7 @@ public partial interface IWorkloadNetworkDhcp : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// NSX revision number. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -143,7 +180,7 @@ public partial interface IWorkloadNetworkDhcp : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"NSX revision number.", SerializedName = @"revision", PossibleTypes = new [] { typeof(long) })] @@ -170,10 +207,10 @@ internal partial interface IWorkloadNetworkDhcpInternal : string DhcpType { get; set; } /// Display name of the DHCP entity. string DisplayName { get; set; } - /// DHCP properties. + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntity Property { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// NSX revision number. long? Revision { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcp.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcp.json.cs index f9d1091d3096..a2cb0585a450 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcp.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcp.json.cs @@ -85,7 +85,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __proxyResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntity.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntity.PowerShell.cs index 26c776afebdb..698ac6737dfb 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntity.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntity.PowerShell.cs @@ -8,7 +8,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to inherit from + /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to + /// inherit from /// [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDhcpEntityTypeConverter))] public partial class WorkloadNetworkDhcpEntity @@ -188,7 +189,8 @@ internal WorkloadNetworkDhcpEntity(global::System.Management.Automation.PSObject AfterDeserializePSObject(content); } } - /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to inherit from + /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to + /// inherit from [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDhcpEntityTypeConverter))] public partial interface IWorkloadNetworkDhcpEntity diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntity.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntity.cs index 86a81ccb8071..21497a60783d 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntity.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntity.cs @@ -8,7 +8,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; /// - /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to inherit from + /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to + /// inherit from /// public partial class WorkloadNetworkDhcpEntity : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntity, @@ -62,7 +63,8 @@ public WorkloadNetworkDhcpEntity() } } - /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to inherit from + /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to + /// inherit from public partial interface IWorkloadNetworkDhcpEntity : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { @@ -99,7 +101,7 @@ public partial interface IWorkloadNetworkDhcpEntity : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// NSX revision number. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -125,7 +127,8 @@ public partial interface IWorkloadNetworkDhcpEntity : System.Collections.Generic.List Segment { get; } } - /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to inherit from + /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to + /// inherit from internal partial interface IWorkloadNetworkDhcpEntityInternal { @@ -135,7 +138,7 @@ internal partial interface IWorkloadNetworkDhcpEntityInternal /// Display name of the DHCP entity. string DisplayName { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// NSX revision number. long? Revision { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntity.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntity.json.cs index 58baf1378ad0..fa89832992d8 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntity.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntity.json.cs @@ -8,7 +8,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; /// - /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to inherit from + /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to + /// inherit from /// public partial class WorkloadNetworkDhcpEntity { @@ -74,14 +75,14 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkD switch ( json.StringProperty("dhcpType") ) { - case "SERVER": - { - return new WorkloadNetworkDhcpServer(json); - } case "RELAY": { return new WorkloadNetworkDhcpRelay(json); } + case "SERVER": + { + return new WorkloadNetworkDhcpServer(json); + } } return new WorkloadNetworkDhcpEntity(json); } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/LogSpecification.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntityUpdate.PowerShell.cs similarity index 67% rename from src/VMware/VMware.Autorest/generated/api/Models/LogSpecification.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntityUpdate.PowerShell.cs index bc6e1abdaff2..3dfe594813ba 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/LogSpecification.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntityUpdate.PowerShell.cs @@ -7,9 +7,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// Specifications of the Log for Azure Monitoring - [System.ComponentModel.TypeConverter(typeof(LogSpecificationTypeConverter))] - public partial class LogSpecification + /// + /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to + /// inherit from + /// + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDhcpEntityUpdateTypeConverter))] + public partial class WorkloadNetworkDhcpEntityUpdate { /// @@ -63,44 +66,61 @@ public partial class LogSpecification partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecification DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new LogSpecification(content); + return new WorkloadNetworkDhcpEntityUpdate(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new LogSpecification(content); + return new WorkloadNetworkDhcpEntityUpdate(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecification FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal LogSpecification(global::System.Collections.IDictionary content) + internal WorkloadNetworkDhcpEntityUpdate(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -109,27 +129,27 @@ internal LogSpecification(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("Name")) + if (content.Contains("DhcpType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecificationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecificationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DhcpType = (string) content.GetValueForProperty("DhcpType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DhcpType, global::System.Convert.ToString); } if (content.Contains("DisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecificationInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecificationInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DisplayName, global::System.Convert.ToString); } - if (content.Contains("BlobDuration")) + if (content.Contains("Revision")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecificationInternal)this).BlobDuration = (string) content.GetValueForProperty("BlobDuration",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecificationInternal)this).BlobDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal LogSpecification(global::System.Management.Automation.PSObject content) + internal WorkloadNetworkDhcpEntityUpdate(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -138,41 +158,25 @@ internal LogSpecification(global::System.Management.Automation.PSObject content) return; } // actually deserialize - if (content.Contains("Name")) + if (content.Contains("DhcpType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecificationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecificationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DhcpType = (string) content.GetValueForProperty("DhcpType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DhcpType, global::System.Convert.ToString); } if (content.Contains("DisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecificationInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecificationInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DisplayName, global::System.Convert.ToString); } - if (content.Contains("BlobDuration")) + if (content.Contains("Revision")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecificationInternal)this).BlobDuration = (string) content.GetValueForProperty("BlobDuration",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecificationInternal)this).BlobDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } AfterDeserializePSObject(content); } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } } - /// Specifications of the Log for Azure Monitoring - [System.ComponentModel.TypeConverter(typeof(LogSpecificationTypeConverter))] - public partial interface ILogSpecification + /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to + /// inherit from + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDhcpEntityUpdateTypeConverter))] + public partial interface IWorkloadNetworkDhcpEntityUpdate { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntityUpdate.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntityUpdate.TypeConverter.cs new file mode 100644 index 000000000000..db3107626ac5 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntityUpdate.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WorkloadNetworkDhcpEntityUpdateTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WorkloadNetworkDhcpEntityUpdate.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WorkloadNetworkDhcpEntityUpdate.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WorkloadNetworkDhcpEntityUpdate.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntityUpdate.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntityUpdate.cs new file mode 100644 index 000000000000..f7bb95077857 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntityUpdate.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// + /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to + /// inherit from + /// + public partial class WorkloadNetworkDhcpEntityUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal + { + + /// Backing field for property. + private string _dhcpType; + + /// Type of DHCP: SERVER or RELAY. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string DhcpType { get => this._dhcpType; set => this._dhcpType = value; } + + /// Backing field for property. + private string _displayName; + + /// Display name of the DHCP entity. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string DisplayName { get => this._displayName; set => this._displayName = value; } + + /// Backing field for property. + private long? _revision; + + /// NSX revision number. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public long? Revision { get => this._revision; set => this._revision = value; } + + /// Creates an new instance. + public WorkloadNetworkDhcpEntityUpdate() + { + + } + } + /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to + /// inherit from + public partial interface IWorkloadNetworkDhcpEntityUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable + { + /// Type of DHCP: SERVER or RELAY. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Type of DHCP: SERVER or RELAY.", + SerializedName = @"dhcpType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SERVER", "RELAY")] + string DhcpType { get; set; } + /// Display name of the DHCP entity. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Display name of the DHCP entity.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// NSX revision number. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"NSX revision number.", + SerializedName = @"revision", + PossibleTypes = new [] { typeof(long) })] + long? Revision { get; set; } + + } + /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to + /// inherit from + internal partial interface IWorkloadNetworkDhcpEntityUpdateInternal + + { + /// Type of DHCP: SERVER or RELAY. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SERVER", "RELAY")] + string DhcpType { get; set; } + /// Display name of the DHCP entity. + string DisplayName { get; set; } + /// NSX revision number. + long? Revision { get; set; } + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/MetricDimension.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntityUpdate.json.cs similarity index 67% rename from src/VMware/VMware.Autorest/generated/api/Models/MetricDimension.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntityUpdate.json.cs index 2500f9ae1832..fd411cf505fd 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/MetricDimension.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpEntityUpdate.json.cs @@ -7,8 +7,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Specifications of the Dimension of metrics - public partial class MetricDimension + /// + /// Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to + /// inherit from + /// + public partial class WorkloadNetworkDhcpEntityUpdate { /// @@ -54,44 +57,44 @@ public partial class MetricDimension partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimension. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate interface is polymorphic, + /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimension. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimension FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new MetricDimension(json) : null; - } + if (!(node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json)) + { + return null; + } + // Polymorphic type -- select the appropriate constructor using the discriminator - /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal MetricDimension(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) + switch ( json.StringProperty("dhcpType") ) { - return; + case "RELAY": + { + return new WorkloadNetworkDhcpRelayUpdate(json); + } + case "SERVER": + { + return new WorkloadNetworkDhcpServerUpdate(json); + } } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)_displayName;} - {_internalName = If( json?.PropertyT("internalName"), out var __jsonInternalName) ? (string)__jsonInternalName : (string)_internalName;} - {_toBeExportedForShoebox = If( json?.PropertyT("toBeExportedForShoebox"), out var __jsonToBeExportedForShoebox) ? (bool?)__jsonToBeExportedForShoebox : _toBeExportedForShoebox;} - AfterFromJson(json); + return new WorkloadNetworkDhcpEntityUpdate(json); } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -103,12 +106,29 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._dhcpType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._dhcpType.ToString()) : null, "dhcpType" ,container.Add ); AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); - AddIf( null != (((object)this._internalName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._internalName.ToString()) : null, "internalName" ,container.Add ); - AddIf( null != this._toBeExportedForShoebox ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonBoolean((bool)this._toBeExportedForShoebox) : null, "toBeExportedForShoebox" ,container.Add ); + AddIf( null != this._revision ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber((long)this._revision) : null, "revision" ,container.Add ); AfterToJson(ref container); return container; } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. + internal WorkloadNetworkDhcpEntityUpdate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_dhcpType = If( json?.PropertyT("dhcpType"), out var __jsonDhcpType) ? (string)__jsonDhcpType : (string)_dhcpType;} + {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)_displayName;} + {_revision = If( json?.PropertyT("revision"), out var __jsonRevision) ? (long?)__jsonRevision : _revision;} + AfterFromJson(json); + } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpListResult.PowerShell.cs similarity index 74% rename from src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpListResult.PowerShell.cs index 3347e69811bd..f62cdf13330e 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/ExpressRouteAuthorizationList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A paged list of ExpressRoute Circuit Authorizations - [System.ComponentModel.TypeConverter(typeof(ExpressRouteAuthorizationListTypeConverter))] - public partial class ExpressRouteAuthorizationList + /// The response of a WorkloadNetworkDhcp list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDhcpListResultTypeConverter))] + public partial class WorkloadNetworkDhcpListResult { /// @@ -63,37 +63,61 @@ public partial class ExpressRouteAuthorizationList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new ExpressRouteAuthorizationList(content); + return new WorkloadNetworkDhcpListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new ExpressRouteAuthorizationList(content); + return new WorkloadNetworkDhcpListResult(content); } /// - /// Deserializes a into a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal ExpressRouteAuthorizationList(global::System.Collections.IDictionary content) + internal WorkloadNetworkDhcpListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -104,21 +128,21 @@ internal ExpressRouteAuthorizationList(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal ExpressRouteAuthorizationList(global::System.Management.Automation.PSObject content) + internal WorkloadNetworkDhcpListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -129,42 +153,18 @@ internal ExpressRouteAuthorizationList(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } } - /// A paged list of ExpressRoute Circuit Authorizations - [System.ComponentModel.TypeConverter(typeof(ExpressRouteAuthorizationListTypeConverter))] - public partial interface IExpressRouteAuthorizationList + /// The response of a WorkloadNetworkDhcp list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDhcpListResultTypeConverter))] + public partial interface IWorkloadNetworkDhcpListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpListResult.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpListResult.TypeConverter.cs new file mode 100644 index 000000000000..bece98e72b8f --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpListResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WorkloadNetworkDhcpListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WorkloadNetworkDhcpListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WorkloadNetworkDhcpListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WorkloadNetworkDhcpListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpList.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpListResult.cs similarity index 55% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpListResult.cs index cc2adbe5adc5..eded27d4f651 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX dhcp entities - public partial class WorkloadNetworkDhcpList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListInternal + /// The response of a WorkloadNetworkDhcp list operation. + public partial class WorkloadNetworkDhcpListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on the page + /// The WorkloadNetworkDhcp items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public WorkloadNetworkDhcpList() + /// Creates an new instance. + public WorkloadNetworkDhcpListResult() { } } - /// A list of NSX dhcp entities - public partial interface IWorkloadNetworkDhcpList : + /// The response of a WorkloadNetworkDhcp list operation. + public partial interface IWorkloadNetworkDhcpListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on the page + string NextLink { get; set; } + /// The WorkloadNetworkDhcp items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on the page", + Create = true, + Update = true, + Description = @"The WorkloadNetworkDhcp items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A list of NSX dhcp entities - internal partial interface IWorkloadNetworkDhcpListInternal + /// The response of a WorkloadNetworkDhcp list operation. + internal partial interface IWorkloadNetworkDhcpListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on the page + /// The WorkloadNetworkDhcp items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpListResult.json.cs similarity index 80% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpListResult.json.cs index 0f4f9a077a71..7d959ed8e5ce 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX dhcp entities - public partial class WorkloadNetworkDhcpList + /// The response of a WorkloadNetworkDhcp list operation. + public partial class WorkloadNetworkDhcpListResult { /// @@ -54,25 +54,25 @@ public partial class WorkloadNetworkDhcpList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkDhcpList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkDhcpListResult(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -84,31 +84,25 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal WorkloadNetworkDhcpList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal WorkloadNetworkDhcpListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/CommonClusterProperties.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpRelayUpdate.PowerShell.cs similarity index 62% rename from src/VMware/VMware.Autorest/generated/api/Models/CommonClusterProperties.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpRelayUpdate.PowerShell.cs index 0afee1017479..e924102e8852 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/CommonClusterProperties.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpRelayUpdate.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// The common properties of a cluster - [System.ComponentModel.TypeConverter(typeof(CommonClusterPropertiesTypeConverter))] - public partial class CommonClusterProperties + /// NSX DHCP Relay + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDhcpRelayUpdateTypeConverter))] + public partial class WorkloadNetworkDhcpRelayUpdate { /// @@ -63,11 +63,61 @@ public partial class CommonClusterProperties partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into a new instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal CommonClusterProperties(global::System.Collections.IDictionary content) + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpRelayUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new WorkloadNetworkDhcpRelayUpdate(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpRelayUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new WorkloadNetworkDhcpRelayUpdate(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpRelayUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal WorkloadNetworkDhcpRelayUpdate(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -76,31 +126,31 @@ internal CommonClusterProperties(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("ClusterSize")) + if (content.Contains("ServerAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterSize = (int?) content.GetValueForProperty("ClusterSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpRelayUpdateInternal)this).ServerAddress = (System.Collections.Generic.List) content.GetValueForProperty("ServerAddress",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpRelayUpdateInternal)this).ServerAddress, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("DhcpType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DhcpType = (string) content.GetValueForProperty("DhcpType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DhcpType, global::System.Convert.ToString); } - if (content.Contains("ClusterId")) + if (content.Contains("DisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterId = (int?) content.GetValueForProperty("ClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DisplayName, global::System.Convert.ToString); } - if (content.Contains("Host")) + if (content.Contains("Revision")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).Host = (System.Collections.Generic.List) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).Host, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal CommonClusterProperties(global::System.Management.Automation.PSObject content) + internal WorkloadNetworkDhcpRelayUpdate(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -109,78 +159,28 @@ internal CommonClusterProperties(global::System.Management.Automation.PSObject c return; } // actually deserialize - if (content.Contains("ClusterSize")) + if (content.Contains("ServerAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterSize = (int?) content.GetValueForProperty("ClusterSize",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterSize, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpRelayUpdateInternal)this).ServerAddress = (System.Collections.Generic.List) content.GetValueForProperty("ServerAddress",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpRelayUpdateInternal)this).ServerAddress, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("DhcpType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DhcpType = (string) content.GetValueForProperty("DhcpType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DhcpType, global::System.Convert.ToString); } - if (content.Contains("ClusterId")) + if (content.Contains("DisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterId = (int?) content.GetValueForProperty("ClusterId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).ClusterId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DisplayName, global::System.Convert.ToString); } - if (content.Contains("Host")) + if (content.Contains("Revision")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).Host = (System.Collections.Generic.List) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterPropertiesInternal)this).Host, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } AfterDeserializePSObject(content); } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new CommonClusterProperties(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new CommonClusterProperties(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICommonClusterProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } } - /// The common properties of a cluster - [System.ComponentModel.TypeConverter(typeof(CommonClusterPropertiesTypeConverter))] - public partial interface ICommonClusterProperties + /// NSX DHCP Relay + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDhcpRelayUpdateTypeConverter))] + public partial interface IWorkloadNetworkDhcpRelayUpdate { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServicesList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpRelayUpdate.TypeConverter.cs similarity index 87% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServicesList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpRelayUpdate.TypeConverter.cs index 3b83e5ccd99a..bb3956acdb1a 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServicesList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpRelayUpdate.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class WorkloadNetworkDnsServicesListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class WorkloadNetworkDhcpRelayUpdateTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class WorkloadNetworkDnsServicesListTypeConverter : global::Syste public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,32 +95,32 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpRelayUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpRelayUpdate).IsAssignableFrom(type)) { return sourceValue; } try { - return WorkloadNetworkDnsServicesList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return WorkloadNetworkDhcpRelayUpdate.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -128,11 +128,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkD } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return WorkloadNetworkDnsServicesList.DeserializeFromPSObject(sourceValue); + return WorkloadNetworkDhcpRelayUpdate.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return WorkloadNetworkDnsServicesList.DeserializeFromDictionary(sourceValue); + return WorkloadNetworkDhcpRelayUpdate.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpRelayUpdate.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpRelayUpdate.cs new file mode 100644 index 000000000000..d5722c65d15a --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpRelayUpdate.cs @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// NSX DHCP Relay + public partial class WorkloadNetworkDhcpRelayUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpRelayUpdate, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpRelayUpdateInternal, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate __workloadNetworkDhcpEntityUpdate = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpEntityUpdate(); + + /// Type of DHCP: SERVER or RELAY. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Constant] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string DhcpType { get => "RELAY"; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)__workloadNetworkDhcpEntityUpdate).DhcpType = "RELAY"; } + + /// Display name of the DHCP entity. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)__workloadNetworkDhcpEntityUpdate).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)__workloadNetworkDhcpEntityUpdate).DisplayName = value ?? null; } + + /// NSX revision number. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public long? Revision { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)__workloadNetworkDhcpEntityUpdate).Revision; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)__workloadNetworkDhcpEntityUpdate).Revision = value ?? default(long); } + + /// Backing field for property. + private System.Collections.Generic.List _serverAddress; + + /// DHCP Relay Addresses. Max 3. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public System.Collections.Generic.List ServerAddress { get => this._serverAddress; set => this._serverAddress = value; } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__workloadNetworkDhcpEntityUpdate), __workloadNetworkDhcpEntityUpdate); + await eventListener.AssertObjectIsValid(nameof(__workloadNetworkDhcpEntityUpdate), __workloadNetworkDhcpEntityUpdate); + } + + /// Creates an new instance. + public WorkloadNetworkDhcpRelayUpdate() + { + this.__workloadNetworkDhcpEntityUpdate.DhcpType = "RELAY"; + } + } + /// NSX DHCP Relay + public partial interface IWorkloadNetworkDhcpRelayUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate + { + /// DHCP Relay Addresses. Max 3. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"DHCP Relay Addresses. Max 3.", + SerializedName = @"serverAddresses", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List ServerAddress { get; set; } + + } + /// NSX DHCP Relay + internal partial interface IWorkloadNetworkDhcpRelayUpdateInternal : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal + { + /// DHCP Relay Addresses. Max 3. + System.Collections.Generic.List ServerAddress { get; set; } + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/LogSpecification.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpRelayUpdate.json.cs similarity index 71% rename from src/VMware/VMware.Autorest/generated/api/Models/LogSpecification.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpRelayUpdate.json.cs index 8c0640cc4165..3314c76973c4 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/LogSpecification.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpRelayUpdate.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// Specifications of the Log for Azure Monitoring - public partial class LogSpecification + /// NSX DHCP Relay + public partial class WorkloadNetworkDhcpRelayUpdate { /// @@ -54,43 +54,25 @@ public partial class LogSpecification partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecification. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpRelayUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecification. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpRelayUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILogSpecification FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpRelayUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new LogSpecification(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkDhcpRelayUpdate(json) : null; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . - /// - /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal LogSpecification(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) - { - bool returnNow = false; - BeforeFromJson(json, ref returnNow); - if (returnNow) - { - return; - } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} - {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)_displayName;} - {_blobDuration = If( json?.PropertyT("blobDuration"), out var __jsonBlobDuration) ? (string)__jsonBlobDuration : (string)_blobDuration;} - AfterFromJson(json); - } - - /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -102,11 +84,35 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); - AddIf( null != (((object)this._blobDuration)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._blobDuration.ToString()) : null, "blobDuration" ,container.Add ); + __workloadNetworkDhcpEntityUpdate?.ToJson(container, serializationMode); + if (null != this._serverAddress) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._serverAddress ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("serverAddresses",__w); + } AfterToJson(ref container); return container; } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. + internal WorkloadNetworkDhcpRelayUpdate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __workloadNetworkDhcpEntityUpdate = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpEntityUpdate(json); + {_serverAddress = If( json?.PropertyT("serverAddresses"), out var __jsonServerAddresses) ? If( __jsonServerAddresses as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _serverAddress;} + AfterFromJson(json); + } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServer.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServer.PowerShell.cs index f452ad681aca..c6115f1150d8 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServer.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServer.PowerShell.cs @@ -132,7 +132,7 @@ internal WorkloadNetworkDhcpServer(global::System.Collections.IDictionary conten } if (content.Contains("LeaseTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerInternal)this).LeaseTime = (long?) content.GetValueForProperty("LeaseTime",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerInternal)this).LeaseTime, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerInternal)this).LeaseTime = (int?) content.GetValueForProperty("LeaseTime",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerInternal)this).LeaseTime, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("DhcpType")) { @@ -177,7 +177,7 @@ internal WorkloadNetworkDhcpServer(global::System.Management.Automation.PSObject } if (content.Contains("LeaseTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerInternal)this).LeaseTime = (long?) content.GetValueForProperty("LeaseTime",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerInternal)this).LeaseTime, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerInternal)this).LeaseTime = (int?) content.GetValueForProperty("LeaseTime",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerInternal)this).LeaseTime, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("DhcpType")) { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServer.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServer.cs index 013af1a250a2..a3f7e3b9c7dd 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServer.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServer.cs @@ -29,11 +29,11 @@ public partial class WorkloadNetworkDhcpServer : public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityInternal)__workloadNetworkDhcpEntity).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityInternal)__workloadNetworkDhcpEntity).DisplayName = value ?? null; } /// Backing field for property. - private long? _leaseTime; + private int? _leaseTime; /// DHCP Server Lease Time. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public long? LeaseTime { get => this._leaseTime; set => this._leaseTime = value; } + public int? LeaseTime { get => this._leaseTime; set => this._leaseTime = value; } /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityInternal)__workloadNetworkDhcpEntity).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityInternal)__workloadNetworkDhcpEntity).ProvisioningState = value; } @@ -92,8 +92,8 @@ public partial interface IWorkloadNetworkDhcpServer : Update = true, Description = @"DHCP Server Lease Time.", SerializedName = @"leaseTime", - PossibleTypes = new [] { typeof(long) })] - long? LeaseTime { get; set; } + PossibleTypes = new [] { typeof(int) })] + int? LeaseTime { get; set; } /// DHCP Server Address. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -112,7 +112,7 @@ internal partial interface IWorkloadNetworkDhcpServerInternal : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityInternal { /// DHCP Server Lease Time. - long? LeaseTime { get; set; } + int? LeaseTime { get; set; } /// DHCP Server Address. string ServerAddress { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServer.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServer.json.cs index 6c7d745f90a0..4269663e822d 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServer.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServer.json.cs @@ -86,7 +86,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi } __workloadNetworkDhcpEntity?.ToJson(container, serializationMode); AddIf( null != (((object)this._serverAddress)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._serverAddress.ToString()) : null, "serverAddress" ,container.Add ); - AddIf( null != this._leaseTime ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber((long)this._leaseTime) : null, "leaseTime" ,container.Add ); + AddIf( null != this._leaseTime ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber((int)this._leaseTime) : null, "leaseTime" ,container.Add ); AfterToJson(ref container); return container; } @@ -105,7 +105,7 @@ internal WorkloadNetworkDhcpServer(Microsoft.Azure.PowerShell.Cmdlets.VMware.Run } __workloadNetworkDhcpEntity = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpEntity(json); {_serverAddress = If( json?.PropertyT("serverAddress"), out var __jsonServerAddress) ? (string)__jsonServerAddress : (string)_serverAddress;} - {_leaseTime = If( json?.PropertyT("leaseTime"), out var __jsonLeaseTime) ? (long?)__jsonLeaseTime : _leaseTime;} + {_leaseTime = If( json?.PropertyT("leaseTime"), out var __jsonLeaseTime) ? (int?)__jsonLeaseTime : _leaseTime;} AfterFromJson(json); } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServerUpdate.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServerUpdate.PowerShell.cs new file mode 100644 index 000000000000..b90589d1af1f --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServerUpdate.PowerShell.cs @@ -0,0 +1,196 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// NSX DHCP Server + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDhcpServerUpdateTypeConverter))] + public partial class WorkloadNetworkDhcpServerUpdate + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new WorkloadNetworkDhcpServerUpdate(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new WorkloadNetworkDhcpServerUpdate(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal WorkloadNetworkDhcpServerUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ServerAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdateInternal)this).ServerAddress = (string) content.GetValueForProperty("ServerAddress",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdateInternal)this).ServerAddress, global::System.Convert.ToString); + } + if (content.Contains("LeaseTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdateInternal)this).LeaseTime = (int?) content.GetValueForProperty("LeaseTime",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdateInternal)this).LeaseTime, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DhcpType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DhcpType = (string) content.GetValueForProperty("DhcpType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DhcpType, global::System.Convert.ToString); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal WorkloadNetworkDhcpServerUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ServerAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdateInternal)this).ServerAddress = (string) content.GetValueForProperty("ServerAddress",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdateInternal)this).ServerAddress, global::System.Convert.ToString); + } + if (content.Contains("LeaseTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdateInternal)this).LeaseTime = (int?) content.GetValueForProperty("LeaseTime",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdateInternal)this).LeaseTime, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DhcpType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DhcpType = (string) content.GetValueForProperty("DhcpType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DhcpType, global::System.Convert.ToString); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + AfterDeserializePSObject(content); + } + } + /// NSX DHCP Server + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDhcpServerUpdateTypeConverter))] + public partial interface IWorkloadNetworkDhcpServerUpdate + + { + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServerUpdate.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServerUpdate.TypeConverter.cs new file mode 100644 index 000000000000..27d2b0270fd9 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServerUpdate.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WorkloadNetworkDhcpServerUpdateTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdate ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdate).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WorkloadNetworkDhcpServerUpdate.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WorkloadNetworkDhcpServerUpdate.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WorkloadNetworkDhcpServerUpdate.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServerUpdate.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServerUpdate.cs new file mode 100644 index 000000000000..4857cbb86add --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServerUpdate.cs @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// NSX DHCP Server + public partial class WorkloadNetworkDhcpServerUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdate, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdateInternal, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate __workloadNetworkDhcpEntityUpdate = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpEntityUpdate(); + + /// Type of DHCP: SERVER or RELAY. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Constant] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string DhcpType { get => "SERVER"; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)__workloadNetworkDhcpEntityUpdate).DhcpType = "SERVER"; } + + /// Display name of the DHCP entity. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)__workloadNetworkDhcpEntityUpdate).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)__workloadNetworkDhcpEntityUpdate).DisplayName = value ?? null; } + + /// Backing field for property. + private int? _leaseTime; + + /// DHCP Server Lease Time. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public int? LeaseTime { get => this._leaseTime; set => this._leaseTime = value; } + + /// NSX revision number. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public long? Revision { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)__workloadNetworkDhcpEntityUpdate).Revision; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)__workloadNetworkDhcpEntityUpdate).Revision = value ?? default(long); } + + /// Backing field for property. + private string _serverAddress; + + /// DHCP Server Address. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string ServerAddress { get => this._serverAddress; set => this._serverAddress = value; } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__workloadNetworkDhcpEntityUpdate), __workloadNetworkDhcpEntityUpdate); + await eventListener.AssertObjectIsValid(nameof(__workloadNetworkDhcpEntityUpdate), __workloadNetworkDhcpEntityUpdate); + } + + /// Creates an new instance. + public WorkloadNetworkDhcpServerUpdate() + { + this.__workloadNetworkDhcpEntityUpdate.DhcpType = "SERVER"; + } + } + /// NSX DHCP Server + public partial interface IWorkloadNetworkDhcpServerUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate + { + /// DHCP Server Lease Time. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"DHCP Server Lease Time.", + SerializedName = @"leaseTime", + PossibleTypes = new [] { typeof(int) })] + int? LeaseTime { get; set; } + /// DHCP Server Address. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"DHCP Server Address.", + SerializedName = @"serverAddress", + PossibleTypes = new [] { typeof(string) })] + string ServerAddress { get; set; } + + } + /// NSX DHCP Server + internal partial interface IWorkloadNetworkDhcpServerUpdateInternal : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal + { + /// DHCP Server Lease Time. + int? LeaseTime { get; set; } + /// DHCP Server Address. + string ServerAddress { get; set; } + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServerUpdate.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServerUpdate.json.cs new file mode 100644 index 000000000000..f9a625b6286f --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpServerUpdate.json.cs @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// NSX DHCP Server + public partial class WorkloadNetworkDhcpServerUpdate + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdate. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdate. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpServerUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkDhcpServerUpdate(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __workloadNetworkDhcpEntityUpdate?.ToJson(container, serializationMode); + AddIf( null != (((object)this._serverAddress)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._serverAddress.ToString()) : null, "serverAddress" ,container.Add ); + AddIf( null != this._leaseTime ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber((int)this._leaseTime) : null, "leaseTime" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. + internal WorkloadNetworkDhcpServerUpdate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __workloadNetworkDhcpEntityUpdate = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpEntityUpdate(json); + {_serverAddress = If( json?.PropertyT("serverAddress"), out var __jsonServerAddress) ? (string)__jsonServerAddress : (string)_serverAddress;} + {_leaseTime = If( json?.PropertyT("leaseTime"), out var __jsonLeaseTime) ? (int?)__jsonLeaseTime : _leaseTime;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/MetricDimension.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpUpdate.PowerShell.cs similarity index 64% rename from src/VMware/VMware.Autorest/generated/api/Models/MetricDimension.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpUpdate.PowerShell.cs index 1d51654fd9ac..8a0eb3a3e1af 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/MetricDimension.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpUpdate.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// Specifications of the Dimension of metrics - [System.ComponentModel.TypeConverter(typeof(MetricDimensionTypeConverter))] - public partial class MetricDimension + /// NSX DHCP update + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDhcpUpdateTypeConverter))] + public partial class WorkloadNetworkDhcpUpdate { /// @@ -63,44 +63,61 @@ public partial class MetricDimension partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimension DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new MetricDimension(content); + return new WorkloadNetworkDhcpUpdate(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimension DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new MetricDimension(content); + return new WorkloadNetworkDhcpUpdate(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimension FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal MetricDimension(global::System.Collections.IDictionary content) + internal WorkloadNetworkDhcpUpdate(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -109,31 +126,31 @@ internal MetricDimension(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("Name")) + if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpEntityUpdateTypeConverter.ConvertFrom); } - if (content.Contains("DisplayName")) + if (content.Contains("DhcpType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal)this).DhcpType = (string) content.GetValueForProperty("DhcpType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal)this).DhcpType, global::System.Convert.ToString); } - if (content.Contains("InternalName")) + if (content.Contains("DisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal)this).InternalName = (string) content.GetValueForProperty("InternalName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal)this).InternalName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal)this).DisplayName, global::System.Convert.ToString); } - if (content.Contains("ToBeExportedForShoebox")) + if (content.Contains("Revision")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal)this).ToBeExportedForShoebox = (bool?) content.GetValueForProperty("ToBeExportedForShoebox",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal)this).ToBeExportedForShoebox, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal MetricDimension(global::System.Management.Automation.PSObject content) + internal WorkloadNetworkDhcpUpdate(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -142,45 +159,28 @@ internal MetricDimension(global::System.Management.Automation.PSObject content) return; } // actually deserialize - if (content.Contains("Name")) + if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpEntityUpdateTypeConverter.ConvertFrom); } - if (content.Contains("DisplayName")) + if (content.Contains("DhcpType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal)this).DhcpType = (string) content.GetValueForProperty("DhcpType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal)this).DhcpType, global::System.Convert.ToString); } - if (content.Contains("InternalName")) + if (content.Contains("DisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal)this).InternalName = (string) content.GetValueForProperty("InternalName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal)this).InternalName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal)this).DisplayName, global::System.Convert.ToString); } - if (content.Contains("ToBeExportedForShoebox")) + if (content.Contains("Revision")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal)this).ToBeExportedForShoebox = (bool?) content.GetValueForProperty("ToBeExportedForShoebox",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IMetricDimensionInternal)this).ToBeExportedForShoebox, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } AfterDeserializePSObject(content); } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); - - public override string ToString() - { - var returnNow = false; - var result = global::System.String.Empty; - OverrideToString(ref result, ref returnNow); - if (returnNow) - { - return result; - } - return ToJsonString(); - } } - /// Specifications of the Dimension of metrics - [System.ComponentModel.TypeConverter(typeof(MetricDimensionTypeConverter))] - public partial interface IMetricDimension + /// NSX DHCP update + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDhcpUpdateTypeConverter))] + public partial interface IWorkloadNetworkDhcpUpdate { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpUpdate.TypeConverter.cs similarity index 85% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpUpdate.TypeConverter.cs index 889f33f6663e..fc7d0f4e0357 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpUpdate.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class WorkloadNetworkDhcpListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class WorkloadNetworkDhcpUpdateTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class WorkloadNetworkDhcpListTypeConverter : global::System.Manag public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate).IsAssignableFrom(type)) { return sourceValue; } try { - return WorkloadNetworkDhcpList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return WorkloadNetworkDhcpUpdate.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkD } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return WorkloadNetworkDhcpList.DeserializeFromPSObject(sourceValue); + return WorkloadNetworkDhcpUpdate.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return WorkloadNetworkDhcpList.DeserializeFromDictionary(sourceValue); + return WorkloadNetworkDhcpUpdate.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpUpdate.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpUpdate.cs new file mode 100644 index 000000000000..6ccd3e040165 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpUpdate.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// NSX DHCP update + public partial class WorkloadNetworkDhcpUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal + { + + /// Type of DHCP: SERVER or RELAY. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string DhcpType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)Property).DhcpType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)Property).DhcpType = value ?? null; } + + /// Display name of the DHCP entity. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)Property).DisplayName = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpEntityUpdate()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate _property; + + /// The updatable properties of a DHCP update + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpEntityUpdate()); set => this._property = value; } + + /// NSX revision number. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public long? Revision { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)Property).Revision; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdateInternal)Property).Revision = value ?? default(long); } + + /// Creates an new instance. + public WorkloadNetworkDhcpUpdate() + { + + } + } + /// NSX DHCP update + public partial interface IWorkloadNetworkDhcpUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable + { + /// Type of DHCP: SERVER or RELAY. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Type of DHCP: SERVER or RELAY.", + SerializedName = @"dhcpType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SERVER", "RELAY")] + string DhcpType { get; set; } + /// Display name of the DHCP entity. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Display name of the DHCP entity.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// NSX revision number. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"NSX revision number.", + SerializedName = @"revision", + PossibleTypes = new [] { typeof(long) })] + long? Revision { get; set; } + + } + /// NSX DHCP update + internal partial interface IWorkloadNetworkDhcpUpdateInternal + + { + /// Type of DHCP: SERVER or RELAY. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SERVER", "RELAY")] + string DhcpType { get; set; } + /// Display name of the DHCP entity. + string DisplayName { get; set; } + /// The updatable properties of a DHCP update + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpEntityUpdate Property { get; set; } + /// NSX revision number. + long? Revision { get; set; } + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpUpdate.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpUpdate.json.cs new file mode 100644 index 000000000000..21c9782d1abc --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDhcpUpdate.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// NSX DHCP update + public partial class WorkloadNetworkDhcpUpdate + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkDhcpUpdate(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. + internal WorkloadNetworkDhcpUpdate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpEntityUpdate.FromJson(__jsonProperties) : _property;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsService.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsService.PowerShell.cs index b816173b2c1c..0bd88b6c927f 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsService.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsService.PowerShell.cs @@ -130,6 +130,34 @@ internal WorkloadNetworkDnsService(global::System.Collections.IDictionary conten { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServicePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -195,6 +223,34 @@ internal WorkloadNetworkDnsService(global::System.Management.Automation.PSObject { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServicePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsService.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsService.cs index 903433799125..9773a6764ee2 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsService.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsService.cs @@ -34,7 +34,9 @@ public partial class WorkloadNetworkDnsService : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public System.Collections.Generic.List FqdnZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).FqdnZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).FqdnZone = value ?? null /* arrayOf */; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } @@ -48,6 +50,9 @@ public partial class WorkloadNetworkDnsService : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } @@ -60,14 +65,14 @@ public partial class WorkloadNetworkDnsService : /// Internal Acessors for Status string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).Status = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceProperties _property; - /// DNS Service properties + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServiceProperties()); set => this._property = value; } @@ -87,7 +92,39 @@ public partial class WorkloadNetworkDnsService : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).Status; } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } @@ -120,7 +157,7 @@ public partial interface IWorkloadNetworkDnsService : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Default DNS zone of the DNS Service.", SerializedName = @"defaultDnsZone", PossibleTypes = new [] { typeof(string) })] @@ -131,7 +168,7 @@ public partial interface IWorkloadNetworkDnsService : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Display name of the DNS Service.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] @@ -142,7 +179,7 @@ public partial interface IWorkloadNetworkDnsService : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"DNS service IP of the DNS Service.", SerializedName = @"dnsServiceIp", PossibleTypes = new [] { typeof(string) })] @@ -153,7 +190,7 @@ public partial interface IWorkloadNetworkDnsService : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"FQDN zones of the DNS Service.", SerializedName = @"fqdnZones", PossibleTypes = new [] { typeof(string) })] @@ -164,7 +201,7 @@ public partial interface IWorkloadNetworkDnsService : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"DNS Service log level.", SerializedName = @"logLevel", PossibleTypes = new [] { typeof(string) })] @@ -180,7 +217,7 @@ public partial interface IWorkloadNetworkDnsService : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// NSX revision number. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -188,7 +225,7 @@ public partial interface IWorkloadNetworkDnsService : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"NSX revision number.", SerializedName = @"revision", PossibleTypes = new [] { typeof(long) })] @@ -222,10 +259,10 @@ internal partial interface IWorkloadNetworkDnsServiceInternal : /// DNS Service log level. [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("DEBUG", "INFO", "WARNING", "ERROR", "FATAL")] string LogLevel { get; set; } - /// DNS Service properties + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceProperties Property { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// NSX revision number. long? Revision { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsService.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsService.json.cs index 88b50ed0237b..9aaaae84f78b 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsService.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsService.json.cs @@ -85,7 +85,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __proxyResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServicesList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceListResult.PowerShell.cs similarity index 70% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServicesList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceListResult.PowerShell.cs index 6bb3ebe674e5..76053d9d006b 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServicesList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A list of NSX DNS Services - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDnsServicesListTypeConverter))] - public partial class WorkloadNetworkDnsServicesList + /// The response of a WorkloadNetworkDnsService list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDnsServiceListResultTypeConverter))] + public partial class WorkloadNetworkDnsServiceListResult { /// @@ -63,37 +63,39 @@ public partial class WorkloadNetworkDnsServicesList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new WorkloadNetworkDnsServicesList(content); + return new WorkloadNetworkDnsServiceListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new WorkloadNetworkDnsServicesList(content); + return new WorkloadNetworkDnsServiceListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -113,11 +115,11 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal WorkloadNetworkDnsServicesList(global::System.Collections.IDictionary content) + internal WorkloadNetworkDnsServiceListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -128,21 +130,21 @@ internal WorkloadNetworkDnsServicesList(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServiceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServiceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal WorkloadNetworkDnsServicesList(global::System.Management.Automation.PSObject content) + internal WorkloadNetworkDnsServiceListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -153,18 +155,18 @@ internal WorkloadNetworkDnsServicesList(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServiceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServiceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } } - /// A list of NSX DNS Services - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDnsServicesListTypeConverter))] - public partial interface IWorkloadNetworkDnsServicesList + /// The response of a WorkloadNetworkDnsService list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDnsServiceListResultTypeConverter))] + public partial interface IWorkloadNetworkDnsServiceListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceListResult.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceListResult.TypeConverter.cs new file mode 100644 index 000000000000..885248d109d6 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceListResult.TypeConverter.cs @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WorkloadNetworkDnsServiceListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WorkloadNetworkDnsServiceListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WorkloadNetworkDnsServiceListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WorkloadNetworkDnsServiceListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServicesList.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceListResult.cs similarity index 55% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServicesList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceListResult.cs index a0a7fd70773a..432bfb69876f 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServicesList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX DNS Services - public partial class WorkloadNetworkDnsServicesList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesListInternal + /// The response of a WorkloadNetworkDnsService list operation. + public partial class WorkloadNetworkDnsServiceListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on the page + /// The WorkloadNetworkDnsService items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public WorkloadNetworkDnsServicesList() + /// Creates an new instance. + public WorkloadNetworkDnsServiceListResult() { } } - /// A list of NSX DNS Services - public partial interface IWorkloadNetworkDnsServicesList : + /// The response of a WorkloadNetworkDnsService list operation. + public partial interface IWorkloadNetworkDnsServiceListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on the page + string NextLink { get; set; } + /// The WorkloadNetworkDnsService items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on the page", + Create = true, + Update = true, + Description = @"The WorkloadNetworkDnsService items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A list of NSX DNS Services - internal partial interface IWorkloadNetworkDnsServicesListInternal + /// The response of a WorkloadNetworkDnsService list operation. + internal partial interface IWorkloadNetworkDnsServiceListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on the page + /// The WorkloadNetworkDnsService items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServicesList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceListResult.json.cs similarity index 81% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServicesList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceListResult.json.cs index 1cc00a69e3cc..07102ce32306 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServicesList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX DNS Services - public partial class WorkloadNetworkDnsServicesList + /// The response of a WorkloadNetworkDnsService list operation. + public partial class WorkloadNetworkDnsServiceListResult { /// @@ -54,25 +54,26 @@ public partial class WorkloadNetworkDnsServicesList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkDnsServicesList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkDnsServiceListResult(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -84,31 +85,25 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal WorkloadNetworkDnsServicesList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal WorkloadNetworkDnsServiceListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceProperties.cs index bbc46b3a55a1..e4c52a620c08 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceProperties.cs @@ -151,7 +151,7 @@ public partial interface IWorkloadNetworkDnsServiceProperties : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// NSX revision number. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -194,7 +194,7 @@ internal partial interface IWorkloadNetworkDnsServicePropertiesInternal [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("DEBUG", "INFO", "WARNING", "ERROR", "FATAL")] string LogLevel { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// NSX revision number. long? Revision { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceUpdate.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceUpdate.PowerShell.cs new file mode 100644 index 000000000000..34622d28f676 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceUpdate.PowerShell.cs @@ -0,0 +1,228 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// NSX DNS Service update + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDnsServiceUpdateTypeConverter))] + public partial class WorkloadNetworkDnsServiceUpdate + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new WorkloadNetworkDnsServiceUpdate(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new WorkloadNetworkDnsServiceUpdate(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal WorkloadNetworkDnsServiceUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServicePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("DnsServiceIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).DnsServiceIP = (string) content.GetValueForProperty("DnsServiceIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).DnsServiceIP, global::System.Convert.ToString); + } + if (content.Contains("DefaultDnsZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).DefaultDnsZone = (string) content.GetValueForProperty("DefaultDnsZone",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).DefaultDnsZone, global::System.Convert.ToString); + } + if (content.Contains("FqdnZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).FqdnZone = (System.Collections.Generic.List) content.GetValueForProperty("FqdnZone",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).FqdnZone, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("LogLevel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).LogLevel = (string) content.GetValueForProperty("LogLevel",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).LogLevel, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).Status, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal WorkloadNetworkDnsServiceUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServicePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("DnsServiceIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).DnsServiceIP = (string) content.GetValueForProperty("DnsServiceIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).DnsServiceIP, global::System.Convert.ToString); + } + if (content.Contains("DefaultDnsZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).DefaultDnsZone = (string) content.GetValueForProperty("DefaultDnsZone",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).DefaultDnsZone, global::System.Convert.ToString); + } + if (content.Contains("FqdnZone")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).FqdnZone = (System.Collections.Generic.List) content.GetValueForProperty("FqdnZone",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).FqdnZone, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("LogLevel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).LogLevel = (string) content.GetValueForProperty("LogLevel",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).LogLevel, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).Status, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + AfterDeserializePSObject(content); + } + } + /// NSX DNS Service update + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDnsServiceUpdateTypeConverter))] + public partial interface IWorkloadNetworkDnsServiceUpdate + + { + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceUpdate.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceUpdate.TypeConverter.cs new file mode 100644 index 000000000000..60b46ca7851d --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceUpdate.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WorkloadNetworkDnsServiceUpdateTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WorkloadNetworkDnsServiceUpdate.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WorkloadNetworkDnsServiceUpdate.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WorkloadNetworkDnsServiceUpdate.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceUpdate.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceUpdate.cs new file mode 100644 index 000000000000..dbc2b8c7bc25 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceUpdate.cs @@ -0,0 +1,194 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// NSX DNS Service update + public partial class WorkloadNetworkDnsServiceUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal + { + + /// Default DNS zone of the DNS Service. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string DefaultDnsZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).DefaultDnsZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).DefaultDnsZone = value ?? null; } + + /// Display name of the DNS Service. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).DisplayName = value ?? null; } + + /// DNS service IP of the DNS Service. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string DnsServiceIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).DnsServiceIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).DnsServiceIP = value ?? null; } + + /// FQDN zones of the DNS Service. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public System.Collections.Generic.List FqdnZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).FqdnZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).FqdnZone = value ?? null /* arrayOf */; } + + /// DNS Service log level. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string LogLevel { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).LogLevel; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).LogLevel = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServiceProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Status + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdateInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).Status = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceProperties _property; + + /// The updatable properties of a DNS Service update + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServiceProperties()); set => this._property = value; } + + /// The provisioning state + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).ProvisioningState; } + + /// NSX revision number. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public long? Revision { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).Revision; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).Revision = value ?? default(long); } + + /// DNS Service status. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicePropertiesInternal)Property).Status; } + + /// Creates an new instance. + public WorkloadNetworkDnsServiceUpdate() + { + + } + } + /// NSX DNS Service update + public partial interface IWorkloadNetworkDnsServiceUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable + { + /// Default DNS zone of the DNS Service. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Default DNS zone of the DNS Service.", + SerializedName = @"defaultDnsZone", + PossibleTypes = new [] { typeof(string) })] + string DefaultDnsZone { get; set; } + /// Display name of the DNS Service. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Display name of the DNS Service.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// DNS service IP of the DNS Service. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"DNS service IP of the DNS Service.", + SerializedName = @"dnsServiceIp", + PossibleTypes = new [] { typeof(string) })] + string DnsServiceIP { get; set; } + /// FQDN zones of the DNS Service. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"FQDN zones of the DNS Service.", + SerializedName = @"fqdnZones", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List FqdnZone { get; set; } + /// DNS Service log level. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"DNS Service log level.", + SerializedName = @"logLevel", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("DEBUG", "INFO", "WARNING", "ERROR", "FATAL")] + string LogLevel { get; set; } + /// The provisioning state + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; } + /// NSX revision number. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"NSX revision number.", + SerializedName = @"revision", + PossibleTypes = new [] { typeof(long) })] + long? Revision { get; set; } + /// DNS Service status. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"DNS Service status.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SUCCESS", "FAILURE")] + string Status { get; } + + } + /// NSX DNS Service update + internal partial interface IWorkloadNetworkDnsServiceUpdateInternal + + { + /// Default DNS zone of the DNS Service. + string DefaultDnsZone { get; set; } + /// Display name of the DNS Service. + string DisplayName { get; set; } + /// DNS service IP of the DNS Service. + string DnsServiceIP { get; set; } + /// FQDN zones of the DNS Service. + System.Collections.Generic.List FqdnZone { get; set; } + /// DNS Service log level. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("DEBUG", "INFO", "WARNING", "ERROR", "FATAL")] + string LogLevel { get; set; } + /// The updatable properties of a DNS Service update + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceProperties Property { get; set; } + /// The provisioning state + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; set; } + /// NSX revision number. + long? Revision { get; set; } + /// DNS Service status. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SUCCESS", "FAILURE")] + string Status { get; set; } + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceUpdate.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceUpdate.json.cs new file mode 100644 index 000000000000..1d071ee8f627 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsServiceUpdate.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// NSX DNS Service update + public partial class WorkloadNetworkDnsServiceUpdate + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkDnsServiceUpdate(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. + internal WorkloadNetworkDnsServiceUpdate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServiceProperties.FromJson(__jsonProperties) : _property;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZone.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZone.PowerShell.cs index c797fcc18baf..dd15565c91d0 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZone.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZone.PowerShell.cs @@ -130,6 +130,34 @@ internal WorkloadNetworkDnsZone(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZonePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -160,7 +188,7 @@ internal WorkloadNetworkDnsZone(global::System.Collections.IDictionary content) } if (content.Contains("DnsService")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneInternal)this).DnsService = (long?) content.GetValueForProperty("DnsService",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneInternal)this).DnsService, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneInternal)this).DnsService = (int?) content.GetValueForProperty("DnsService",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneInternal)this).DnsService, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ProvisioningState")) { @@ -191,6 +219,34 @@ internal WorkloadNetworkDnsZone(global::System.Management.Automation.PSObject co { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZonePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -221,7 +277,7 @@ internal WorkloadNetworkDnsZone(global::System.Management.Automation.PSObject co } if (content.Contains("DnsService")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneInternal)this).DnsService = (long?) content.GetValueForProperty("DnsService",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneInternal)this).DnsService, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneInternal)this).DnsService = (int?) content.GetValueForProperty("DnsService",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneInternal)this).DnsService, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ProvisioningState")) { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZone.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZone.cs index f733f6d0fa1a..c1ebd5c40ff6 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZone.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZone.cs @@ -28,13 +28,15 @@ public partial class WorkloadNetworkDnsZone : /// Number of DNS Services using the DNS zone. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public long? DnsService { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).DnsService; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).DnsService = value ?? default(long); } + public int? DnsService { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).DnsService; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).DnsService = value ?? default(int); } /// Domain names of the DNS Zone. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public System.Collections.Generic.List Domain { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).Domain; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).Domain = value ?? null /* arrayOf */; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } @@ -44,6 +46,9 @@ public partial class WorkloadNetworkDnsZone : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } @@ -53,14 +58,14 @@ public partial class WorkloadNetworkDnsZone : /// Internal Acessors for ProvisioningState string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).ProvisioningState = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneProperties _property; - /// DNS Zone properties + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZoneProperties()); set => this._property = value; } @@ -80,7 +85,39 @@ public partial class WorkloadNetworkDnsZone : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string SourceIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).SourceIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).SourceIP = value ?? null; } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } @@ -113,7 +150,7 @@ public partial interface IWorkloadNetworkDnsZone : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Display name of the DNS Zone.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] @@ -124,7 +161,7 @@ public partial interface IWorkloadNetworkDnsZone : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"DNS Server IP array of the DNS Zone.", SerializedName = @"dnsServerIps", PossibleTypes = new [] { typeof(string) })] @@ -135,18 +172,18 @@ public partial interface IWorkloadNetworkDnsZone : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Number of DNS Services using the DNS zone.", SerializedName = @"dnsServices", - PossibleTypes = new [] { typeof(long) })] - long? DnsService { get; set; } + PossibleTypes = new [] { typeof(int) })] + int? DnsService { get; set; } /// Domain names of the DNS Zone. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Domain names of the DNS Zone.", SerializedName = @"domain", PossibleTypes = new [] { typeof(string) })] @@ -161,7 +198,7 @@ public partial interface IWorkloadNetworkDnsZone : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// NSX revision number. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -169,7 +206,7 @@ public partial interface IWorkloadNetworkDnsZone : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"NSX revision number.", SerializedName = @"revision", PossibleTypes = new [] { typeof(long) })] @@ -180,7 +217,7 @@ public partial interface IWorkloadNetworkDnsZone : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Source IP of the DNS Zone.", SerializedName = @"sourceIp", PossibleTypes = new [] { typeof(string) })] @@ -196,13 +233,13 @@ internal partial interface IWorkloadNetworkDnsZoneInternal : /// DNS Server IP array of the DNS Zone. System.Collections.Generic.List DnsServerIP { get; set; } /// Number of DNS Services using the DNS zone. - long? DnsService { get; set; } + int? DnsService { get; set; } /// Domain names of the DNS Zone. System.Collections.Generic.List Domain { get; set; } - /// DNS Zone properties + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneProperties Property { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// NSX revision number. long? Revision { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZone.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZone.json.cs index 6ff5e9801781..96af93f0d590 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZone.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZone.json.cs @@ -85,7 +85,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __proxyResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneListResult.PowerShell.cs similarity index 74% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneListResult.PowerShell.cs index 888a8ad117d3..a1c31e643b43 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A list of NSX Port Mirroring - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkPortMirroringListTypeConverter))] - public partial class WorkloadNetworkPortMirroringList + /// The response of a WorkloadNetworkDnsZone list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDnsZoneListResultTypeConverter))] + public partial class WorkloadNetworkDnsZoneListResult { /// @@ -63,37 +63,37 @@ public partial class WorkloadNetworkPortMirroringList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new WorkloadNetworkPortMirroringList(content); + return new WorkloadNetworkDnsZoneListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new WorkloadNetworkPortMirroringList(content); + return new WorkloadNetworkDnsZoneListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -113,11 +113,11 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal WorkloadNetworkPortMirroringList(global::System.Collections.IDictionary content) + internal WorkloadNetworkDnsZoneListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -128,21 +128,21 @@ internal WorkloadNetworkPortMirroringList(global::System.Collections.IDictionary // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZoneTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal WorkloadNetworkPortMirroringList(global::System.Management.Automation.PSObject content) + internal WorkloadNetworkDnsZoneListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -153,18 +153,18 @@ internal WorkloadNetworkPortMirroringList(global::System.Management.Automation.P // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZoneTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } } - /// A list of NSX Port Mirroring - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkPortMirroringListTypeConverter))] - public partial interface IWorkloadNetworkPortMirroringList + /// The response of a WorkloadNetworkDnsZone list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDnsZoneListResultTypeConverter))] + public partial interface IWorkloadNetworkDnsZoneListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneListResult.TypeConverter.cs similarity index 87% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneListResult.TypeConverter.cs index e75181f7f50f..6183f084bb0b 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneListResult.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class WorkloadNetworkPortMirroringListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class WorkloadNetworkDnsZoneListResultTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class WorkloadNetworkPortMirroringListTypeConverter : global::Sys public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,32 +95,32 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResult).IsAssignableFrom(type)) { return sourceValue; } try { - return WorkloadNetworkPortMirroringList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return WorkloadNetworkDnsZoneListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -128,11 +128,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkP } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return WorkloadNetworkPortMirroringList.DeserializeFromPSObject(sourceValue); + return WorkloadNetworkDnsZoneListResult.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return WorkloadNetworkPortMirroringList.DeserializeFromDictionary(sourceValue); + return WorkloadNetworkDnsZoneListResult.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZonesList.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneListResult.cs similarity index 54% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZonesList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneListResult.cs index 8c29c2f10a5f..5af3be80eb95 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZonesList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX DNS Zones - public partial class WorkloadNetworkDnsZonesList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesListInternal + /// The response of a WorkloadNetworkDnsZone list operation. + public partial class WorkloadNetworkDnsZoneListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on the page + /// The WorkloadNetworkDnsZone items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public WorkloadNetworkDnsZonesList() + /// Creates an new instance. + public WorkloadNetworkDnsZoneListResult() { } } - /// A list of NSX DNS Zones - public partial interface IWorkloadNetworkDnsZonesList : + /// The response of a WorkloadNetworkDnsZone list operation. + public partial interface IWorkloadNetworkDnsZoneListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on the page + string NextLink { get; set; } + /// The WorkloadNetworkDnsZone items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on the page", + Create = true, + Update = true, + Description = @"The WorkloadNetworkDnsZone items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A list of NSX DNS Zones - internal partial interface IWorkloadNetworkDnsZonesListInternal + /// The response of a WorkloadNetworkDnsZone list operation. + internal partial interface IWorkloadNetworkDnsZoneListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on the page + /// The WorkloadNetworkDnsZone items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZonesList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneListResult.json.cs similarity index 80% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZonesList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneListResult.json.cs index 8c14ddbe71da..06c035a45a6f 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZonesList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX DNS Zones - public partial class WorkloadNetworkDnsZonesList + /// The response of a WorkloadNetworkDnsZone list operation. + public partial class WorkloadNetworkDnsZoneListResult { /// @@ -54,25 +54,25 @@ public partial class WorkloadNetworkDnsZonesList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkDnsZonesList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkDnsZoneListResult(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -84,31 +84,25 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal WorkloadNetworkDnsZonesList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal WorkloadNetworkDnsZoneListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneProperties.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneProperties.PowerShell.cs index 3ca7c31a6b79..03aa221510fe 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneProperties.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneProperties.PowerShell.cs @@ -144,7 +144,7 @@ internal WorkloadNetworkDnsZoneProperties(global::System.Collections.IDictionary } if (content.Contains("DnsService")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)this).DnsService = (long?) content.GetValueForProperty("DnsService",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)this).DnsService, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)this).DnsService = (int?) content.GetValueForProperty("DnsService",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)this).DnsService, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ProvisioningState")) { @@ -189,7 +189,7 @@ internal WorkloadNetworkDnsZoneProperties(global::System.Management.Automation.P } if (content.Contains("DnsService")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)this).DnsService = (long?) content.GetValueForProperty("DnsService",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)this).DnsService, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)this).DnsService = (int?) content.GetValueForProperty("DnsService",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)this).DnsService, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ProvisioningState")) { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneProperties.cs index dffe82e922c6..033f237f60ab 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneProperties.cs @@ -28,11 +28,11 @@ public partial class WorkloadNetworkDnsZoneProperties : public System.Collections.Generic.List DnsServerIP { get => this._dnsServerIP; set => this._dnsServerIP = value; } /// Backing field for property. - private long? _dnsService; + private int? _dnsService; /// Number of DNS Services using the DNS zone. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public long? DnsService { get => this._dnsService; set => this._dnsService = value; } + public int? DnsService { get => this._dnsService; set => this._dnsService = value; } /// Backing field for property. private System.Collections.Generic.List _domain; @@ -106,8 +106,8 @@ public partial interface IWorkloadNetworkDnsZoneProperties : Update = true, Description = @"Number of DNS Services using the DNS zone.", SerializedName = @"dnsServices", - PossibleTypes = new [] { typeof(long) })] - long? DnsService { get; set; } + PossibleTypes = new [] { typeof(int) })] + int? DnsService { get; set; } /// Domain names of the DNS Zone. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -129,7 +129,7 @@ public partial interface IWorkloadNetworkDnsZoneProperties : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// NSX revision number. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -164,11 +164,11 @@ internal partial interface IWorkloadNetworkDnsZonePropertiesInternal /// DNS Server IP array of the DNS Zone. System.Collections.Generic.List DnsServerIP { get; set; } /// Number of DNS Services using the DNS zone. - long? DnsService { get; set; } + int? DnsService { get; set; } /// Domain names of the DNS Zone. System.Collections.Generic.List Domain { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// NSX revision number. long? Revision { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneProperties.json.cs index e4f09004ddce..361c0b81ed82 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneProperties.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneProperties.json.cs @@ -104,7 +104,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi container.Add("dnsServerIps",__r); } AddIf( null != (((object)this._sourceIP)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._sourceIP.ToString()) : null, "sourceIp" ,container.Add ); - AddIf( null != this._dnsService ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber((long)this._dnsService) : null, "dnsServices" ,container.Add ); + AddIf( null != this._dnsService ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNumber((int)this._dnsService) : null, "dnsServices" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); @@ -130,7 +130,7 @@ internal WorkloadNetworkDnsZoneProperties(Microsoft.Azure.PowerShell.Cmdlets.VMw {_domain = If( json?.PropertyT("domain"), out var __jsonDomain) ? If( __jsonDomain as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _domain;} {_dnsServerIP = If( json?.PropertyT("dnsServerIps"), out var __jsonDnsServerIps) ? If( __jsonDnsServerIps as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : _dnsServerIP;} {_sourceIP = If( json?.PropertyT("sourceIp"), out var __jsonSourceIP) ? (string)__jsonSourceIP : (string)_sourceIP;} - {_dnsService = If( json?.PropertyT("dnsServices"), out var __jsonDnsServices) ? (long?)__jsonDnsServices : _dnsService;} + {_dnsService = If( json?.PropertyT("dnsServices"), out var __jsonDnsServices) ? (int?)__jsonDnsServices : _dnsService;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} {_revision = If( json?.PropertyT("revision"), out var __jsonRevision) ? (long?)__jsonRevision : _revision;} AfterFromJson(json); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneUpdate.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneUpdate.PowerShell.cs new file mode 100644 index 000000000000..6c6821b2e269 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneUpdate.PowerShell.cs @@ -0,0 +1,220 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// NSX DNS Zone update + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDnsZoneUpdateTypeConverter))] + public partial class WorkloadNetworkDnsZoneUpdate + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new WorkloadNetworkDnsZoneUpdate(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new WorkloadNetworkDnsZoneUpdate(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal WorkloadNetworkDnsZoneUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZonePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).Domain = (System.Collections.Generic.List) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).Domain, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("DnsServerIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).DnsServerIP = (System.Collections.Generic.List) content.GetValueForProperty("DnsServerIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).DnsServerIP, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("SourceIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).SourceIP = (string) content.GetValueForProperty("SourceIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).SourceIP, global::System.Convert.ToString); + } + if (content.Contains("DnsService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).DnsService = (int?) content.GetValueForProperty("DnsService",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).DnsService, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal WorkloadNetworkDnsZoneUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZonePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).Domain = (System.Collections.Generic.List) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).Domain, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("DnsServerIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).DnsServerIP = (System.Collections.Generic.List) content.GetValueForProperty("DnsServerIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).DnsServerIP, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("SourceIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).SourceIP = (string) content.GetValueForProperty("SourceIP",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).SourceIP, global::System.Convert.ToString); + } + if (content.Contains("DnsService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).DnsService = (int?) content.GetValueForProperty("DnsService",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).DnsService, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + AfterDeserializePSObject(content); + } + } + /// NSX DNS Zone update + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDnsZoneUpdateTypeConverter))] + public partial interface IWorkloadNetworkDnsZoneUpdate + + { + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPsList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneUpdate.TypeConverter.cs similarity index 87% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPsList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneUpdate.TypeConverter.cs index 1752c9c8e5a6..4e24081ae237 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPsList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneUpdate.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class WorkloadNetworkPublicIPsListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class WorkloadNetworkDnsZoneUpdateTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class WorkloadNetworkPublicIPsListTypeConverter : global::System. public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate).IsAssignableFrom(type)) { return sourceValue; } try { - return WorkloadNetworkPublicIPsList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return WorkloadNetworkDnsZoneUpdate.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkP } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return WorkloadNetworkPublicIPsList.DeserializeFromPSObject(sourceValue); + return WorkloadNetworkDnsZoneUpdate.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return WorkloadNetworkPublicIPsList.DeserializeFromDictionary(sourceValue); + return WorkloadNetworkDnsZoneUpdate.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneUpdate.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneUpdate.cs new file mode 100644 index 000000000000..22ff6b96199b --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneUpdate.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// NSX DNS Zone update + public partial class WorkloadNetworkDnsZoneUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal + { + + /// Display name of the DNS Zone. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).DisplayName = value ?? null; } + + /// DNS Server IP array of the DNS Zone. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public System.Collections.Generic.List DnsServerIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).DnsServerIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).DnsServerIP = value ?? null /* arrayOf */; } + + /// Number of DNS Services using the DNS zone. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public int? DnsService { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).DnsService; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).DnsService = value ?? default(int); } + + /// Domain names of the DNS Zone. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public System.Collections.Generic.List Domain { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).Domain; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).Domain = value ?? null /* arrayOf */; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZoneProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).ProvisioningState = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneProperties _property; + + /// The updatable properties of a DNS Zone update + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZoneProperties()); set => this._property = value; } + + /// The provisioning state + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).ProvisioningState; } + + /// NSX revision number. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public long? Revision { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).Revision; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).Revision = value ?? default(long); } + + /// Source IP of the DNS Zone. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SourceIP { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).SourceIP; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonePropertiesInternal)Property).SourceIP = value ?? null; } + + /// Creates an new instance. + public WorkloadNetworkDnsZoneUpdate() + { + + } + } + /// NSX DNS Zone update + public partial interface IWorkloadNetworkDnsZoneUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable + { + /// Display name of the DNS Zone. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Display name of the DNS Zone.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// DNS Server IP array of the DNS Zone. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"DNS Server IP array of the DNS Zone.", + SerializedName = @"dnsServerIps", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List DnsServerIP { get; set; } + /// Number of DNS Services using the DNS zone. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Number of DNS Services using the DNS zone.", + SerializedName = @"dnsServices", + PossibleTypes = new [] { typeof(int) })] + int? DnsService { get; set; } + /// Domain names of the DNS Zone. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Domain names of the DNS Zone.", + SerializedName = @"domain", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List Domain { get; set; } + /// The provisioning state + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; } + /// NSX revision number. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"NSX revision number.", + SerializedName = @"revision", + PossibleTypes = new [] { typeof(long) })] + long? Revision { get; set; } + /// Source IP of the DNS Zone. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Source IP of the DNS Zone.", + SerializedName = @"sourceIp", + PossibleTypes = new [] { typeof(string) })] + string SourceIP { get; set; } + + } + /// NSX DNS Zone update + internal partial interface IWorkloadNetworkDnsZoneUpdateInternal + + { + /// Display name of the DNS Zone. + string DisplayName { get; set; } + /// DNS Server IP array of the DNS Zone. + System.Collections.Generic.List DnsServerIP { get; set; } + /// Number of DNS Services using the DNS zone. + int? DnsService { get; set; } + /// Domain names of the DNS Zone. + System.Collections.Generic.List Domain { get; set; } + /// The updatable properties of a DNS Zone update + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneProperties Property { get; set; } + /// The provisioning state + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; set; } + /// NSX revision number. + long? Revision { get; set; } + /// Source IP of the DNS Zone. + string SourceIP { get; set; } + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneUpdate.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneUpdate.json.cs new file mode 100644 index 000000000000..a98e2d2d659d --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZoneUpdate.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// NSX DNS Zone update + public partial class WorkloadNetworkDnsZoneUpdate + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkDnsZoneUpdate(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. + internal WorkloadNetworkDnsZoneUpdate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZoneProperties.FromJson(__jsonProperties) : _property;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGateway.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGateway.PowerShell.cs index 7edcc43929a9..549372e76847 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGateway.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGateway.PowerShell.cs @@ -130,6 +130,34 @@ internal WorkloadNetworkGateway(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGatewayPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -142,6 +170,10 @@ internal WorkloadNetworkGateway(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayInternal)this).DisplayName, global::System.Convert.ToString); @@ -171,6 +203,34 @@ internal WorkloadNetworkGateway(global::System.Management.Automation.PSObject co { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGatewayPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -183,6 +243,10 @@ internal WorkloadNetworkGateway(global::System.Management.Automation.PSObject co { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayInternal)this).DisplayName, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGateway.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGateway.cs index f14e5bfaad67..393e2133814e 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGateway.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGateway.cs @@ -22,7 +22,9 @@ public partial class WorkloadNetworkGateway : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayPropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayPropertiesInternal)Property).DisplayName = value ?? null; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } @@ -32,6 +34,9 @@ public partial class WorkloadNetworkGateway : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } @@ -41,7 +46,10 @@ public partial class WorkloadNetworkGateway : /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGatewayProperties()); set { {_property = value;} } } - /// Resource name. + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayPropertiesInternal)Property).ProvisioningState = value; } + + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } @@ -52,15 +60,51 @@ public partial class WorkloadNetworkGateway : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayProperties _property; - /// Gateway properties. + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGatewayProperties()); set => this._property = value; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayPropertiesInternal)Property).ProvisioningState; } + /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } @@ -93,7 +137,7 @@ public partial interface IWorkloadNetworkGateway : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Display name of the DHCP entity.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] @@ -109,6 +153,18 @@ public partial interface IWorkloadNetworkGateway : SerializedName = @"path", PossibleTypes = new [] { typeof(string) })] string Path { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; } } /// NSX Gateway. @@ -119,8 +175,11 @@ internal partial interface IWorkloadNetworkGatewayInternal : string DisplayName { get; set; } /// NSX Gateway Path. string Path { get; set; } - /// Gateway properties. + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayProperties Property { get; set; } + /// The provisioning state of the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; set; } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGateway.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGateway.json.cs index 9e9778ecbee4..058a138aa34f 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGateway.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGateway.json.cs @@ -85,7 +85,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __proxyResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayListResult.PowerShell.cs similarity index 71% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayListResult.PowerShell.cs index cf8d48434423..229b9657f08e 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A list of NSX Gateways - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkGatewayListTypeConverter))] - public partial class WorkloadNetworkGatewayList + /// The response of a WorkloadNetworkGateway list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkGatewayListResultTypeConverter))] + public partial class WorkloadNetworkGatewayListResult { /// @@ -63,37 +63,37 @@ public partial class WorkloadNetworkGatewayList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new WorkloadNetworkGatewayList(content); + return new WorkloadNetworkGatewayListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new WorkloadNetworkGatewayList(content); + return new WorkloadNetworkGatewayListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -113,11 +113,11 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal WorkloadNetworkGatewayList(global::System.Collections.IDictionary content) + internal WorkloadNetworkGatewayListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -128,21 +128,21 @@ internal WorkloadNetworkGatewayList(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGatewayTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGatewayTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal WorkloadNetworkGatewayList(global::System.Management.Automation.PSObject content) + internal WorkloadNetworkGatewayListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -153,18 +153,18 @@ internal WorkloadNetworkGatewayList(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGatewayTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGatewayTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } } - /// A list of NSX Gateways - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkGatewayListTypeConverter))] - public partial interface IWorkloadNetworkGatewayList + /// The response of a WorkloadNetworkGateway list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkGatewayListResultTypeConverter))] + public partial interface IWorkloadNetworkGatewayListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayListResult.TypeConverter.cs similarity index 85% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayListResult.TypeConverter.cs index e0e319fc4dd9..47bec3dc2b3a 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayListResult.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class WorkloadNetworkGatewayListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class WorkloadNetworkGatewayListResultTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class WorkloadNetworkGatewayListTypeConverter : global::System.Ma public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,32 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResult).IsAssignableFrom(type)) { return sourceValue; } try { - return WorkloadNetworkGatewayList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return WorkloadNetworkGatewayListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +128,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkG } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return WorkloadNetworkGatewayList.DeserializeFromPSObject(sourceValue); + return WorkloadNetworkGatewayListResult.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return WorkloadNetworkGatewayList.DeserializeFromDictionary(sourceValue); + return WorkloadNetworkGatewayListResult.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayList.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayListResult.cs similarity index 54% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayListResult.cs index f5c48b298fa0..c7d4eead0447 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX Gateways - public partial class WorkloadNetworkGatewayList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListInternal + /// The response of a WorkloadNetworkGateway list operation. + public partial class WorkloadNetworkGatewayListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on the page + /// The WorkloadNetworkGateway items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public WorkloadNetworkGatewayList() + /// Creates an new instance. + public WorkloadNetworkGatewayListResult() { } } - /// A list of NSX Gateways - public partial interface IWorkloadNetworkGatewayList : + /// The response of a WorkloadNetworkGateway list operation. + public partial interface IWorkloadNetworkGatewayListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on the page + string NextLink { get; set; } + /// The WorkloadNetworkGateway items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on the page", + Create = true, + Update = true, + Description = @"The WorkloadNetworkGateway items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGateway) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A list of NSX Gateways - internal partial interface IWorkloadNetworkGatewayListInternal + /// The response of a WorkloadNetworkGateway list operation. + internal partial interface IWorkloadNetworkGatewayListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on the page + /// The WorkloadNetworkGateway items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayListResult.json.cs similarity index 81% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayListResult.json.cs index 3b42aef0056b..6582db72dda7 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX Gateways - public partial class WorkloadNetworkGatewayList + /// The response of a WorkloadNetworkGateway list operation. + public partial class WorkloadNetworkGatewayListResult { /// @@ -54,25 +54,25 @@ public partial class WorkloadNetworkGatewayList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkGatewayList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkGatewayListResult(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -84,31 +84,25 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal WorkloadNetworkGatewayList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal WorkloadNetworkGatewayListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayProperties.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayProperties.PowerShell.cs index a5665a52a3f5..7bf26f04bc67 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayProperties.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayProperties.PowerShell.cs @@ -126,6 +126,10 @@ internal WorkloadNetworkGatewayProperties(global::System.Collections.IDictionary return; } // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayPropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayPropertiesInternal)this).DisplayName, global::System.Convert.ToString); @@ -151,6 +155,10 @@ internal WorkloadNetworkGatewayProperties(global::System.Management.Automation.P return; } // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayPropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayPropertiesInternal)this).DisplayName, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayProperties.cs index c500bae6bab6..61b53261dff1 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayProperties.cs @@ -23,6 +23,9 @@ public partial class WorkloadNetworkGatewayProperties : /// Internal Acessors for Path string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayPropertiesInternal.Path { get => this._path; set { {_path = value;} } } + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + /// Backing field for property. private string _path; @@ -30,6 +33,13 @@ public partial class WorkloadNetworkGatewayProperties : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string Path { get => this._path; } + /// Backing field for property. + private string _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + /// Creates an new instance. public WorkloadNetworkGatewayProperties() { @@ -62,6 +72,18 @@ public partial interface IWorkloadNetworkGatewayProperties : SerializedName = @"path", PossibleTypes = new [] { typeof(string) })] string Path { get; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; } } /// Properties of a NSX Gateway. @@ -72,6 +94,9 @@ internal partial interface IWorkloadNetworkGatewayPropertiesInternal string DisplayName { get; set; } /// NSX Gateway Path. string Path { get; set; } + /// The provisioning state of the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; set; } } } \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayProperties.json.cs index 306a320f0abc..b0564f190bdd 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayProperties.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkGatewayProperties.json.cs @@ -84,6 +84,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { @@ -105,6 +109,7 @@ internal WorkloadNetworkGatewayProperties(Microsoft.Azure.PowerShell.Cmdlets.VMw { return; } + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)_displayName;} {_path = If( json?.PropertyT("path"), out var __jsonPath) ? (string)__jsonPath : (string)_path;} AfterFromJson(json); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkListResult.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkListResult.PowerShell.cs new file mode 100644 index 000000000000..e4fc14a298e8 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkListResult.PowerShell.cs @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// The response of a WorkloadNetwork list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkListResultTypeConverter))] + public partial class WorkloadNetworkListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new WorkloadNetworkListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new WorkloadNetworkListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal WorkloadNetworkListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal WorkloadNetworkListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// The response of a WorkloadNetwork list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkListResultTypeConverter))] + public partial interface IWorkloadNetworkListResult + + { + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkListResult.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkListResult.TypeConverter.cs new file mode 100644 index 000000000000..448973b51c73 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkListResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WorkloadNetworkListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WorkloadNetworkListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WorkloadNetworkListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WorkloadNetworkListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkList.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkListResult.cs similarity index 55% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkListResult.cs index 9a3e56110c13..83e5df0c20a3 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of workload networks - public partial class WorkloadNetworkList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListInternal + /// The response of a WorkloadNetwork list operation. + public partial class WorkloadNetworkListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on the page + /// The WorkloadNetwork items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public WorkloadNetworkList() + /// Creates an new instance. + public WorkloadNetworkListResult() { } } - /// A list of workload networks - public partial interface IWorkloadNetworkList : + /// The response of a WorkloadNetwork list operation. + public partial interface IWorkloadNetworkListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on the page + string NextLink { get; set; } + /// The WorkloadNetwork items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on the page", + Create = true, + Update = true, + Description = @"The WorkloadNetwork items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetwork) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A list of workload networks - internal partial interface IWorkloadNetworkListInternal + /// The response of a WorkloadNetwork list operation. + internal partial interface IWorkloadNetworkListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on the page + /// The WorkloadNetwork items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkListResult.json.cs similarity index 80% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkListResult.json.cs index 30347bd95a24..2269cbcbb672 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of workload networks - public partial class WorkloadNetworkList + /// The response of a WorkloadNetwork list operation. + public partial class WorkloadNetworkListResult { /// @@ -54,25 +54,25 @@ public partial class WorkloadNetworkList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkListResult(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -84,31 +84,25 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal WorkloadNetworkList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal WorkloadNetworkListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroring.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroring.PowerShell.cs index 3c4e3f7ea3b8..04020fc57fd4 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroring.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroring.PowerShell.cs @@ -130,6 +130,34 @@ internal WorkloadNetworkPortMirroring(global::System.Collections.IDictionary con { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -191,6 +219,34 @@ internal WorkloadNetworkPortMirroring(global::System.Management.Automation.PSObj { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroring.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroring.cs index c2533d6d7fcf..9914ce7fff17 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroring.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroring.cs @@ -30,7 +30,9 @@ public partial class WorkloadNetworkPortMirroring : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).DisplayName = value ?? null; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } @@ -40,6 +42,9 @@ public partial class WorkloadNetworkPortMirroring : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } @@ -52,14 +57,14 @@ public partial class WorkloadNetworkPortMirroring : /// Internal Acessors for Status string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).Status = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringProperties _property; - /// Port Mirroring Properties. + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringProperties()); set => this._property = value; } @@ -83,7 +88,39 @@ public partial class WorkloadNetworkPortMirroring : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).Status; } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } @@ -116,7 +153,7 @@ public partial interface IWorkloadNetworkPortMirroring : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Destination VM Group.", SerializedName = @"destination", PossibleTypes = new [] { typeof(string) })] @@ -127,7 +164,7 @@ public partial interface IWorkloadNetworkPortMirroring : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Direction of port mirroring profile.", SerializedName = @"direction", PossibleTypes = new [] { typeof(string) })] @@ -139,7 +176,7 @@ public partial interface IWorkloadNetworkPortMirroring : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Display name of the port mirroring profile.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] @@ -154,7 +191,7 @@ public partial interface IWorkloadNetworkPortMirroring : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// NSX revision number. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -162,7 +199,7 @@ public partial interface IWorkloadNetworkPortMirroring : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"NSX revision number.", SerializedName = @"revision", PossibleTypes = new [] { typeof(long) })] @@ -173,7 +210,7 @@ public partial interface IWorkloadNetworkPortMirroring : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Source VM Group.", SerializedName = @"source", PossibleTypes = new [] { typeof(string) })] @@ -203,10 +240,10 @@ internal partial interface IWorkloadNetworkPortMirroringInternal : string Direction { get; set; } /// Display name of the port mirroring profile. string DisplayName { get; set; } - /// Port Mirroring Properties. + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringProperties Property { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// NSX revision number. long? Revision { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroring.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroring.json.cs index d9150fd459c1..3b6994bbb101 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroring.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroring.json.cs @@ -85,7 +85,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __proxyResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringListResult.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringListResult.PowerShell.cs new file mode 100644 index 000000000000..37625aa64803 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringListResult.PowerShell.cs @@ -0,0 +1,175 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// The response of a WorkloadNetworkPortMirroring list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkPortMirroringListResultTypeConverter))] + public partial class WorkloadNetworkPortMirroringListResult + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new WorkloadNetworkPortMirroringListResult(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new WorkloadNetworkPortMirroringListResult(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json + /// string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal WorkloadNetworkPortMirroringListResult(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal WorkloadNetworkPortMirroringListResult(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResultInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// The response of a WorkloadNetworkPortMirroring list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkPortMirroringListResultTypeConverter))] + public partial interface IWorkloadNetworkPortMirroringListResult + + { + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringListResult.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringListResult.TypeConverter.cs new file mode 100644 index 000000000000..6fd2bcb990e4 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringListResult.TypeConverter.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WorkloadNetworkPortMirroringListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WorkloadNetworkPortMirroringListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WorkloadNetworkPortMirroringListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WorkloadNetworkPortMirroringListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringList.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringListResult.cs similarity index 57% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringListResult.cs index cbe531d35b6c..14509e6c4b16 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX Port Mirroring - public partial class WorkloadNetworkPortMirroringList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListInternal + /// The response of a WorkloadNetworkPortMirroring list operation. + public partial class WorkloadNetworkPortMirroringListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on the page + /// The WorkloadNetworkPortMirroring items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public WorkloadNetworkPortMirroringList() + /// Creates an new instance. + public WorkloadNetworkPortMirroringListResult() { } } - /// A list of NSX Port Mirroring - public partial interface IWorkloadNetworkPortMirroringList : + /// The response of a WorkloadNetworkPortMirroring list operation. + public partial interface IWorkloadNetworkPortMirroringListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on the page + string NextLink { get; set; } + /// The WorkloadNetworkPortMirroring items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on the page", + Create = true, + Update = true, + Description = @"The WorkloadNetworkPortMirroring items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A list of NSX Port Mirroring - internal partial interface IWorkloadNetworkPortMirroringListInternal + /// The response of a WorkloadNetworkPortMirroring list operation. + internal partial interface IWorkloadNetworkPortMirroringListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on the page + /// The WorkloadNetworkPortMirroring items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringListResult.json.cs similarity index 80% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringListResult.json.cs index 3b81f882fad5..1217ee2692f8 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX Port Mirroring - public partial class WorkloadNetworkPortMirroringList + /// The response of a WorkloadNetworkPortMirroring list operation. + public partial class WorkloadNetworkPortMirroringListResult { /// @@ -54,25 +54,26 @@ public partial class WorkloadNetworkPortMirroringList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkPortMirroringList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkPortMirroringListResult(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -84,31 +85,25 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal WorkloadNetworkPortMirroringList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal WorkloadNetworkPortMirroringListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringProperties.cs index 65ba4bd20eb0..ba14ca69a1ab 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringProperties.cs @@ -122,7 +122,7 @@ public partial interface IWorkloadNetworkPortMirroringProperties : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// NSX revision number. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -172,7 +172,7 @@ internal partial interface IWorkloadNetworkPortMirroringPropertiesInternal /// Display name of the port mirroring profile. string DisplayName { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// NSX revision number. long? Revision { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringUpdate.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringUpdate.PowerShell.cs new file mode 100644 index 000000000000..4167217a6f3b --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringUpdate.PowerShell.cs @@ -0,0 +1,222 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// NSX Port Mirroring update + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkPortMirroringUpdateTypeConverter))] + public partial class WorkloadNetworkPortMirroringUpdate + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new WorkloadNetworkPortMirroringUpdate(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new WorkloadNetworkPortMirroringUpdate(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal WorkloadNetworkPortMirroringUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("Direction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Direction = (string) content.GetValueForProperty("Direction",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Direction, global::System.Convert.ToString); + } + if (content.Contains("Source")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Source = (string) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Source, global::System.Convert.ToString); + } + if (content.Contains("Destination")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Destination = (string) content.GetValueForProperty("Destination",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Destination, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Status, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal WorkloadNetworkPortMirroringUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("Direction")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Direction = (string) content.GetValueForProperty("Direction",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Direction, global::System.Convert.ToString); + } + if (content.Contains("Source")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Source = (string) content.GetValueForProperty("Source",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Source, global::System.Convert.ToString); + } + if (content.Contains("Destination")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Destination = (string) content.GetValueForProperty("Destination",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Destination, global::System.Convert.ToString); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Status, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + AfterDeserializePSObject(content); + } + } + /// NSX Port Mirroring update + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkPortMirroringUpdateTypeConverter))] + public partial interface IWorkloadNetworkPortMirroringUpdate + + { + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachinesList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringUpdate.TypeConverter.cs similarity index 87% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachinesList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringUpdate.TypeConverter.cs index abf2390e8a86..09b4f24cce78 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachinesList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringUpdate.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class WorkloadNetworkVirtualMachinesListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class WorkloadNetworkPortMirroringUpdateTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class WorkloadNetworkVirtualMachinesListTypeConverter : global::S public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise + /// true if the instance could be converted to a type, otherwise /// false /// public static bool CanConvertFrom(dynamic sourceValue) @@ -96,32 +96,32 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate).IsAssignableFrom(type)) { return sourceValue; } try { - return WorkloadNetworkVirtualMachinesList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return WorkloadNetworkPortMirroringUpdate.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -129,11 +129,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkV } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return WorkloadNetworkVirtualMachinesList.DeserializeFromPSObject(sourceValue); + return WorkloadNetworkPortMirroringUpdate.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return WorkloadNetworkVirtualMachinesList.DeserializeFromDictionary(sourceValue); + return WorkloadNetworkPortMirroringUpdate.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringUpdate.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringUpdate.cs new file mode 100644 index 000000000000..3364259ef74c --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringUpdate.cs @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// NSX Port Mirroring update + public partial class WorkloadNetworkPortMirroringUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal + { + + /// Destination VM Group. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string Destination { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).Destination; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).Destination = value ?? null; } + + /// Direction of port mirroring profile. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string Direction { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).Direction; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).Direction = value ?? null; } + + /// Display name of the port mirroring profile. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).DisplayName = value ?? null; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Status + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdateInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).Status = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringProperties _property; + + /// The updatable properties of a Port Mirroring update + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringProperties()); set => this._property = value; } + + /// The provisioning state + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).ProvisioningState; } + + /// NSX revision number. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public long? Revision { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).Revision; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).Revision = value ?? default(long); } + + /// Source VM Group. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string Source { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).Source; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).Source = value ?? null; } + + /// Port Mirroring Status. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringPropertiesInternal)Property).Status; } + + /// Creates an new instance. + public WorkloadNetworkPortMirroringUpdate() + { + + } + } + /// NSX Port Mirroring update + public partial interface IWorkloadNetworkPortMirroringUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable + { + /// Destination VM Group. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Destination VM Group.", + SerializedName = @"destination", + PossibleTypes = new [] { typeof(string) })] + string Destination { get; set; } + /// Direction of port mirroring profile. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Direction of port mirroring profile.", + SerializedName = @"direction", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("INGRESS", "EGRESS", "BIDIRECTIONAL")] + string Direction { get; set; } + /// Display name of the port mirroring profile. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Display name of the port mirroring profile.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// The provisioning state + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; } + /// NSX revision number. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"NSX revision number.", + SerializedName = @"revision", + PossibleTypes = new [] { typeof(long) })] + long? Revision { get; set; } + /// Source VM Group. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Source VM Group.", + SerializedName = @"source", + PossibleTypes = new [] { typeof(string) })] + string Source { get; set; } + /// Port Mirroring Status. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Port Mirroring Status.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SUCCESS", "FAILURE")] + string Status { get; } + + } + /// NSX Port Mirroring update + internal partial interface IWorkloadNetworkPortMirroringUpdateInternal + + { + /// Destination VM Group. + string Destination { get; set; } + /// Direction of port mirroring profile. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("INGRESS", "EGRESS", "BIDIRECTIONAL")] + string Direction { get; set; } + /// Display name of the port mirroring profile. + string DisplayName { get; set; } + /// The updatable properties of a Port Mirroring update + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringProperties Property { get; set; } + /// The provisioning state + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; set; } + /// NSX revision number. + long? Revision { get; set; } + /// Source VM Group. + string Source { get; set; } + /// Port Mirroring Status. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SUCCESS", "FAILURE")] + string Status { get; set; } + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringUpdate.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringUpdate.json.cs new file mode 100644 index 000000000000..312b4b2938b5 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPortMirroringUpdate.json.cs @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// NSX Port Mirroring update + public partial class WorkloadNetworkPortMirroringUpdate + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkPortMirroringUpdate(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. + internal WorkloadNetworkPortMirroringUpdate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringProperties.FromJson(__jsonProperties) : _property;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkProperties.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkProperties.PowerShell.cs new file mode 100644 index 000000000000..ea3b878770df --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkProperties.PowerShell.cs @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// The properties of a workload network + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkPropertiesTypeConverter))] + public partial class WorkloadNetworkProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new WorkloadNetworkProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new WorkloadNetworkProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal WorkloadNetworkProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal WorkloadNetworkProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// The properties of a workload network + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkPropertiesTypeConverter))] + public partial interface IWorkloadNetworkProperties + + { + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkProperties.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkProperties.TypeConverter.cs new file mode 100644 index 000000000000..dc7a2919c395 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkProperties.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WorkloadNetworkPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WorkloadNetworkProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WorkloadNetworkProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WorkloadNetworkProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkProperties.cs new file mode 100644 index 000000000000..2a97272a756e --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkProperties.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// The properties of a workload network + public partial class WorkloadNetworkProperties : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkProperties, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPropertiesInternal + { + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Backing field for property. + private string _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + + /// Creates an new instance. + public WorkloadNetworkProperties() + { + + } + } + /// The properties of a workload network + public partial interface IWorkloadNetworkProperties : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable + { + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; } + + } + /// The properties of a workload network + internal partial interface IWorkloadNetworkPropertiesInternal + + { + /// The provisioning state of the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkProperties.json.cs new file mode 100644 index 000000000000..023bffd21648 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkProperties.json.cs @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// The properties of a workload network + public partial class WorkloadNetworkProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. + internal WorkloadNetworkProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIP.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIP.PowerShell.cs index 7ec5c7dc4ecd..3b34c1bcea57 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIP.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIP.PowerShell.cs @@ -130,6 +130,34 @@ internal WorkloadNetworkPublicIP(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIPPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -179,6 +207,34 @@ internal WorkloadNetworkPublicIP(global::System.Management.Automation.PSObject c { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIPPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIP.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIP.cs index 17f4ae9dd5d7..9459576e6601 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIP.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIP.cs @@ -22,7 +22,9 @@ public partial class WorkloadNetworkPublicIP : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPPropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPPropertiesInternal)Property).DisplayName = value ?? null; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } @@ -32,6 +34,9 @@ public partial class WorkloadNetworkPublicIP : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } @@ -44,7 +49,7 @@ public partial class WorkloadNetworkPublicIP : /// Internal Acessors for PublicIPBlock string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPInternal.PublicIPBlock { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPPropertiesInternal)Property).PublicIPBlock; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPPropertiesInternal)Property).PublicIPBlock = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } @@ -55,7 +60,7 @@ public partial class WorkloadNetworkPublicIP : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPProperties _property; - /// Public IP Block properties + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIPProperties()); set => this._property = value; } @@ -71,7 +76,39 @@ public partial class WorkloadNetworkPublicIP : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } @@ -104,7 +141,7 @@ public partial interface IWorkloadNetworkPublicIP : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Display name of the Public IP Block.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] @@ -115,7 +152,7 @@ public partial interface IWorkloadNetworkPublicIP : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Number of Public IPs requested.", SerializedName = @"numberOfPublicIPs", PossibleTypes = new [] { typeof(long) })] @@ -130,7 +167,7 @@ public partial interface IWorkloadNetworkPublicIP : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// CIDR Block of the Public IP Block. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -153,10 +190,10 @@ internal partial interface IWorkloadNetworkPublicIPInternal : string DisplayName { get; set; } /// Number of Public IPs requested. long? NumberOfPublicIP { get; set; } - /// Public IP Block properties + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPProperties Property { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// CIDR Block of the Public IP Block. string PublicIPBlock { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIP.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIP.json.cs index 5f7648a2da1a..430e84aa66c7 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIP.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIP.json.cs @@ -85,7 +85,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __proxyResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPsList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPListResult.PowerShell.cs similarity index 70% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPsList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPListResult.PowerShell.cs index d96187fc2dbb..61762c38b273 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPsList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A list of NSX Public IP Blocks - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkPublicIPsListTypeConverter))] - public partial class WorkloadNetworkPublicIPsList + /// The response of a WorkloadNetworkPublicIP list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkPublicIPListResultTypeConverter))] + public partial class WorkloadNetworkPublicIPListResult { /// @@ -63,37 +63,39 @@ public partial class WorkloadNetworkPublicIPsList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new WorkloadNetworkPublicIPsList(content); + return new WorkloadNetworkPublicIPListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new WorkloadNetworkPublicIPsList(content); + return new WorkloadNetworkPublicIPListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -113,11 +115,11 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal WorkloadNetworkPublicIPsList(global::System.Collections.IDictionary content) + internal WorkloadNetworkPublicIPListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -128,21 +130,21 @@ internal WorkloadNetworkPublicIPsList(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIPTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIPTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal WorkloadNetworkPublicIPsList(global::System.Management.Automation.PSObject content) + internal WorkloadNetworkPublicIPListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -153,18 +155,18 @@ internal WorkloadNetworkPublicIPsList(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIPTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIPTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } } - /// A list of NSX Public IP Blocks - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkPublicIPsListTypeConverter))] - public partial interface IWorkloadNetworkPublicIPsList + /// The response of a WorkloadNetworkPublicIP list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkPublicIPListResultTypeConverter))] + public partial interface IWorkloadNetworkPublicIPListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPListResult.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPListResult.TypeConverter.cs new file mode 100644 index 000000000000..e52e9f85600a --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPListResult.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WorkloadNetworkPublicIPListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WorkloadNetworkPublicIPListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WorkloadNetworkPublicIPListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WorkloadNetworkPublicIPListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPsList.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPListResult.cs similarity index 55% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPsList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPListResult.cs index ad168cb46039..3fcbad6520c5 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPsList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX Public IP Blocks - public partial class WorkloadNetworkPublicIPsList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsListInternal + /// The response of a WorkloadNetworkPublicIP list operation. + public partial class WorkloadNetworkPublicIPListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on the page + /// The WorkloadNetworkPublicIP items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public WorkloadNetworkPublicIPsList() + /// Creates an new instance. + public WorkloadNetworkPublicIPListResult() { } } - /// A list of NSX Public IP Blocks - public partial interface IWorkloadNetworkPublicIPsList : + /// The response of a WorkloadNetworkPublicIP list operation. + public partial interface IWorkloadNetworkPublicIPListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on the page + string NextLink { get; set; } + /// The WorkloadNetworkPublicIP items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on the page", + Create = true, + Update = true, + Description = @"The WorkloadNetworkPublicIP items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIP) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A list of NSX Public IP Blocks - internal partial interface IWorkloadNetworkPublicIPsListInternal + /// The response of a WorkloadNetworkPublicIP list operation. + internal partial interface IWorkloadNetworkPublicIPListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on the page + /// The WorkloadNetworkPublicIP items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPsList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPListResult.json.cs similarity index 80% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPsList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPListResult.json.cs index a010962c092e..b6d1b064c41f 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPsList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX Public IP Blocks - public partial class WorkloadNetworkPublicIPsList + /// The response of a WorkloadNetworkPublicIP list operation. + public partial class WorkloadNetworkPublicIPListResult { /// @@ -54,25 +54,25 @@ public partial class WorkloadNetworkPublicIPsList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkPublicIPsList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkPublicIPListResult(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -84,31 +84,25 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal WorkloadNetworkPublicIPsList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal WorkloadNetworkPublicIPListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPProperties.cs index 1aae4f1e28b9..f77719ce34d2 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkPublicIPProperties.cs @@ -89,7 +89,7 @@ public partial interface IWorkloadNetworkPublicIPProperties : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// CIDR Block of the Public IP Block. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -113,7 +113,7 @@ internal partial interface IWorkloadNetworkPublicIPPropertiesInternal /// Number of Public IPs requested. long? NumberOfPublicIP { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// CIDR Block of the Public IP Block. string PublicIPBlock { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegment.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegment.PowerShell.cs index e84c92f83cb7..234b9b7b7fdf 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegment.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegment.PowerShell.cs @@ -130,6 +130,34 @@ internal WorkloadNetworkSegment(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -199,6 +227,34 @@ internal WorkloadNetworkSegment(global::System.Management.Automation.PSObject co { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegment.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegment.cs index 1f696732cadd..a41da1aa4bb2 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegment.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegment.cs @@ -26,7 +26,9 @@ public partial class WorkloadNetworkSegment : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).DisplayName = value ?? null; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } @@ -36,6 +38,9 @@ public partial class WorkloadNetworkSegment : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } @@ -54,7 +59,7 @@ public partial class WorkloadNetworkSegment : /// Internal Acessors for Subnet Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentSubnet Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).Subnet = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } @@ -65,7 +70,7 @@ public partial class WorkloadNetworkSegment : /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentProperties _property; - /// The properties of a Workload Segment proxy resource. + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentProperties()); set => this._property = value; } @@ -93,7 +98,39 @@ public partial class WorkloadNetworkSegment : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string SubnetGatewayAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).SubnetGatewayAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).SubnetGatewayAddress = value ?? null; } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } @@ -126,7 +163,7 @@ public partial interface IWorkloadNetworkSegment : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Gateway which to connect segment to.", SerializedName = @"connectedGateway", PossibleTypes = new [] { typeof(string) })] @@ -137,7 +174,7 @@ public partial interface IWorkloadNetworkSegment : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Display name of the segment.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] @@ -163,7 +200,7 @@ public partial interface IWorkloadNetworkSegment : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// NSX revision number. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -171,7 +208,7 @@ public partial interface IWorkloadNetworkSegment : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"NSX revision number.", SerializedName = @"revision", PossibleTypes = new [] { typeof(long) })] @@ -194,7 +231,7 @@ public partial interface IWorkloadNetworkSegment : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"DHCP Range assigned for subnet.", SerializedName = @"dhcpRanges", PossibleTypes = new [] { typeof(string) })] @@ -205,7 +242,7 @@ public partial interface IWorkloadNetworkSegment : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Gateway address.", SerializedName = @"gatewayAddress", PossibleTypes = new [] { typeof(string) })] @@ -222,10 +259,10 @@ internal partial interface IWorkloadNetworkSegmentInternal : string DisplayName { get; set; } /// Port Vif which segment is associated with. System.Collections.Generic.List PortVif { get; set; } - /// The properties of a Workload Segment proxy resource. + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentProperties Property { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// NSX revision number. long? Revision { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegment.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegment.json.cs index f7baaafb849b..b74290c3a656 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegment.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegment.json.cs @@ -85,7 +85,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __proxyResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentsList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentListResult.PowerShell.cs similarity index 71% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentsList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentListResult.PowerShell.cs index abbf40b7240c..e3bf237c654b 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentsList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A list of NSX Segments - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkSegmentsListTypeConverter))] - public partial class WorkloadNetworkSegmentsList + /// The response of a WorkloadNetworkSegment list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkSegmentListResultTypeConverter))] + public partial class WorkloadNetworkSegmentListResult { /// @@ -63,37 +63,37 @@ public partial class WorkloadNetworkSegmentsList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new WorkloadNetworkSegmentsList(content); + return new WorkloadNetworkSegmentListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new WorkloadNetworkSegmentsList(content); + return new WorkloadNetworkSegmentListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -113,11 +113,11 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal WorkloadNetworkSegmentsList(global::System.Collections.IDictionary content) + internal WorkloadNetworkSegmentListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -128,21 +128,21 @@ internal WorkloadNetworkSegmentsList(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal WorkloadNetworkSegmentsList(global::System.Management.Automation.PSObject content) + internal WorkloadNetworkSegmentListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -153,18 +153,18 @@ internal WorkloadNetworkSegmentsList(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } } - /// A list of NSX Segments - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkSegmentsListTypeConverter))] - public partial interface IWorkloadNetworkSegmentsList + /// The response of a WorkloadNetworkSegment list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkSegmentListResultTypeConverter))] + public partial interface IWorkloadNetworkSegmentListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentListResult.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentListResult.TypeConverter.cs new file mode 100644 index 000000000000..46479e8a0258 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentListResult.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WorkloadNetworkSegmentListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WorkloadNetworkSegmentListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WorkloadNetworkSegmentListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WorkloadNetworkSegmentListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentsList.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentListResult.cs similarity index 54% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentsList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentListResult.cs index 8c022ba966d5..de617e3763e7 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentsList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX Segments - public partial class WorkloadNetworkSegmentsList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsListInternal + /// The response of a WorkloadNetworkSegment list operation. + public partial class WorkloadNetworkSegmentListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on the page + /// The WorkloadNetworkSegment items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public WorkloadNetworkSegmentsList() + /// Creates an new instance. + public WorkloadNetworkSegmentListResult() { } } - /// A list of NSX Segments - public partial interface IWorkloadNetworkSegmentsList : + /// The response of a WorkloadNetworkSegment list operation. + public partial interface IWorkloadNetworkSegmentListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on the page + string NextLink { get; set; } + /// The WorkloadNetworkSegment items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on the page", + Create = true, + Update = true, + Description = @"The WorkloadNetworkSegment items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A list of NSX Segments - internal partial interface IWorkloadNetworkSegmentsListInternal + /// The response of a WorkloadNetworkSegment list operation. + internal partial interface IWorkloadNetworkSegmentListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on the page + /// The WorkloadNetworkSegment items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentsList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentListResult.json.cs similarity index 80% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentsList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentListResult.json.cs index 9c2e2da9f4b7..99ff98b52bdd 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentsList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX Segments - public partial class WorkloadNetworkSegmentsList + /// The response of a WorkloadNetworkSegment list operation. + public partial class WorkloadNetworkSegmentListResult { /// @@ -54,25 +54,25 @@ public partial class WorkloadNetworkSegmentsList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkSegmentsList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkSegmentListResult(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -84,31 +84,25 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal WorkloadNetworkSegmentsList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal WorkloadNetworkSegmentListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentProperties.cs index 8d351b4c9cfa..c814241f28d0 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentProperties.cs @@ -135,7 +135,7 @@ public partial interface IWorkloadNetworkSegmentProperties : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// NSX revision number. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -195,7 +195,7 @@ internal partial interface IWorkloadNetworkSegmentPropertiesInternal /// Port Vif which segment is associated with. System.Collections.Generic.List PortVif { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// NSX revision number. long? Revision { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentUpdate.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentUpdate.PowerShell.cs new file mode 100644 index 000000000000..3b7793d806de --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentUpdate.PowerShell.cs @@ -0,0 +1,236 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// NSX Segment update + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkSegmentUpdateTypeConverter))] + public partial class WorkloadNetworkSegmentUpdate + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new WorkloadNetworkSegmentUpdate(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new WorkloadNetworkSegmentUpdate(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal WorkloadNetworkSegmentUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Subnet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentSubnet) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentSubnetTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("ConnectedGateway")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).ConnectedGateway = (string) content.GetValueForProperty("ConnectedGateway",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).ConnectedGateway, global::System.Convert.ToString); + } + if (content.Contains("PortVif")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).PortVif = (System.Collections.Generic.List) content.GetValueForProperty("PortVif",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).PortVif, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentPortVifTypeConverter.ConvertFrom)); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).Status, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("SubnetDhcpRange")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).SubnetDhcpRange = (System.Collections.Generic.List) content.GetValueForProperty("SubnetDhcpRange",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).SubnetDhcpRange, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("SubnetGatewayAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).SubnetGatewayAddress = (string) content.GetValueForProperty("SubnetGatewayAddress",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).SubnetGatewayAddress, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal WorkloadNetworkSegmentUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Subnet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentSubnet) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentSubnetTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("ConnectedGateway")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).ConnectedGateway = (string) content.GetValueForProperty("ConnectedGateway",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).ConnectedGateway, global::System.Convert.ToString); + } + if (content.Contains("PortVif")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).PortVif = (System.Collections.Generic.List) content.GetValueForProperty("PortVif",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).PortVif, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentPortVifTypeConverter.ConvertFrom)); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).Status, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + if (content.Contains("SubnetDhcpRange")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).SubnetDhcpRange = (System.Collections.Generic.List) content.GetValueForProperty("SubnetDhcpRange",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).SubnetDhcpRange, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("SubnetGatewayAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).SubnetGatewayAddress = (string) content.GetValueForProperty("SubnetGatewayAddress",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal)this).SubnetGatewayAddress, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// NSX Segment update + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkSegmentUpdateTypeConverter))] + public partial interface IWorkloadNetworkSegmentUpdate + + { + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentUpdate.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentUpdate.TypeConverter.cs new file mode 100644 index 000000000000..fef825fc125c --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentUpdate.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WorkloadNetworkSegmentUpdateTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WorkloadNetworkSegmentUpdate.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WorkloadNetworkSegmentUpdate.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WorkloadNetworkSegmentUpdate.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentUpdate.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentUpdate.cs new file mode 100644 index 000000000000..ff5caf27603f --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentUpdate.cs @@ -0,0 +1,200 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// NSX Segment update + public partial class WorkloadNetworkSegmentUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal + { + + /// Gateway which to connect segment to. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ConnectedGateway { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).ConnectedGateway; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).ConnectedGateway = value ?? null; } + + /// Display name of the segment. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).DisplayName = value ?? null; } + + /// Internal Acessors for PortVif + System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal.PortVif { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).PortVif; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).PortVif = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Status + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).Status = value; } + + /// Internal Acessors for Subnet + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentSubnet Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdateInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).Subnet = value; } + + /// Port Vif which segment is associated with. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public System.Collections.Generic.List PortVif { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).PortVif; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentProperties _property; + + /// The updatable properties of a Segment update + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentProperties()); set => this._property = value; } + + /// The provisioning state + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).ProvisioningState; } + + /// NSX revision number. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public long? Revision { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).Revision; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).Revision = value ?? default(long); } + + /// Segment status. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).Status; } + + /// DHCP Range assigned for subnet. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public System.Collections.Generic.List SubnetDhcpRange { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).SubnetDhcpRange; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).SubnetDhcpRange = value ?? null /* arrayOf */; } + + /// Gateway address. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string SubnetGatewayAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).SubnetGatewayAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPropertiesInternal)Property).SubnetGatewayAddress = value ?? null; } + + /// Creates an new instance. + public WorkloadNetworkSegmentUpdate() + { + + } + } + /// NSX Segment update + public partial interface IWorkloadNetworkSegmentUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable + { + /// Gateway which to connect segment to. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Gateway which to connect segment to.", + SerializedName = @"connectedGateway", + PossibleTypes = new [] { typeof(string) })] + string ConnectedGateway { get; set; } + /// Display name of the segment. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Display name of the segment.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// Port Vif which segment is associated with. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Port Vif which segment is associated with.", + SerializedName = @"portVif", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentPortVif) })] + System.Collections.Generic.List PortVif { get; } + /// The provisioning state + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; } + /// NSX revision number. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"NSX revision number.", + SerializedName = @"revision", + PossibleTypes = new [] { typeof(long) })] + long? Revision { get; set; } + /// Segment status. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"Segment status.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SUCCESS", "FAILURE")] + string Status { get; } + /// DHCP Range assigned for subnet. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"DHCP Range assigned for subnet.", + SerializedName = @"dhcpRanges", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List SubnetDhcpRange { get; set; } + /// Gateway address. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Gateway address.", + SerializedName = @"gatewayAddress", + PossibleTypes = new [] { typeof(string) })] + string SubnetGatewayAddress { get; set; } + + } + /// NSX Segment update + internal partial interface IWorkloadNetworkSegmentUpdateInternal + + { + /// Gateway which to connect segment to. + string ConnectedGateway { get; set; } + /// Display name of the segment. + string DisplayName { get; set; } + /// Port Vif which segment is associated with. + System.Collections.Generic.List PortVif { get; set; } + /// The updatable properties of a Segment update + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentProperties Property { get; set; } + /// The provisioning state + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; set; } + /// NSX revision number. + long? Revision { get; set; } + /// Segment status. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SUCCESS", "FAILURE")] + string Status { get; set; } + /// Subnet which to connect segment to. + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentSubnet Subnet { get; set; } + /// DHCP Range assigned for subnet. + System.Collections.Generic.List SubnetDhcpRange { get; set; } + /// Gateway address. + string SubnetGatewayAddress { get; set; } + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentUpdate.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentUpdate.json.cs new file mode 100644 index 000000000000..db4e2127269e --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkSegmentUpdate.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// NSX Segment update + public partial class WorkloadNetworkSegmentUpdate + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkSegmentUpdate(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. + internal WorkloadNetworkSegmentUpdate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentProperties.FromJson(__jsonProperties) : _property;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroup.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroup.PowerShell.cs index 72f5911519d6..2c2d37b985b2 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroup.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroup.PowerShell.cs @@ -130,6 +130,34 @@ internal WorkloadNetworkVMGroup(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -183,6 +211,34 @@ internal WorkloadNetworkVMGroup(global::System.Management.Automation.PSObject co { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupPropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroup.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroup.cs index 9a28d984b859..174898954731 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroup.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroup.cs @@ -22,7 +22,9 @@ public partial class WorkloadNetworkVMGroup : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).DisplayName = value ?? null; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } @@ -36,6 +38,9 @@ public partial class WorkloadNetworkVMGroup : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } @@ -48,14 +53,14 @@ public partial class WorkloadNetworkVMGroup : /// Internal Acessors for Status string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).Status = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupProperties _property; - /// VM Group properties. + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupProperties()); set => this._property = value; } @@ -75,7 +80,39 @@ public partial class WorkloadNetworkVMGroup : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).Status; } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } @@ -108,7 +145,7 @@ public partial interface IWorkloadNetworkVMGroup : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Display name of the VM group.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] @@ -119,7 +156,7 @@ public partial interface IWorkloadNetworkVMGroup : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Virtual machine members of this group.", SerializedName = @"members", PossibleTypes = new [] { typeof(string) })] @@ -134,7 +171,7 @@ public partial interface IWorkloadNetworkVMGroup : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// NSX revision number. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -142,7 +179,7 @@ public partial interface IWorkloadNetworkVMGroup : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"NSX revision number.", SerializedName = @"revision", PossibleTypes = new [] { typeof(long) })] @@ -169,10 +206,10 @@ internal partial interface IWorkloadNetworkVMGroupInternal : string DisplayName { get; set; } /// Virtual machine members of this group. System.Collections.Generic.List Member { get; set; } - /// VM Group properties. + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupProperties Property { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// NSX revision number. long? Revision { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroup.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroup.json.cs index 0497549c8940..8b8eb193c9d3 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroup.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroup.json.cs @@ -85,7 +85,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __proxyResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZonesList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupListResult.PowerShell.cs similarity index 69% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZonesList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupListResult.PowerShell.cs index 53105d293859..5c9c1c65efc0 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZonesList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A list of NSX DNS Zones - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDnsZonesListTypeConverter))] - public partial class WorkloadNetworkDnsZonesList + /// The response of a WorkloadNetworkVMGroup list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkVMGroupListResultTypeConverter))] + public partial class WorkloadNetworkVMGroupListResult { /// @@ -63,37 +63,37 @@ public partial class WorkloadNetworkDnsZonesList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new WorkloadNetworkDnsZonesList(content); + return new WorkloadNetworkVMGroupListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new WorkloadNetworkDnsZonesList(content); + return new WorkloadNetworkVMGroupListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -113,11 +113,11 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal WorkloadNetworkDnsZonesList(global::System.Collections.IDictionary content) + internal WorkloadNetworkVMGroupListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -128,21 +128,21 @@ internal WorkloadNetworkDnsZonesList(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZoneTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal WorkloadNetworkDnsZonesList(global::System.Management.Automation.PSObject content) + internal WorkloadNetworkVMGroupListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -153,18 +153,18 @@ internal WorkloadNetworkDnsZonesList(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZoneTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } } - /// A list of NSX DNS Zones - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkDnsZonesListTypeConverter))] - public partial interface IWorkloadNetworkDnsZonesList + /// The response of a WorkloadNetworkVMGroup list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkVMGroupListResultTypeConverter))] + public partial interface IWorkloadNetworkVMGroupListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupListResult.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupListResult.TypeConverter.cs new file mode 100644 index 000000000000..a0660dac6ec9 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupListResult.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WorkloadNetworkVMGroupListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WorkloadNetworkVMGroupListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WorkloadNetworkVMGroupListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WorkloadNetworkVMGroupListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupsList.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupListResult.cs similarity index 54% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupsList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupListResult.cs index d4239fe280c4..abf0916df874 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupsList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX VM Groups - public partial class WorkloadNetworkVMGroupsList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsListInternal + /// The response of a WorkloadNetworkVMGroup list operation. + public partial class WorkloadNetworkVMGroupListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on the page + /// The WorkloadNetworkVMGroup items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public WorkloadNetworkVMGroupsList() + /// Creates an new instance. + public WorkloadNetworkVMGroupListResult() { } } - /// A list of NSX VM Groups - public partial interface IWorkloadNetworkVMGroupsList : + /// The response of a WorkloadNetworkVMGroup list operation. + public partial interface IWorkloadNetworkVMGroupListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on the page + string NextLink { get; set; } + /// The WorkloadNetworkVMGroup items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on the page", + Create = true, + Update = true, + Description = @"The WorkloadNetworkVMGroup items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A list of NSX VM Groups - internal partial interface IWorkloadNetworkVMGroupsListInternal + /// The response of a WorkloadNetworkVMGroup list operation. + internal partial interface IWorkloadNetworkVMGroupListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on the page + /// The WorkloadNetworkVMGroup items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupsList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupListResult.json.cs similarity index 80% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupsList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupListResult.json.cs index 59dda418686a..0dc47cb720f6 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupsList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX VM Groups - public partial class WorkloadNetworkVMGroupsList + /// The response of a WorkloadNetworkVMGroup list operation. + public partial class WorkloadNetworkVMGroupListResult { /// @@ -54,25 +54,25 @@ public partial class WorkloadNetworkVMGroupsList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkVMGroupsList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkVMGroupListResult(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -84,31 +84,25 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal WorkloadNetworkVMGroupsList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal WorkloadNetworkVMGroupListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupProperties.cs index 96e6d32f314e..11c4ecdc0c5e 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupProperties.cs @@ -96,7 +96,7 @@ public partial interface IWorkloadNetworkVMGroupProperties : Description = @"The provisioning state", SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; } /// NSX revision number. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( @@ -132,7 +132,7 @@ internal partial interface IWorkloadNetworkVMGroupPropertiesInternal /// Virtual machine members of this group. System.Collections.Generic.List Member { get; set; } /// The provisioning state - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Building", "Deleting", "Updating", "Canceled")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] string ProvisioningState { get; set; } /// NSX revision number. long? Revision { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupUpdate.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupUpdate.PowerShell.cs new file mode 100644 index 000000000000..3f25d70b37cb --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupUpdate.PowerShell.cs @@ -0,0 +1,204 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// NSX VM Group update + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkVMGroupUpdateTypeConverter))] + public partial class WorkloadNetworkVMGroupUpdate + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// OverrideToString will be called if it is implemented. Implement this method in a partial class to enable this behavior + /// + /// /// instance serialized to a string, normally it is a Json + /// /// set returnNow to true if you provide a customized OverrideToString function + + partial void OverrideToString(ref string stringResult, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new WorkloadNetworkVMGroupUpdate(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new WorkloadNetworkVMGroupUpdate(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeAll)?.ToString(); + + public override string ToString() + { + var returnNow = false; + var result = global::System.String.Empty; + OverrideToString(ref result, ref returnNow); + if (returnNow) + { + return result; + } + return ToJsonString(); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal WorkloadNetworkVMGroupUpdate(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("Member")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).Member = (System.Collections.Generic.List) content.GetValueForProperty("Member",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).Member, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).Status, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal WorkloadNetworkVMGroupUpdate(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("DisplayName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).DisplayName, global::System.Convert.ToString); + } + if (content.Contains("Member")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).Member = (System.Collections.Generic.List) content.GetValueForProperty("Member",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).Member, __y => TypeConverterExtensions.SelectToList(__y, global::System.Convert.ToString)); + } + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).Status, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("Revision")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).Revision = (long?) content.GetValueForProperty("Revision",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal)this).Revision, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + } + AfterDeserializePSObject(content); + } + } + /// NSX VM Group update + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkVMGroupUpdateTypeConverter))] + public partial interface IWorkloadNetworkVMGroupUpdate + + { + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZonesList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupUpdate.TypeConverter.cs similarity index 84% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZonesList.TypeConverter.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupUpdate.TypeConverter.cs index f59df4c0546e..945dc1d273dd 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkDnsZonesList.TypeConverter.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupUpdate.TypeConverter.cs @@ -8,9 +8,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class WorkloadNetworkDnsZonesListTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class WorkloadNetworkVMGroupUpdateTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class WorkloadNetworkDnsZonesListTypeConverter : global::System.M public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate).IsAssignableFrom(type)) { return sourceValue; } try { - return WorkloadNetworkDnsZonesList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return WorkloadNetworkVMGroupUpdate.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkD } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return WorkloadNetworkDnsZonesList.DeserializeFromPSObject(sourceValue); + return WorkloadNetworkVMGroupUpdate.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return WorkloadNetworkDnsZonesList.DeserializeFromDictionary(sourceValue); + return WorkloadNetworkVMGroupUpdate.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupUpdate.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupUpdate.cs new file mode 100644 index 000000000000..4f1f5f5caa3e --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupUpdate.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// NSX VM Group update + public partial class WorkloadNetworkVMGroupUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal + { + + /// Display name of the VM group. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).DisplayName = value ?? null; } + + /// Virtual machine members of this group. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public System.Collections.Generic.List Member { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).Member; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).Member = value ?? null /* arrayOf */; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Status + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdateInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).Status = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupProperties _property; + + /// The updatable properties of a VM Group update + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupProperties()); set => this._property = value; } + + /// The provisioning state + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).ProvisioningState; } + + /// NSX revision number. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public long? Revision { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).Revision; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).Revision = value ?? default(long); } + + /// VM Group status. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupPropertiesInternal)Property).Status; } + + /// Creates an new instance. + public WorkloadNetworkVMGroupUpdate() + { + + } + } + /// NSX VM Group update + public partial interface IWorkloadNetworkVMGroupUpdate : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable + { + /// Display name of the VM group. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Display name of the VM group.", + SerializedName = @"displayName", + PossibleTypes = new [] { typeof(string) })] + string DisplayName { get; set; } + /// Virtual machine members of this group. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"Virtual machine members of this group.", + SerializedName = @"members", + PossibleTypes = new [] { typeof(string) })] + System.Collections.Generic.List Member { get; set; } + /// The provisioning state + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; } + /// NSX revision number. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Read = true, + Create = true, + Update = true, + Description = @"NSX revision number.", + SerializedName = @"revision", + PossibleTypes = new [] { typeof(long) })] + long? Revision { get; set; } + /// VM Group status. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"VM Group status.", + SerializedName = @"status", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SUCCESS", "FAILURE")] + string Status { get; } + + } + /// NSX VM Group update + internal partial interface IWorkloadNetworkVMGroupUpdateInternal + + { + /// Display name of the VM group. + string DisplayName { get; set; } + /// Virtual machine members of this group. + System.Collections.Generic.List Member { get; set; } + /// The updatable properties of a VM Group update + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupProperties Property { get; set; } + /// The provisioning state + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; set; } + /// NSX revision number. + long? Revision { get; set; } + /// VM Group status. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SUCCESS", "FAILURE")] + string Status { get; set; } + + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupUpdate.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupUpdate.json.cs new file mode 100644 index 000000000000..c22e3e99d1b1 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupUpdate.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + + /// NSX VM Group update + public partial class WorkloadNetworkVMGroupUpdate + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkVMGroupUpdate(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. + internal WorkloadNetworkVMGroupUpdate(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupProperties.FromJson(__jsonProperties) : _property;} + AfterFromJson(json); + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupsList.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupsList.TypeConverter.cs deleted file mode 100644 index 685451c0e50a..000000000000 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVMGroupsList.TypeConverter.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models -{ - using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - - /// - /// A PowerShell PSTypeConverter to support converting to an instance of - /// - public partial class WorkloadNetworkVMGroupsListTypeConverter : global::System.Management.Automation.PSTypeConverter - { - - /// - /// Determines if the converter can convert the parameter to the parameter. - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false. - /// - public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); - - /// - /// Determines if the converter can convert the parameter to the - /// type. - /// - /// the instance to check if it can be converted to the type. - /// - /// true if the instance could be converted to a type, otherwise false - /// - public static bool CanConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return true; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - // we say yest to PSObjects - return true; - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - // we say yest to Hashtables/dictionaries - return true; - } - try - { - if (null != sourceValue.ToJsonString()) - { - return true; - } - } - catch - { - // Not one of our objects - } - try - { - string text = sourceValue.ToString()?.Trim(); - return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; - } - catch - { - // Doesn't look like it can be treated as JSON - } - return false; - } - - /// - /// Determines if the parameter can be converted to the - /// parameter - /// - /// the to convert from - /// the to convert to - /// - /// true if the converter can convert the parameter to the parameter, otherwise false - /// - public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; - - /// - /// Converts the parameter to the parameter using and - /// - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// - /// an instance of , or null if there is no suitable conversion. - /// - public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); - - /// - /// Converts the parameter into an instance of - /// - /// the value to convert into an instance of . - /// - /// an instance of , or null if there is no suitable conversion. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsList ConvertFrom(dynamic sourceValue) - { - if (null == sourceValue) - { - return null; - } - global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsList).IsAssignableFrom(type)) - { - return sourceValue; - } - try - { - return WorkloadNetworkVMGroupsList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; - } - catch - { - // Unable to use JSON pattern - } - if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) - { - return WorkloadNetworkVMGroupsList.DeserializeFromPSObject(sourceValue); - } - if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) - { - return WorkloadNetworkVMGroupsList.DeserializeFromDictionary(sourceValue); - } - return null; - } - - /// NotImplemented -- this will return null - /// the to convert from - /// the to convert to - /// not used by this TypeConverter. - /// when set to true, will ignore the case when converting. - /// will always return null. - public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; - } -} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachine.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachine.PowerShell.cs index d57449059f1b..144eeaaadc5c 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachine.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachine.PowerShell.cs @@ -130,6 +130,34 @@ internal WorkloadNetworkVirtualMachine(global::System.Collections.IDictionary co { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachinePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -142,6 +170,10 @@ internal WorkloadNetworkVirtualMachine(global::System.Collections.IDictionary co { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineInternal)this).DisplayName, global::System.Convert.ToString); @@ -171,6 +203,34 @@ internal WorkloadNetworkVirtualMachine(global::System.Management.Automation.PSOb { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachinePropertiesTypeConverter.ConvertFrom); } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.SystemDataTypeConverter.ConvertFrom); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Id, global::System.Convert.ToString); @@ -183,6 +243,10 @@ internal WorkloadNetworkVirtualMachine(global::System.Management.Automation.PSOb { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)this).Type, global::System.Convert.ToString); } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineInternal)this).DisplayName, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachine.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachine.cs index 7da9c7d48c25..9504f3a52a02 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachine.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachine.cs @@ -22,7 +22,9 @@ public partial class WorkloadNetworkVirtualMachine : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public string DisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal)Property).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal)Property).DisplayName = value ?? null; } - /// Resource ID. + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Id; } @@ -32,31 +34,73 @@ public partial class WorkloadNetworkVirtualMachine : /// Internal Acessors for Name string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name = value; } + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData = value; } + /// Internal Acessors for Type string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type = value; } /// Internal Acessors for Property Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineProperties Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachineProperties()); set { {_property = value;} } } + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal)Property).ProvisioningState = value; } + /// Internal Acessors for VMType string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineInternal.VMType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal)Property).VMType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal)Property).VMType = value; } - /// Resource name. + /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Name; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineProperties _property; - /// Virtual machine properties. + /// The resource-specific properties for this resource. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachineProperties()); set => this._property = value; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal)Property).ProvisioningState; } + /// Gets the resource group name [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } - /// Resource type. + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + internal Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? null; } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? null; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inherited)] public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceInternal)__proxyResource).Type; } @@ -93,11 +137,23 @@ public partial interface IWorkloadNetworkVirtualMachine : ReadOnly = false, Read = true, Create = true, - Update = true, + Update = false, Description = @"Display name of the VM.", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string DisplayName { get; set; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; } /// Virtual machine type. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -118,8 +174,11 @@ internal partial interface IWorkloadNetworkVirtualMachineInternal : { /// Display name of the VM. string DisplayName { get; set; } - /// Virtual machine properties. + /// The resource-specific properties for this resource. Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineProperties Property { get; set; } + /// The provisioning state of the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; set; } /// Virtual machine type. [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("REGULAR", "EDGE", "SERVICE")] string VMType { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachine.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachine.json.cs index 904512f5a265..d76657556397 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachine.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachine.json.cs @@ -85,7 +85,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi return container; } __proxyResource?.ToJson(container, serializationMode); - AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)||serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate)) + { + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachinesList.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineListResult.PowerShell.cs similarity index 70% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachinesList.PowerShell.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineListResult.PowerShell.cs index 5df965d951e6..e661dbce97f0 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachinesList.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineListResult.PowerShell.cs @@ -7,9 +7,9 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; - /// A list of NSX Virtual Machines - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkVirtualMachinesListTypeConverter))] - public partial class WorkloadNetworkVirtualMachinesList + /// The response of a WorkloadNetworkVirtualMachine list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkVirtualMachineListResultTypeConverter))] + public partial class WorkloadNetworkVirtualMachineListResult { /// @@ -63,39 +63,40 @@ public partial class WorkloadNetworkVirtualMachinesList partial void OverrideToString(ref string stringResult, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new WorkloadNetworkVirtualMachinesList(content); + return new WorkloadNetworkVirtualMachineListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new WorkloadNetworkVirtualMachinesList(content); + return new WorkloadNetworkVirtualMachineListResult(content); } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json + /// string. /// /// a string containing a JSON serialized instance of this model. /// - /// an instance of the model class. + /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -115,11 +116,11 @@ public override string ToString() } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal WorkloadNetworkVirtualMachinesList(global::System.Collections.IDictionary content) + internal WorkloadNetworkVirtualMachineListResult(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -130,21 +131,21 @@ internal WorkloadNetworkVirtualMachinesList(global::System.Collections.IDictiona // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachineTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachineTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal WorkloadNetworkVirtualMachinesList(global::System.Management.Automation.PSObject content) + internal WorkloadNetworkVirtualMachineListResult(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -155,18 +156,18 @@ internal WorkloadNetworkVirtualMachinesList(global::System.Management.Automation // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesListInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesListInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachineTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResultInternal)this).Value = (System.Collections.Generic.List) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToList(__y, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachineTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } } - /// A list of NSX Virtual Machines - [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkVirtualMachinesListTypeConverter))] - public partial interface IWorkloadNetworkVirtualMachinesList + /// The response of a WorkloadNetworkVirtualMachine list operation. + [System.ComponentModel.TypeConverter(typeof(WorkloadNetworkVirtualMachineListResultTypeConverter))] + public partial interface IWorkloadNetworkVirtualMachineListResult { diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineListResult.TypeConverter.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineListResult.TypeConverter.cs new file mode 100644 index 000000000000..c415050ae1c0 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineListResult.TypeConverter.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models +{ + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class WorkloadNetworkVirtualMachineListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return WorkloadNetworkVirtualMachineListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return WorkloadNetworkVirtualMachineListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return WorkloadNetworkVirtualMachineListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachinesList.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineListResult.cs similarity index 55% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachinesList.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineListResult.cs index f96be6312b9b..9fbe6f7da270 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachinesList.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineListResult.cs @@ -7,73 +7,67 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX Virtual Machines - public partial class WorkloadNetworkVirtualMachinesList : - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesList, - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesListInternal + /// The response of a WorkloadNetworkVirtualMachine list operation. + public partial class WorkloadNetworkVirtualMachineListResult : + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResult, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResultInternal { - /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesListInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } - - /// Internal Acessors for Value - System.Collections.Generic.List Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesListInternal.Value { get => this._value; set { {_value = value;} } } - /// Backing field for property. private string _nextLink; - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public string NextLink { get => this._nextLink; } + public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. private System.Collections.Generic.List _value; - /// The items on the page + /// The WorkloadNetworkVirtualMachine items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] - public System.Collections.Generic.List Value { get => this._value; } + public System.Collections.Generic.List Value { get => this._value; set => this._value = value; } - /// Creates an new instance. - public WorkloadNetworkVirtualMachinesList() + /// Creates an new instance. + public WorkloadNetworkVirtualMachineListResult() { } } - /// A list of NSX Virtual Machines - public partial interface IWorkloadNetworkVirtualMachinesList : + /// The response of a WorkloadNetworkVirtualMachine list operation. + public partial interface IWorkloadNetworkVirtualMachineListResult : Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IJsonSerializable { - /// URL to get the next page if any + /// The link to the next page of items [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"URL to get the next page if any", + Create = true, + Update = true, + Description = @"The link to the next page of items", SerializedName = @"nextLink", PossibleTypes = new [] { typeof(string) })] - string NextLink { get; } - /// The items on the page + string NextLink { get; set; } + /// The WorkloadNetworkVirtualMachine items on this page [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, + Required = true, + ReadOnly = false, Read = true, - Create = false, - Update = false, - Description = @"The items on the page", + Create = true, + Update = true, + Description = @"The WorkloadNetworkVirtualMachine items on this page", SerializedName = @"value", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachine) })] - System.Collections.Generic.List Value { get; } + System.Collections.Generic.List Value { get; set; } } - /// A list of NSX Virtual Machines - internal partial interface IWorkloadNetworkVirtualMachinesListInternal + /// The response of a WorkloadNetworkVirtualMachine list operation. + internal partial interface IWorkloadNetworkVirtualMachineListResultInternal { - /// URL to get the next page if any + /// The link to the next page of items string NextLink { get; set; } - /// The items on the page + /// The WorkloadNetworkVirtualMachine items on this page System.Collections.Generic.List Value { get; set; } } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachinesList.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineListResult.json.cs similarity index 81% rename from src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachinesList.json.cs rename to src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineListResult.json.cs index 120573185796..658b41d6137c 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachinesList.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineListResult.json.cs @@ -7,8 +7,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Models { using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; - /// A list of NSX Virtual Machines - public partial class WorkloadNetworkVirtualMachinesList + /// The response of a WorkloadNetworkVirtualMachine list operation. + public partial class WorkloadNetworkVirtualMachineListResult { /// @@ -54,26 +54,27 @@ public partial class WorkloadNetworkVirtualMachinesList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesList FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode node) { - return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkVirtualMachinesList(json) : null; + return node is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json ? new WorkloadNetworkVirtualMachineListResult(json) : null; } /// - /// Serializes this instance of into a into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode) { @@ -85,31 +86,25 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + if (null != this._value) { - if (null != this._value) + var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.XNodeArray(); - foreach( var __x in this._value ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("value",__w); + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); } + container.Add("value",__w); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) - { - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); - } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject into a new instance of . /// /// A Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject instance to deserialize from. - internal WorkloadNetworkVirtualMachinesList(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + internal WorkloadNetworkVirtualMachineListResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineProperties.PowerShell.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineProperties.PowerShell.cs index 3d930a025456..678f435861f5 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineProperties.PowerShell.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineProperties.PowerShell.cs @@ -129,6 +129,10 @@ internal WorkloadNetworkVirtualMachineProperties(global::System.Collections.IDic return; } // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal)this).DisplayName, global::System.Convert.ToString); @@ -154,6 +158,10 @@ internal WorkloadNetworkVirtualMachineProperties(global::System.Management.Autom return; } // actually deserialize + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } if (content.Contains("DisplayName")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal)this).DisplayName, global::System.Convert.ToString); diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineProperties.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineProperties.cs index 47b2b26f2a33..8b90fae6d9f6 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineProperties.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineProperties.cs @@ -20,9 +20,19 @@ public partial class WorkloadNetworkVirtualMachineProperties : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public string DisplayName { get => this._displayName; set => this._displayName = value; } + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + /// Internal Acessors for VMType string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinePropertiesInternal.VMType { get => this._vMType; set { {_vMType = value;} } } + /// Backing field for property. + private string _provisioningState; + + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] + public string ProvisioningState { get => this._provisioningState; } + /// Backing field for property. private string _vMType; @@ -51,6 +61,18 @@ public partial interface IWorkloadNetworkVirtualMachineProperties : SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string DisplayName { get; set; } + /// The provisioning state of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = true, + Read = true, + Create = false, + Update = false, + Description = @"The provisioning state of the resource.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; } /// Virtual machine type. [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -71,6 +93,9 @@ internal partial interface IWorkloadNetworkVirtualMachinePropertiesInternal { /// Display name of the VM. string DisplayName { get; set; } + /// The provisioning state of the resource. + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled", "Building", "Deleting", "Updating")] + string ProvisioningState { get; set; } /// Virtual machine type. [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("REGULAR", "EDGE", "SERVICE")] string VMType { get; set; } diff --git a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineProperties.json.cs b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineProperties.json.cs index e09398f04906..aa9ed1dfdbcd 100644 --- a/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineProperties.json.cs +++ b/src/VMware/VMware.Autorest/generated/api/Models/WorkloadNetworkVirtualMachineProperties.json.cs @@ -86,6 +86,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi { return container; } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeRead)) { @@ -107,6 +111,7 @@ internal WorkloadNetworkVirtualMachineProperties(Microsoft.Azure.PowerShell.Cmdl { return; } + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)_displayName;} {_vMType = If( json?.PropertyT("vmType"), out var __jsonVMType) ? (string)__jsonVMType : (string)_vMType;} AfterFromJson(json); diff --git a/src/VMware/VMware.Autorest/generated/api/VMware.cs b/src/VMware/VMware.Autorest/generated/api/VMware.cs index f57d09a816e0..f363d089a437 100644 --- a/src/VMware/VMware.Autorest/generated/api/VMware.cs +++ b/src/VMware/VMware.Autorest/generated/api/VMware.cs @@ -14,12 +14,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware public partial class VMware { - /// Update a addon in a private cloud - /// The ID of the target subscription. + /// Update a Addon + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the addon for the private cloud - /// A addon in the private cloud + /// Name of the private cloud + /// Name of the addon. + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -31,7 +31,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AddonsCreateOrUpdate(string subscriptionId, string resourceGroupName, string privateCloudName, string addonName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddon body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -66,9 +66,9 @@ public partial class VMware } } - /// Update a addon in a private cloud + /// Update a Addon /// - /// A addon in the private cloud + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -80,7 +80,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AddonsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddon body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -128,9 +128,9 @@ public partial class VMware } } - /// Update a addon in a private cloud + /// Update a Addon /// - /// A addon in the private cloud + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -140,7 +140,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AddonsCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddon body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -188,12 +188,12 @@ public partial class VMware } } - /// Update a addon in a private cloud - /// The ID of the target subscription. + /// Update a Addon + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the addon for the private cloud - /// A addon in the private cloud + /// Name of the private cloud + /// Name of the addon. + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -203,7 +203,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AddonsCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string addonName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddon body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -260,7 +260,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -334,19 +334,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -413,7 +410,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -487,19 +484,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -534,11 +528,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the addon for the private cloud - /// A addon in the private cloud + /// Name of the private cloud + /// Name of the addon. + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -548,11 +542,12 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); + await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(addonName),addonName); await eventListener.AssertRegEx(nameof(addonName), addonName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); @@ -560,11 +555,11 @@ public partial class VMware } } - /// Delete a addon in a private cloud - /// The ID of the target subscription. + /// Delete a Addon + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the addon for the private cloud + /// Name of the addon. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -576,7 +571,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AddonsDelete(string subscriptionId, string resourceGroupName, string privateCloudName, string addonName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -607,7 +602,7 @@ public partial class VMware } } - /// Delete a addon in a private cloud + /// Delete a Addon /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -620,7 +615,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AddonsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -689,7 +684,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -764,19 +759,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -817,10 +809,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the addon for the private cloud + /// Name of the addon. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -830,7 +822,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -841,11 +833,11 @@ public partial class VMware } } - /// Get an addon by name in a private cloud - /// The ID of the target subscription. + /// Get a Addon + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the addon for the private cloud + /// Name of the addon. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -856,7 +848,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AddonsGet(string subscriptionId, string resourceGroupName, string privateCloudName, string addonName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -887,7 +879,7 @@ public partial class VMware } } - /// Get an addon by name in a private cloud + /// Get a Addon /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -899,7 +891,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AddonsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -943,7 +935,7 @@ public partial class VMware } } - /// Get an addon by name in a private cloud + /// Get a Addon /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -953,7 +945,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AddonsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -997,11 +989,11 @@ public partial class VMware } } - /// Get an addon by name in a private cloud - /// The ID of the target subscription. + /// Get a Addon + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the addon for the private cloud + /// Name of the addon. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -1010,7 +1002,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AddonsGetWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string addonName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1155,10 +1147,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation events /// back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the addon for the private cloud + /// Name of the addon. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -1168,7 +1160,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -1179,8 +1171,8 @@ public partial class VMware } } - /// List addons in a private cloud - /// The ID of the target subscription. + /// List Addon resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -1191,9 +1183,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AddonsList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AddonsList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1223,7 +1215,7 @@ public partial class VMware } } - /// List addons in a private cloud + /// List Addon resources by PrivateCloud /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1233,9 +1225,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AddonsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AddonsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1277,17 +1269,17 @@ public partial class VMware } } - /// List addons in a private cloud + /// List Addon resources by PrivateCloud /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that - /// will be complete when handling of the response is completed. + /// A + /// that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AddonsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AddonsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1329,19 +1321,19 @@ public partial class VMware } } - /// List addons in a private cloud - /// The ID of the target subscription. + /// List Addon resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that - /// will be complete when handling of the response is completed. + /// A + /// that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AddonsListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AddonsListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1376,10 +1368,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that - /// will be complete when handling of the response is completed. + /// A + /// that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AddonsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AddonsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1398,7 +1390,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -1441,7 +1433,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AddonsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AddonsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1460,7 +1452,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.AddonListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -1485,7 +1477,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation events /// back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -1497,7 +1489,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -1506,12 +1498,12 @@ public partial class VMware } } - /// Update an ExpressRoute Circuit Authorization in a private cloud - /// The ID of the target subscription. + /// Update a ExpressRouteAuthorization + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the ExpressRoute Circuit Authorization in the private cloud - /// An ExpressRoute Circuit Authorization + /// Name of the private cloud + /// Name of the ExpressRoute Circuit Authorization + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1523,7 +1515,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AuthorizationsCreateOrUpdate(string subscriptionId, string resourceGroupName, string privateCloudName, string authorizationName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1558,9 +1550,9 @@ public partial class VMware } } - /// Update an ExpressRoute Circuit Authorization in a private cloud + /// Update a ExpressRouteAuthorization /// - /// An ExpressRoute Circuit Authorization + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1572,7 +1564,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AuthorizationsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1620,9 +1612,9 @@ public partial class VMware } } - /// Update an ExpressRoute Circuit Authorization in a private cloud + /// Update a ExpressRouteAuthorization /// - /// An ExpressRoute Circuit Authorization + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -1632,7 +1624,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AuthorizationsCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1680,12 +1672,12 @@ public partial class VMware } } - /// Update an ExpressRoute Circuit Authorization in a private cloud - /// The ID of the target subscription. + /// Update a ExpressRouteAuthorization + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the ExpressRoute Circuit Authorization in the private cloud - /// An ExpressRoute Circuit Authorization + /// Name of the private cloud + /// Name of the ExpressRoute Circuit Authorization + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -1695,7 +1687,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AuthorizationsCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string authorizationName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1754,7 +1746,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -1828,19 +1820,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -1907,7 +1896,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -1981,19 +1970,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -2028,11 +2014,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the ExpressRoute Circuit Authorization in the private cloud - /// An ExpressRoute Circuit Authorization + /// Name of the private cloud + /// Name of the ExpressRoute Circuit Authorization + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -2042,11 +2028,12 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); + await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(authorizationName),authorizationName); await eventListener.AssertRegEx(nameof(authorizationName), authorizationName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); @@ -2054,11 +2041,11 @@ public partial class VMware } } - /// Delete an ExpressRoute Circuit Authorization in a private cloud - /// The ID of the target subscription. + /// Delete a ExpressRouteAuthorization + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the ExpressRoute Circuit Authorization in the private cloud + /// Name of the ExpressRoute Circuit Authorization /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2070,7 +2057,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AuthorizationsDelete(string subscriptionId, string resourceGroupName, string privateCloudName, string authorizationName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2101,7 +2088,7 @@ public partial class VMware } } - /// Delete an ExpressRoute Circuit Authorization in a private cloud + /// Delete a ExpressRouteAuthorization /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -2114,7 +2101,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AuthorizationsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2183,7 +2170,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -2258,19 +2245,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -2311,10 +2295,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the ExpressRoute Circuit Authorization in the private cloud + /// Name of the ExpressRoute Circuit Authorization /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -2324,7 +2308,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -2335,11 +2319,11 @@ public partial class VMware } } - /// Get an ExpressRoute Circuit Authorization by name in a private cloud - /// The ID of the target subscription. + /// Get a ExpressRouteAuthorization + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the ExpressRoute Circuit Authorization in the private cloud + /// Name of the ExpressRoute Circuit Authorization /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2350,7 +2334,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AuthorizationsGet(string subscriptionId, string resourceGroupName, string privateCloudName, string authorizationName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2381,7 +2365,7 @@ public partial class VMware } } - /// Get an ExpressRoute Circuit Authorization by name in a private cloud + /// Get a ExpressRouteAuthorization /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2393,7 +2377,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AuthorizationsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2437,7 +2421,7 @@ public partial class VMware } } - /// Get an ExpressRoute Circuit Authorization by name in a private cloud + /// Get a ExpressRouteAuthorization /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -2447,7 +2431,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AuthorizationsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2491,11 +2475,11 @@ public partial class VMware } } - /// Get an ExpressRoute Circuit Authorization by name in a private cloud - /// The ID of the target subscription. + /// Get a ExpressRouteAuthorization + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the ExpressRoute Circuit Authorization in the private cloud + /// Name of the ExpressRoute Circuit Authorization /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -2504,7 +2488,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task AuthorizationsGetWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string authorizationName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2649,10 +2633,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the ExpressRoute Circuit Authorization in the private cloud + /// Name of the ExpressRoute Circuit Authorization /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -2662,7 +2646,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -2673,8 +2657,8 @@ public partial class VMware } } - /// List ExpressRoute Circuit Authorizations in a private cloud - /// The ID of the target subscription. + /// List ExpressRouteAuthorization resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -2685,9 +2669,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AuthorizationsList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AuthorizationsList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2717,7 +2701,7 @@ public partial class VMware } } - /// List ExpressRoute Circuit Authorizations in a private cloud + /// List ExpressRouteAuthorization resources by PrivateCloud /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2727,9 +2711,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AuthorizationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AuthorizationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2771,17 +2755,17 @@ public partial class VMware } } - /// List ExpressRoute Circuit Authorizations in a private cloud + /// List ExpressRouteAuthorization resources by PrivateCloud /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AuthorizationsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AuthorizationsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2823,19 +2807,19 @@ public partial class VMware } } - /// List ExpressRoute Circuit Authorizations in a private cloud - /// The ID of the target subscription. + /// List ExpressRouteAuthorization resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task AuthorizationsListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task AuthorizationsListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2870,10 +2854,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AuthorizationsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AuthorizationsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2892,7 +2876,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -2935,7 +2919,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task AuthorizationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task AuthorizationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2954,7 +2938,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ExpressRouteAuthorizationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -2979,7 +2963,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -2991,7 +2975,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -3000,12 +2984,12 @@ public partial class VMware } } - /// Update a cloud link in a private cloud - /// The ID of the target subscription. + /// Update a CloudLink + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the cloud link resource - /// A cloud link in the private cloud + /// Name of the private cloud + /// Name of the cloud link. + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3017,7 +3001,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task CloudLinksCreateOrUpdate(string subscriptionId, string resourceGroupName, string privateCloudName, string cloudLinkName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3052,9 +3036,9 @@ public partial class VMware } } - /// Update a cloud link in a private cloud + /// Update a CloudLink /// - /// A cloud link in the private cloud + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3066,7 +3050,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task CloudLinksCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3114,9 +3098,9 @@ public partial class VMware } } - /// Update a cloud link in a private cloud + /// Update a CloudLink /// - /// A cloud link in the private cloud + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -3126,7 +3110,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task CloudLinksCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3174,12 +3158,12 @@ public partial class VMware } } - /// Update a cloud link in a private cloud - /// The ID of the target subscription. + /// Update a CloudLink + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the cloud link resource - /// A cloud link in the private cloud + /// Name of the private cloud + /// Name of the cloud link. + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -3189,7 +3173,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task CloudLinksCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string cloudLinkName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3246,7 +3230,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -3320,19 +3304,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -3399,7 +3380,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -3473,19 +3454,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -3520,11 +3498,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the cloud link resource - /// A cloud link in the private cloud + /// Name of the private cloud + /// Name of the cloud link. + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -3534,11 +3512,12 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); + await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(cloudLinkName),cloudLinkName); await eventListener.AssertRegEx(nameof(cloudLinkName), cloudLinkName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); @@ -3546,11 +3525,11 @@ public partial class VMware } } - /// Delete a cloud link in a private cloud - /// The ID of the target subscription. + /// Delete a CloudLink + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cloud link resource + /// Name of the cloud link. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3562,7 +3541,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task CloudLinksDelete(string subscriptionId, string resourceGroupName, string privateCloudName, string cloudLinkName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3593,7 +3572,7 @@ public partial class VMware } } - /// Delete a cloud link in a private cloud + /// Delete a CloudLink /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -3606,7 +3585,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task CloudLinksDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3675,7 +3654,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -3750,19 +3729,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -3803,10 +3779,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cloud link resource + /// Name of the cloud link. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -3816,7 +3792,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -3827,11 +3803,11 @@ public partial class VMware } } - /// Get an cloud link by name in a private cloud - /// The ID of the target subscription. + /// Get a CloudLink + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cloud link resource + /// Name of the cloud link. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3842,7 +3818,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task CloudLinksGet(string subscriptionId, string resourceGroupName, string privateCloudName, string cloudLinkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3873,7 +3849,7 @@ public partial class VMware } } - /// Get an cloud link by name in a private cloud + /// Get a CloudLink /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3885,7 +3861,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task CloudLinksGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3929,7 +3905,7 @@ public partial class VMware } } - /// Get an cloud link by name in a private cloud + /// Get a CloudLink /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -3939,7 +3915,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task CloudLinksGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3983,11 +3959,11 @@ public partial class VMware } } - /// Get an cloud link by name in a private cloud - /// The ID of the target subscription. + /// Get a CloudLink + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cloud link resource + /// Name of the cloud link. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -3996,7 +3972,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task CloudLinksGetWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string cloudLinkName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4141,10 +4117,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cloud link resource + /// Name of the cloud link. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -4154,7 +4130,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -4165,8 +4141,8 @@ public partial class VMware } } - /// List cloud link in a private cloud - /// The ID of the target subscription. + /// List CloudLink resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -4177,9 +4153,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudLinksList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudLinksList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4209,7 +4185,7 @@ public partial class VMware } } - /// List cloud link in a private cloud + /// List CloudLink resources by PrivateCloud /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4219,9 +4195,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudLinksListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudLinksListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4263,17 +4239,17 @@ public partial class VMware } } - /// List cloud link in a private cloud + /// List CloudLink resources by PrivateCloud /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A - /// that will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudLinksListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudLinksListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4315,19 +4291,19 @@ public partial class VMware } } - /// List cloud link in a private cloud - /// The ID of the target subscription. + /// List CloudLink resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A - /// that will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task CloudLinksListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task CloudLinksListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4362,10 +4338,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A - /// that will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudLinksListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudLinksListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4384,7 +4360,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -4427,7 +4403,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task CloudLinksList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task CloudLinksList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4446,7 +4422,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.CloudLinkListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -4471,7 +4447,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -4483,7 +4459,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -4492,12 +4468,12 @@ public partial class VMware } } - /// Update a cluster in a private cloud - /// The ID of the target subscription. + /// Update a Cluster + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the cluster in the private cloud - /// A cluster in the private cloud + /// Name of the private cloud + /// Name of the cluster + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4509,7 +4485,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersCreateOrUpdate(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4544,9 +4520,9 @@ public partial class VMware } } - /// Update a cluster in a private cloud + /// Update a Cluster /// - /// A cluster in the private cloud + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4558,7 +4534,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4606,9 +4582,9 @@ public partial class VMware } } - /// Update a cluster in a private cloud + /// Update a Cluster /// - /// A cluster in the private cloud + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -4618,7 +4594,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4666,12 +4642,12 @@ public partial class VMware } } - /// Update a cluster in a private cloud - /// The ID of the target subscription. + /// Update a Cluster + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the cluster in the private cloud - /// A cluster in the private cloud + /// Name of the private cloud + /// Name of the cluster + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -4681,7 +4657,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4738,7 +4714,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -4812,19 +4788,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -4891,7 +4864,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -4965,19 +4938,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -5012,11 +4982,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the cluster in the private cloud - /// A cluster in the private cloud + /// Name of the private cloud + /// Name of the cluster + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -5026,11 +4996,12 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); + await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertRegEx(nameof(clusterName), clusterName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); @@ -5038,11 +5009,11 @@ public partial class VMware } } - /// Delete a cluster in a private cloud - /// The ID of the target subscription. + /// Delete a Cluster + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5054,7 +5025,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersDelete(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5085,7 +5056,7 @@ public partial class VMware } } - /// Delete a cluster in a private cloud + /// Delete a Cluster /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -5098,7 +5069,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5167,7 +5138,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -5242,19 +5213,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -5295,10 +5263,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -5308,7 +5276,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -5319,11 +5287,11 @@ public partial class VMware } } - /// Get a cluster by name in a private cloud - /// The ID of the target subscription. + /// Get a Cluster + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5334,7 +5302,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersGet(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5365,7 +5333,7 @@ public partial class VMware } } - /// Get a cluster by name in a private cloud + /// Get a Cluster /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5377,7 +5345,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5421,7 +5389,7 @@ public partial class VMware } } - /// Get a cluster by name in a private cloud + /// Get a Cluster /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -5431,7 +5399,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5475,11 +5443,11 @@ public partial class VMware } } - /// Get a cluster by name in a private cloud - /// The ID of the target subscription. + /// Get a Cluster + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -5488,7 +5456,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersGetWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5633,10 +5601,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation events /// back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -5646,7 +5614,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -5657,8 +5625,8 @@ public partial class VMware } } - /// List clusters in a private cloud - /// The ID of the target subscription. + /// List Cluster resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -5669,9 +5637,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ClustersList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ClustersList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5701,7 +5669,7 @@ public partial class VMware } } - /// List clusters in a private cloud + /// List Cluster resources by PrivateCloud /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5711,9 +5679,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ClustersListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ClustersListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5755,17 +5723,17 @@ public partial class VMware } } - /// List clusters in a private cloud + /// List Cluster resources by PrivateCloud /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that - /// will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ClustersListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ClustersListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5807,19 +5775,19 @@ public partial class VMware } } - /// List clusters in a private cloud - /// The ID of the target subscription. + /// List Cluster resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that - /// will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ClustersListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ClustersListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5854,10 +5822,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that - /// will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ClustersListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ClustersListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5876,7 +5844,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -5910,10 +5878,10 @@ public partial class VMware } /// List hosts by zone in a cluster - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5924,7 +5892,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersListZones(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5968,7 +5936,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersListZonesViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6023,7 +5991,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersListZonesViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6069,10 +6037,10 @@ public partial class VMware } /// List hosts by zone in a cluster - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -6081,7 +6049,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersListZonesWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6227,10 +6195,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -6240,7 +6208,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -6261,7 +6229,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ClustersList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ClustersList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6280,7 +6248,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ClusterListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -6305,7 +6273,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -6317,7 +6285,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -6326,12 +6294,12 @@ public partial class VMware } } - /// Update a cluster in a private cloud - /// The ID of the target subscription. + /// Update a Cluster + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// The cluster properties to be updated + /// Name of the cluster + /// The cluster properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -6343,7 +6311,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersUpdate(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6378,9 +6346,9 @@ public partial class VMware } } - /// Update a cluster in a private cloud + /// Update a Cluster /// - /// The cluster properties to be updated + /// The cluster properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -6392,7 +6360,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6440,9 +6408,9 @@ public partial class VMware } } - /// Update a cluster in a private cloud + /// Update a Cluster /// - /// The cluster properties to be updated + /// The cluster properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -6452,7 +6420,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6500,12 +6468,12 @@ public partial class VMware } } - /// Update a cluster in a private cloud - /// The ID of the target subscription. + /// Update a Cluster + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// The cluster properties to be updated + /// Name of the cluster + /// The cluster properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -6515,7 +6483,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ClustersUpdateWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6572,7 +6540,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -6646,19 +6615,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -6725,7 +6691,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -6799,19 +6766,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -6846,11 +6810,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// The cluster properties to be updated + /// Name of the cluster + /// The cluster properties to be updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -6860,7 +6824,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -6873,13 +6837,13 @@ public partial class VMware } } - /// Update a datastore in a private cloud cluster - /// The ID of the target subscription. + /// Update a Datastore + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the datastore in the private cloud cluster - /// A datastore in a private cloud cluster + /// Name of the cluster + /// Name of the datastore + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -6891,7 +6855,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task DatastoresCreateOrUpdate(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6928,9 +6892,9 @@ public partial class VMware } } - /// Update a datastore in a private cloud cluster + /// Update a Datastore /// - /// A datastore in a private cloud cluster + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -6942,7 +6906,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task DatastoresCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6993,9 +6957,9 @@ public partial class VMware } } - /// Update a datastore in a private cloud cluster + /// Update a Datastore /// - /// A datastore in a private cloud cluster + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -7005,7 +6969,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task DatastoresCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7056,13 +7020,13 @@ public partial class VMware } } - /// Update a datastore in a private cloud cluster - /// The ID of the target subscription. + /// Update a Datastore + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the datastore in the private cloud cluster - /// A datastore in a private cloud cluster + /// Name of the cluster + /// Name of the datastore + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -7072,7 +7036,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task DatastoresCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7131,7 +7095,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -7205,19 +7169,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -7284,7 +7245,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -7358,19 +7319,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -7405,12 +7363,12 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the datastore in the private cloud cluster - /// A datastore in a private cloud cluster + /// Name of the cluster + /// Name of the datastore + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -7420,7 +7378,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -7435,12 +7393,12 @@ public partial class VMware } } - /// Delete a datastore in a private cloud cluster - /// The ID of the target subscription. + /// Delete a Datastore + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the datastore in the private cloud cluster + /// Name of the cluster + /// Name of the datastore /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -7452,7 +7410,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task DatastoresDelete(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7485,7 +7443,7 @@ public partial class VMware } } - /// Delete a datastore in a private cloud cluster + /// Delete a Datastore /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -7498,7 +7456,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task DatastoresDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7570,7 +7528,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -7645,19 +7603,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -7698,11 +7653,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the datastore in the private cloud cluster + /// Name of the cluster + /// Name of the datastore /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -7712,7 +7667,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -7725,12 +7680,12 @@ public partial class VMware } } - /// Get a datastore in a private cloud cluster - /// The ID of the target subscription. + /// Get a Datastore + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the datastore in the private cloud cluster + /// Name of the cluster + /// Name of the datastore /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -7741,7 +7696,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task DatastoresGet(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7774,7 +7729,7 @@ public partial class VMware } } - /// Get a datastore in a private cloud cluster + /// Get a Datastore /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -7786,7 +7741,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task DatastoresGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7833,7 +7788,7 @@ public partial class VMware } } - /// Get a datastore in a private cloud cluster + /// Get a Datastore /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -7843,7 +7798,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task DatastoresGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7890,12 +7845,12 @@ public partial class VMware } } - /// Get a datastore in a private cloud cluster - /// The ID of the target subscription. + /// Get a Datastore + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the datastore in the private cloud cluster + /// Name of the cluster + /// Name of the datastore /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -7904,7 +7859,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task DatastoresGetWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string datastoreName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8051,11 +8006,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the datastore in the private cloud cluster + /// Name of the cluster + /// Name of the datastore /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -8065,7 +8020,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -8078,11 +8033,11 @@ public partial class VMware } } - /// List datastores in a private cloud cluster - /// The ID of the target subscription. + /// List Datastore resources by Cluster + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -8091,9 +8046,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatastoresList(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatastoresList(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8125,7 +8080,7 @@ public partial class VMware } } - /// List datastores in a private cloud cluster + /// List Datastore resources by Cluster /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -8135,9 +8090,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatastoresListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatastoresListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8182,17 +8137,17 @@ public partial class VMware } } - /// List datastores in a private cloud cluster + /// List Datastore resources by Cluster /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A - /// that will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatastoresListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatastoresListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8237,20 +8192,20 @@ public partial class VMware } } - /// List datastores in a private cloud cluster - /// The ID of the target subscription. + /// List Datastore resources by Cluster + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A - /// that will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatastoresListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatastoresListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8287,10 +8242,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A - /// that will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatastoresListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatastoresListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8309,7 +8264,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DatastoreList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DatastoreListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -8352,7 +8307,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatastoresList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatastoresList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8371,7 +8326,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DatastoreList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.DatastoreListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -8396,10 +8351,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -8409,7 +8364,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -8420,12 +8375,12 @@ public partial class VMware } } - /// Update a global reach connection in a private cloud - /// The ID of the target subscription. + /// Update a GlobalReachConnection + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the global reach connection in the private cloud - /// A global reach connection in the private cloud + /// Name of the private cloud + /// Name of the global reach connection + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -8437,7 +8392,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task GlobalReachConnectionsCreateOrUpdate(string subscriptionId, string resourceGroupName, string privateCloudName, string globalReachConnectionName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8472,9 +8427,9 @@ public partial class VMware } } - /// Update a global reach connection in a private cloud + /// Update a GlobalReachConnection /// - /// A global reach connection in the private cloud + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -8486,7 +8441,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task GlobalReachConnectionsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8534,9 +8489,9 @@ public partial class VMware } } - /// Update a global reach connection in a private cloud + /// Update a GlobalReachConnection /// - /// A global reach connection in the private cloud + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -8546,7 +8501,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task GlobalReachConnectionsCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8594,12 +8549,12 @@ public partial class VMware } } - /// Update a global reach connection in a private cloud - /// The ID of the target subscription. + /// Update a GlobalReachConnection + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the global reach connection in the private cloud - /// A global reach connection in the private cloud + /// Name of the private cloud + /// Name of the global reach connection + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -8609,7 +8564,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task GlobalReachConnectionsCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string globalReachConnectionName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8668,7 +8623,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -8742,19 +8697,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -8823,7 +8775,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -8897,19 +8849,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -8944,11 +8893,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but /// you will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the global reach connection in the private cloud - /// A global reach connection in the private cloud + /// Name of the private cloud + /// Name of the global reach connection + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -8958,11 +8907,12 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); + await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(globalReachConnectionName),globalReachConnectionName); await eventListener.AssertRegEx(nameof(globalReachConnectionName), globalReachConnectionName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); @@ -8970,11 +8920,11 @@ public partial class VMware } } - /// Delete a global reach connection in a private cloud - /// The ID of the target subscription. + /// Delete a GlobalReachConnection + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the global reach connection in the private cloud + /// Name of the global reach connection /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -8986,7 +8936,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task GlobalReachConnectionsDelete(string subscriptionId, string resourceGroupName, string privateCloudName, string globalReachConnectionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9017,7 +8967,7 @@ public partial class VMware } } - /// Delete a global reach connection in a private cloud + /// Delete a GlobalReachConnection /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -9030,7 +8980,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task GlobalReachConnectionsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9099,7 +9049,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -9174,19 +9124,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -9227,10 +9174,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the global reach connection in the private cloud + /// Name of the global reach connection /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -9240,7 +9187,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -9251,11 +9198,11 @@ public partial class VMware } } - /// Get a global reach connection by name in a private cloud - /// The ID of the target subscription. + /// Get a GlobalReachConnection + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the global reach connection in the private cloud + /// Name of the global reach connection /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -9266,7 +9213,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task GlobalReachConnectionsGet(string subscriptionId, string resourceGroupName, string privateCloudName, string globalReachConnectionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9297,7 +9244,7 @@ public partial class VMware } } - /// Get a global reach connection by name in a private cloud + /// Get a GlobalReachConnection /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -9309,7 +9256,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task GlobalReachConnectionsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9353,7 +9300,7 @@ public partial class VMware } } - /// Get a global reach connection by name in a private cloud + /// Get a GlobalReachConnection /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -9363,7 +9310,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task GlobalReachConnectionsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9407,11 +9354,11 @@ public partial class VMware } } - /// Get a global reach connection by name in a private cloud - /// The ID of the target subscription. + /// Get a GlobalReachConnection + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the global reach connection in the private cloud + /// Name of the global reach connection /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -9420,7 +9367,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task GlobalReachConnectionsGetWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string globalReachConnectionName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9567,10 +9514,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the global reach connection in the private cloud + /// Name of the global reach connection /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -9580,7 +9527,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -9591,8 +9538,8 @@ public partial class VMware } } - /// List global reach connections in a private cloud - /// The ID of the target subscription. + /// List GlobalReachConnection resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -9603,9 +9550,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GlobalReachConnectionsList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task GlobalReachConnectionsList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9635,7 +9582,7 @@ public partial class VMware } } - /// List global reach connections in a private cloud + /// List GlobalReachConnection resources by PrivateCloud /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -9645,9 +9592,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GlobalReachConnectionsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task GlobalReachConnectionsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9689,17 +9636,17 @@ public partial class VMware } } - /// List global reach connections in a private cloud + /// List GlobalReachConnection resources by PrivateCloud /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GlobalReachConnectionsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task GlobalReachConnectionsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9741,19 +9688,19 @@ public partial class VMware } } - /// List global reach connections in a private cloud - /// The ID of the target subscription. + /// List GlobalReachConnection resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task GlobalReachConnectionsListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task GlobalReachConnectionsListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9790,10 +9737,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task GlobalReachConnectionsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task GlobalReachConnectionsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9812,7 +9759,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnectionList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnectionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -9855,7 +9802,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task GlobalReachConnectionsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task GlobalReachConnectionsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9874,7 +9821,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnectionList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.GlobalReachConnectionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -9899,7 +9846,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -9911,7 +9858,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -9920,12 +9867,12 @@ public partial class VMware } } - /// Update an activation key for on-premises HCX site - /// The ID of the target subscription. + /// Update a HcxEnterpriseSite + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the HCX Enterprise Site in the private cloud - /// The HCX Enterprise Site + /// Name of the private cloud + /// Name of the HCX Enterprise Site + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 201 (Created). /// a delegate that is called when the remote service returns default (any response code not handled @@ -9938,7 +9885,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task HcxEnterpriseSitesCreateOrUpdate(string subscriptionId, string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSite body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9973,9 +9920,9 @@ public partial class VMware } } - /// Update an activation key for on-premises HCX site + /// Update a HcxEnterpriseSite /// - /// The HCX Enterprise Site + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 201 (Created). /// a delegate that is called when the remote service returns default (any response code not handled @@ -9988,7 +9935,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task HcxEnterpriseSitesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSite body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onCreated, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10036,9 +9983,9 @@ public partial class VMware } } - /// Update an activation key for on-premises HCX site + /// Update a HcxEnterpriseSite /// - /// The HCX Enterprise Site + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -10048,7 +9995,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task HcxEnterpriseSitesCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSite body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10096,12 +10043,12 @@ public partial class VMware } } - /// Update an activation key for on-premises HCX site - /// The ID of the target subscription. + /// Update a HcxEnterpriseSite + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the HCX Enterprise Site in the private cloud - /// The HCX Enterprise Site + /// Name of the private cloud + /// Name of the HCX Enterprise Site + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -10111,7 +10058,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task HcxEnterpriseSitesCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IHcxEnterpriseSite body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10275,11 +10222,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the HCX Enterprise Site in the private cloud - /// The HCX Enterprise Site + /// Name of the private cloud + /// Name of the HCX Enterprise Site + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -10289,11 +10236,12 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); + await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(hcxEnterpriseSiteName),hcxEnterpriseSiteName); await eventListener.AssertRegEx(nameof(hcxEnterpriseSiteName), hcxEnterpriseSiteName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); @@ -10301,11 +10249,11 @@ public partial class VMware } } - /// Delete HCX on-premises key in a private cloud - /// The ID of the target subscription. + /// Delete a HcxEnterpriseSite + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the HCX Enterprise Site in the private cloud + /// Name of the HCX Enterprise Site /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -10317,7 +10265,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task HcxEnterpriseSitesDelete(string subscriptionId, string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10348,7 +10296,7 @@ public partial class VMware } } - /// Delete HCX on-premises key in a private cloud + /// Delete a HcxEnterpriseSite /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -10361,7 +10309,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task HcxEnterpriseSitesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10466,10 +10414,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the HCX Enterprise Site in the private cloud + /// Name of the HCX Enterprise Site /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -10479,7 +10427,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -10490,11 +10438,11 @@ public partial class VMware } } - /// Get an HCX on-premises key by name in a private cloud - /// The ID of the target subscription. + /// Get a HcxEnterpriseSite + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the HCX Enterprise Site in the private cloud + /// Name of the HCX Enterprise Site /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -10505,7 +10453,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task HcxEnterpriseSitesGet(string subscriptionId, string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10536,7 +10484,7 @@ public partial class VMware } } - /// Get an HCX on-premises key by name in a private cloud + /// Get a HcxEnterpriseSite /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -10548,7 +10496,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task HcxEnterpriseSitesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10592,7 +10540,7 @@ public partial class VMware } } - /// Get an HCX on-premises key by name in a private cloud + /// Get a HcxEnterpriseSite /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -10602,7 +10550,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task HcxEnterpriseSitesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10646,11 +10594,11 @@ public partial class VMware } } - /// Get an HCX on-premises key by name in a private cloud - /// The ID of the target subscription. + /// Get a HcxEnterpriseSite + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the HCX Enterprise Site in the private cloud + /// Name of the HCX Enterprise Site /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -10659,7 +10607,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task HcxEnterpriseSitesGetWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string hcxEnterpriseSiteName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10804,10 +10752,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the HCX Enterprise Site in the private cloud + /// Name of the HCX Enterprise Site /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -10817,7 +10765,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -10828,8 +10776,8 @@ public partial class VMware } } - /// List HCX on-premises key in a private cloud - /// The ID of the target subscription. + /// List HcxEnterpriseSite resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -10840,9 +10788,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HcxEnterpriseSitesList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HcxEnterpriseSitesList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10872,7 +10820,7 @@ public partial class VMware } } - /// List HCX on-premises key in a private cloud + /// List HcxEnterpriseSite resources by PrivateCloud /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -10882,9 +10830,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HcxEnterpriseSitesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HcxEnterpriseSitesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10926,17 +10874,17 @@ public partial class VMware } } - /// List HCX on-premises key in a private cloud + /// List HcxEnterpriseSite resources by PrivateCloud /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HcxEnterpriseSitesListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HcxEnterpriseSitesListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10978,19 +10926,19 @@ public partial class VMware } } - /// List HCX on-premises key in a private cloud - /// The ID of the target subscription. + /// List HcxEnterpriseSite resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task HcxEnterpriseSitesListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task HcxEnterpriseSitesListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11025,10 +10973,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task HcxEnterpriseSitesListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task HcxEnterpriseSitesListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11047,7 +10995,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSiteList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSiteListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -11090,7 +11038,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task HcxEnterpriseSitesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task HcxEnterpriseSitesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11109,7 +11057,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSiteList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.HcxEnterpriseSiteListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -11134,7 +11082,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -11146,7 +11094,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -11155,20 +11103,23 @@ public partial class VMware } } - /// Return quota for subscription by region - /// The ID of the target subscription. - /// Azure region + /// Update a IscsiPath + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LocationsCheckQuotaAvailability(string subscriptionId, string location, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task IscsiPathsCreateOrUpdate(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11176,9 +11127,11 @@ public partial class VMware var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.AVS/locations/" - + global::System.Uri.EscapeDataString(location) - + "/checkQuotaAvailability" + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.AVS/privateClouds/" + + global::System.Uri.EscapeDataString(privateCloudName) + + "/iscsiPaths/default" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -11187,49 +11140,58 @@ public partial class VMware // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LocationsCheckQuotaAvailability_Call (request, onOk,onDefault,eventListener,sender); + await this.IscsiPathsCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); } } - /// Return quota for subscription by region + /// Update a IscsiPath /// + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LocationsCheckQuotaAvailabilityViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task IscsiPathsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.AVS/locations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AVS/privateClouds/(?[^/]+)/iscsiPaths/default$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; - var location = _match.Groups["location"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var privateCloudName = _match.Groups["privateCloudName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/providers/Microsoft.AVS/locations/" - + location - + "/checkQuotaAvailability" + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.AVS/privateClouds/" + + privateCloudName + + "/iscsiPaths/default" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -11238,47 +11200,56 @@ public partial class VMware // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.LocationsCheckQuotaAvailability_Call (request, onOk,onDefault,eventListener,sender); + await this.IscsiPathsCreateOrUpdate_Call (request, onOk,onDefault,eventListener,sender); } } - /// Return quota for subscription by region + /// Update a IscsiPath /// + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// - /// A that will - /// be complete when handling of the response is completed. + /// A that + /// will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LocationsCheckQuotaAvailabilityViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task IscsiPathsCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.AVS/locations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AVS/privateClouds/(?[^/]+)/iscsiPaths/default$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; - var location = _match.Groups["location"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var privateCloudName = _match.Groups["privateCloudName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/providers/Microsoft.AVS/locations/" - + location - + "/checkQuotaAvailability" + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.AVS/privateClouds/" + + privateCloudName + + "/iscsiPaths/default" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -11287,27 +11258,34 @@ public partial class VMware // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } // make the call - return await this.LocationsCheckQuotaAvailabilityWithResult_Call (request, eventListener,sender); + return await this.IscsiPathsCreateOrUpdateWithResult_Call (request, eventListener,sender); } } - /// Return quota for subscription by region - /// The ID of the target subscription. - /// Azure region + /// Update a IscsiPath + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// - /// A that will - /// be complete when handling of the response is completed. + /// A that + /// will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task LocationsCheckQuotaAvailabilityWithResult(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task IscsiPathsCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11315,9 +11293,11 @@ public partial class VMware var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.AVS/locations/" - + global::System.Uri.EscapeDataString(location) - + "/checkQuotaAvailability" + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.AVS/privateClouds/" + + global::System.Uri.EscapeDataString(privateCloudName) + + "/iscsiPaths/default" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -11326,26 +11306,28 @@ public partial class VMware // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } // make the call - return await this.LocationsCheckQuotaAvailabilityWithResult_Call (request, eventListener,sender); + return await this.IscsiPathsCreateOrUpdateWithResult_Call (request, eventListener,sender); } } - /// - /// Actual wire call for method. - /// + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will - /// be complete when handling of the response is completed. + /// A that + /// will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LocationsCheckQuotaAvailabilityWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task IscsiPathsCreateOrUpdateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11354,8 +11336,96 @@ public partial class VMware { var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; + } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -11364,7 +11434,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Quota.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPath.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -11397,7 +11467,7 @@ public partial class VMware } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -11407,7 +11477,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task LocationsCheckQuotaAvailability_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task IscsiPathsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11416,8 +11486,96 @@ public partial class VMware { var sendTask = sender.SendAsync(request, eventListener); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -11426,7 +11584,1254 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Quota.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPath.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud + /// Resource create parameters. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task IscsiPathsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); + await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Delete a IscsiPath + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task IscsiPathsDelete(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-09-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.AVS/privateClouds/" + + global::System.Uri.EscapeDataString(privateCloudName) + + "/iscsiPaths/default" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.IscsiPathsDelete_Call (request, onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Delete a IscsiPath + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task IscsiPathsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-09-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AVS/privateClouds/(?[^/]+)/iscsiPaths/default$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var privateCloudName = _match.Groups["privateCloudName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.AVS/privateClouds/" + + privateCloudName + + "/iscsiPaths/default" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.IscsiPathsDelete_Call (request, onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task IscsiPathsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task IscsiPathsDelete_Validate(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); + await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); + } + } + + /// Get a IscsiPath + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task IscsiPathsGet(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-09-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.AVS/privateClouds/" + + global::System.Uri.EscapeDataString(privateCloudName) + + "/iscsiPaths/default" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.IscsiPathsGet_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Get a IscsiPath + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task IscsiPathsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-09-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AVS/privateClouds/(?[^/]+)/iscsiPaths/default$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var privateCloudName = _match.Groups["privateCloudName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.AVS/privateClouds/" + + privateCloudName + + "/iscsiPaths/default" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.IscsiPathsGet_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Get a IscsiPath + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that + /// will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task IscsiPathsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-09-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AVS/privateClouds/(?[^/]+)/iscsiPaths/default$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var privateCloudName = _match.Groups["privateCloudName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.AVS/privateClouds/" + + privateCloudName + + "/iscsiPaths/default" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.IscsiPathsGetWithResult_Call (request, eventListener,sender); + } + } + + /// Get a IscsiPath + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that + /// will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task IscsiPathsGetWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-09-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.AVS/privateClouds/" + + global::System.Uri.EscapeDataString(privateCloudName) + + "/iscsiPaths/default" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.IscsiPathsGetWithResult_Call (request, eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that + /// will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task IscsiPathsGetWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPath.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task IscsiPathsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPath.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task IscsiPathsGet_Validate(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); + await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); + } + } + + /// List IscsiPath resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task IscsiPathsListByPrivateCloud(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-09-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.AVS/privateClouds/" + + global::System.Uri.EscapeDataString(privateCloudName) + + "/iscsiPaths" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.IscsiPathsListByPrivateCloud_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// List IscsiPath resources by PrivateCloud + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task IscsiPathsListByPrivateCloudViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-09-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AVS/privateClouds/(?[^/]+)/iscsiPaths$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var privateCloudName = _match.Groups["privateCloudName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.AVS/privateClouds/" + + privateCloudName + + "/iscsiPaths" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.IscsiPathsListByPrivateCloud_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// List IscsiPath resources by PrivateCloud + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task IscsiPathsListByPrivateCloudViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-09-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AVS/privateClouds/(?[^/]+)/iscsiPaths$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var privateCloudName = _match.Groups["privateCloudName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.AVS/privateClouds/" + + privateCloudName + + "/iscsiPaths" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.IscsiPathsListByPrivateCloudWithResult_Call (request, eventListener,sender); + } + } + + /// List IscsiPath resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task IscsiPathsListByPrivateCloudWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-09-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.AVS/privateClouds/" + + global::System.Uri.EscapeDataString(privateCloudName) + + "/iscsiPaths" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.IscsiPathsListByPrivateCloudWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task IscsiPathsListByPrivateCloudWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPathListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task IscsiPathsListByPrivateCloud_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPathListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// Name of the private cloud + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task IscsiPathsListByPrivateCloud_Validate(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); + await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); + } + } + + /// Return quota for subscription by region + /// The ID of the target subscription. The value must be an UUID. + /// The name of the Azure region. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LocationsCheckQuotaAvailability(string subscriptionId, string location, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-09-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.AVS/locations/" + + global::System.Uri.EscapeDataString(location) + + "/checkQuotaAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.LocationsCheckQuotaAvailability_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Return quota for subscription by region + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LocationsCheckQuotaAvailabilityViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-09-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.AVS/locations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var location = _match.Groups["location"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.AVS/locations/" + + location + + "/checkQuotaAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.LocationsCheckQuotaAvailability_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Return quota for subscription by region + /// + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will + /// be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LocationsCheckQuotaAvailabilityViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-09-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.AVS/locations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var location = _match.Groups["location"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.AVS/locations/" + + location + + "/checkQuotaAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.LocationsCheckQuotaAvailabilityWithResult_Call (request, eventListener,sender); + } + } + + /// Return quota for subscription by region + /// The ID of the target subscription. The value must be an UUID. + /// The name of the Azure region. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will + /// be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task LocationsCheckQuotaAvailabilityWithResult(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-09-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.AVS/locations/" + + global::System.Uri.EscapeDataString(location) + + "/checkQuotaAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.LocationsCheckQuotaAvailabilityWithResult_Call (request, eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will + /// be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task LocationsCheckQuotaAvailabilityWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Quota.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task LocationsCheckQuotaAvailability_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Quota.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -11451,8 +12856,8 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. - /// Azure region + /// The ID of the target subscription. The value must be an UUID. + /// The name of the Azure region. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -11462,15 +12867,16 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); } } /// Return trial status for subscription by region - /// The ID of the target subscription. - /// Azure region - /// The sku to check for trial availability + /// The ID of the target subscription. The value must be an UUID. + /// The name of the Azure region. + /// Optionally, check for a specific SKU /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -11482,7 +12888,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task LocationsCheckTrialAvailability(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11516,7 +12922,7 @@ public partial class VMware /// Return trial status for subscription by region /// - /// The sku to check for trial availability + /// Optionally, check for a specific SKU /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -11528,7 +12934,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task LocationsCheckTrialAvailabilityViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11573,7 +12979,7 @@ public partial class VMware /// Return trial status for subscription by region /// - /// The sku to check for trial availability + /// Optionally, check for a specific SKU /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -11583,7 +12989,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task LocationsCheckTrialAvailabilityViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11627,9 +13033,9 @@ public partial class VMware } /// Return trial status for subscription by region - /// The ID of the target subscription. - /// Azure region - /// The sku to check for trial availability + /// The ID of the target subscription. The value must be an UUID. + /// The name of the Azure region. + /// Optionally, check for a specific SKU /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -11639,7 +13045,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task LocationsCheckTrialAvailabilityWithResult(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ISku body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11787,9 +13193,9 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. - /// Azure region - /// The sku to check for trial availability + /// The ID of the target subscription. The value must be an UUID. + /// The name of the Azure region. + /// Optionally, check for a specific SKU /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -11799,14 +13205,15 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(location),location); + await eventListener.AssertMinimumLength(nameof(location),location,1); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Lists all of the available operations + /// List the operations for the provider /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -11815,9 +13222,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11841,7 +13248,7 @@ public partial class VMware } } - /// Lists all of the available operations + /// List the operations for the provider /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -11851,9 +13258,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11886,17 +13293,17 @@ public partial class VMware } } - /// Lists all of the available operations + /// List the operations for the provider /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A - /// that will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11929,16 +13336,16 @@ public partial class VMware } } - /// Lists all of the available operations + /// List the operations for the provider /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A - /// that will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsListWithResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsListWithResult(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11967,10 +13374,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A - /// that will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11989,7 +13396,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -12032,7 +13439,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -12051,7 +13458,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -12088,13 +13495,13 @@ public partial class VMware } } - /// Update a placement policy in a private cloud cluster - /// The ID of the target subscription. + /// Update a PlacementPolicy + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// A placement policy in the private cloud cluster + /// Name of the cluster + /// Name of the placement policy. + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -12106,7 +13513,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PlacementPoliciesCreateOrUpdate(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12143,9 +13550,9 @@ public partial class VMware } } - /// Update a placement policy in a private cloud cluster + /// Update a PlacementPolicy /// - /// A placement policy in the private cloud cluster + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -12157,7 +13564,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PlacementPoliciesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12208,9 +13615,9 @@ public partial class VMware } } - /// Update a placement policy in a private cloud cluster + /// Update a PlacementPolicy /// - /// A placement policy in the private cloud cluster + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -12220,7 +13627,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PlacementPoliciesCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12271,13 +13678,13 @@ public partial class VMware } } - /// Update a placement policy in a private cloud cluster - /// The ID of the target subscription. + /// Update a PlacementPolicy + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// A placement policy in the private cloud cluster + /// Name of the cluster + /// Name of the placement policy. + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -12287,7 +13694,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PlacementPoliciesCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12348,7 +13755,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -12422,172 +13829,166 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PlacementPoliciesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } - // drop the old response - _response?.Dispose(); + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PlacementPoliciesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -12622,12 +14023,12 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// A placement policy in the private cloud cluster + /// Name of the cluster + /// Name of the placement policy. + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -12637,7 +14038,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -12652,12 +14053,12 @@ public partial class VMware } } - /// Delete a placement policy in a private cloud cluster - /// The ID of the target subscription. + /// Delete a PlacementPolicy + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy + /// Name of the cluster + /// Name of the placement policy. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -12669,7 +14070,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PlacementPoliciesDelete(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12702,7 +14103,7 @@ public partial class VMware } } - /// Delete a placement policy in a private cloud cluster + /// Delete a PlacementPolicy /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -12715,7 +14116,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PlacementPoliciesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12787,7 +14188,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -12862,19 +14263,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -12915,11 +14313,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy + /// Name of the cluster + /// Name of the placement policy. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -12929,7 +14327,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -12942,12 +14340,12 @@ public partial class VMware } } - /// Get a placement policy by name in a private cloud cluster - /// The ID of the target subscription. + /// Get a PlacementPolicy + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy + /// Name of the cluster + /// Name of the placement policy. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -12958,7 +14356,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PlacementPoliciesGet(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -12991,7 +14389,7 @@ public partial class VMware } } - /// Get a placement policy by name in a private cloud cluster + /// Get a PlacementPolicy /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -13003,7 +14401,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PlacementPoliciesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13050,7 +14448,7 @@ public partial class VMware } } - /// Get a placement policy by name in a private cloud cluster + /// Get a PlacementPolicy /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -13060,7 +14458,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PlacementPoliciesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13107,12 +14505,12 @@ public partial class VMware } } - /// Get a placement policy by name in a private cloud cluster - /// The ID of the target subscription. + /// Get a PlacementPolicy + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy + /// Name of the cluster + /// Name of the placement policy. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -13121,7 +14519,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PlacementPoliciesGetWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13268,11 +14666,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy + /// Name of the cluster + /// Name of the placement policy. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -13282,7 +14680,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -13295,11 +14693,11 @@ public partial class VMware } } - /// List placement policies in a private cloud cluster - /// The ID of the target subscription. + /// List PlacementPolicy resources by Cluster + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -13308,9 +14706,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PlacementPoliciesList(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PlacementPoliciesList(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13342,7 +14740,7 @@ public partial class VMware } } - /// List placement policies in a private cloud cluster + /// List PlacementPolicy resources by Cluster /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -13352,9 +14750,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PlacementPoliciesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PlacementPoliciesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13399,17 +14797,17 @@ public partial class VMware } } - /// List placement policies in a private cloud cluster + /// List PlacementPolicy resources by Cluster /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PlacementPoliciesListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PlacementPoliciesListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13454,20 +14852,20 @@ public partial class VMware } } - /// List placement policies in a private cloud cluster - /// The ID of the target subscription. + /// List PlacementPolicy resources by Cluster + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PlacementPoliciesListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PlacementPoliciesListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13504,10 +14902,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PlacementPoliciesListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PlacementPoliciesListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13526,7 +14924,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPoliciesList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -13569,7 +14967,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PlacementPoliciesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PlacementPoliciesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -13588,7 +14986,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPoliciesList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PlacementPolicyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -13613,10 +15011,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -13626,7 +15024,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -13637,13 +15035,13 @@ public partial class VMware } } - /// Update a placement policy in a private cloud cluster - /// The ID of the target subscription. + /// Update a PlacementPolicy + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// The placement policy properties that may be updated + /// Name of the cluster + /// Name of the placement policy. + /// The placement policy properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -13655,7 +15053,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PlacementPoliciesUpdate(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13692,9 +15090,9 @@ public partial class VMware } } - /// Update a placement policy in a private cloud cluster + /// Update a PlacementPolicy /// - /// The placement policy properties that may be updated + /// The placement policy properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -13706,7 +15104,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PlacementPoliciesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13757,9 +15155,9 @@ public partial class VMware } } - /// Update a placement policy in a private cloud cluster + /// Update a PlacementPolicy /// - /// The placement policy properties that may be updated + /// The placement policy properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -13769,7 +15167,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PlacementPoliciesUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13820,13 +15218,13 @@ public partial class VMware } } - /// Update a placement policy in a private cloud cluster - /// The ID of the target subscription. + /// Update a PlacementPolicy + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// The placement policy properties that may be updated + /// Name of the cluster + /// Name of the placement policy. + /// The placement policy properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -13836,7 +15234,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PlacementPoliciesUpdateWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string placementPolicyName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -13895,7 +15293,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -13969,19 +15368,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -14048,7 +15444,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -14122,19 +15519,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -14169,12 +15563,12 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// The placement policy properties that may be updated + /// Name of the cluster + /// Name of the placement policy. + /// The placement policy properties to be updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -14184,7 +15578,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -14199,11 +15593,11 @@ public partial class VMware } } - /// Update a private cloud - /// The ID of the target subscription. + /// Update a PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// The private cloud + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -14215,7 +15609,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsCreateOrUpdate(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14248,9 +15642,9 @@ public partial class VMware } } - /// Update a private cloud + /// Update a PrivateCloud /// - /// The private cloud + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -14262,7 +15656,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14307,9 +15701,9 @@ public partial class VMware } } - /// Update a private cloud + /// Update a PrivateCloud /// - /// The private cloud + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -14319,7 +15713,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14364,11 +15758,11 @@ public partial class VMware } } - /// Update a private cloud - /// The ID of the target subscription. + /// Update a PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// The private cloud + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -14378,7 +15772,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14435,7 +15829,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -14509,19 +15903,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -14588,7 +15979,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -14662,19 +16053,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -14709,10 +16097,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// The private cloud + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -14722,7 +16110,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -14733,8 +16121,8 @@ public partial class VMware } } - /// Delete a private cloud - /// The ID of the target subscription. + /// Delete a PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -14748,7 +16136,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsDelete(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14777,7 +16165,7 @@ public partial class VMware } } - /// Delete a private cloud + /// Delete a PrivateCloud /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -14790,7 +16178,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -14856,7 +16244,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -14931,19 +16319,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -14984,7 +16369,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -14996,7 +16381,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -15005,8 +16390,8 @@ public partial class VMware } } - /// Get a private cloud - /// The ID of the target subscription. + /// Get a PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -15019,7 +16404,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsGet(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15048,7 +16433,7 @@ public partial class VMware } } - /// Get a private cloud + /// Get a PrivateCloud /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -15060,7 +16445,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15101,7 +16486,7 @@ public partial class VMware } } - /// Get a private cloud + /// Get a PrivateCloud /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -15111,7 +16496,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15152,8 +16537,8 @@ public partial class VMware } } - /// Get a private cloud - /// The ID of the target subscription. + /// Get a PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -15164,7 +16549,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsGetWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15307,7 +16692,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -15319,7 +16704,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -15328,8 +16713,8 @@ public partial class VMware } } - /// List private clouds in a resource group - /// The ID of the target subscription. + /// List PrivateCloud resources by resource group + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -15339,9 +16724,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateCloudsList(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateCloudsList(string subscriptionId, string resourceGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15370,7 +16755,7 @@ public partial class VMware } /// List the admin credentials for the private cloud - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -15383,7 +16768,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsListAdminCredentials(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15425,7 +16810,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsListAdminCredentialsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15477,7 +16862,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsListAdminCredentialsViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15520,7 +16905,7 @@ public partial class VMware } /// List the admin credentials for the private cloud - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -15531,7 +16916,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsListAdminCredentialsWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15677,7 +17062,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -15689,7 +17074,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -15698,8 +17083,8 @@ public partial class VMware } } - /// List private clouds in a subscription - /// The ID of the target subscription. + /// List PrivateCloud resources by subscription ID + /// The ID of the target subscription. The value must be an UUID. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -15708,9 +17093,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateCloudsListInSubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateCloudsListInSubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15736,7 +17121,7 @@ public partial class VMware } } - /// List private clouds in a subscription + /// List PrivateCloud resources by subscription ID /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -15746,9 +17131,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateCloudsListInSubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateCloudsListInSubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15784,17 +17169,17 @@ public partial class VMware } } - /// List private clouds in a subscription + /// List PrivateCloud resources by subscription ID /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateCloudsListInSubscriptionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateCloudsListInSubscriptionViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15830,17 +17215,17 @@ public partial class VMware } } - /// List private clouds in a subscription - /// The ID of the target subscription. + /// List PrivateCloud resources by subscription ID + /// The ID of the target subscription. The value must be an UUID. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateCloudsListInSubscriptionWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateCloudsListInSubscriptionWithResult(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -15873,10 +17258,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateCloudsListInSubscriptionWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PrivateCloudsListInSubscriptionWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -15895,7 +17280,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -15938,7 +17323,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateCloudsListInSubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PrivateCloudsListInSubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -15957,7 +17342,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -15982,7 +17367,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -15992,11 +17377,11 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); } } - /// List private clouds in a resource group + /// List PrivateCloud resources by resource group /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -16006,9 +17391,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateCloudsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateCloudsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16047,17 +17432,17 @@ public partial class VMware } } - /// List private clouds in a resource group + /// List PrivateCloud resources by resource group /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateCloudsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateCloudsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16096,18 +17481,18 @@ public partial class VMware } } - /// List private clouds in a resource group - /// The ID of the target subscription. + /// List PrivateCloud resources by resource group + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PrivateCloudsListWithResult(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PrivateCloudsListWithResult(string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16140,10 +17525,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateCloudsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PrivateCloudsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -16162,7 +17547,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -16205,7 +17590,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PrivateCloudsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PrivateCloudsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -16224,7 +17609,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -16249,7 +17634,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// an instance that will receive events. /// @@ -16260,7 +17645,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -16268,7 +17653,7 @@ public partial class VMware } /// Rotate the NSX-T Manager password - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 204 (NoContent). @@ -16281,7 +17666,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsRotateNsxtPassword(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16323,7 +17708,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsRotateNsxtPasswordViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16389,7 +17774,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -16464,19 +17849,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -16511,7 +17893,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -16523,7 +17905,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -16533,7 +17915,7 @@ public partial class VMware } /// Rotate the vCenter password - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 204 (NoContent). @@ -16546,7 +17928,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsRotateVcenterPassword(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16588,7 +17970,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsRotateVcenterPasswordViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16654,7 +18036,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -16729,19 +18111,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -16776,7 +18155,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -16788,7 +18167,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -16797,11 +18176,11 @@ public partial class VMware } } - /// Update a private cloud - /// The ID of the target subscription. + /// Update a PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// The private cloud properties to be updated + /// The private cloud properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -16813,7 +18192,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsUpdate(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16846,9 +18225,9 @@ public partial class VMware } } - /// Update a private cloud + /// Update a PrivateCloud /// - /// The private cloud properties to be updated + /// The private cloud properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -16860,7 +18239,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16905,9 +18284,9 @@ public partial class VMware } } - /// Update a private cloud + /// Update a PrivateCloud /// - /// The private cloud properties to be updated + /// The private cloud properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -16917,7 +18296,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -16962,11 +18341,11 @@ public partial class VMware } } - /// Update a private cloud - /// The ID of the target subscription. + /// Update a PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// The private cloud properties to be updated + /// The private cloud properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -16976,7 +18355,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task PrivateCloudsUpdateWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17031,7 +18410,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -17105,19 +18485,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -17184,7 +18561,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -17258,19 +18636,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -17305,10 +18680,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// The private cloud properties to be updated + /// The private cloud properties to be updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -17318,7 +18693,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -17329,14 +18704,12 @@ public partial class VMware } } - /// - /// Return information about a script cmdlet resource in a specific package on a private cloud - /// - /// The ID of the target subscription. + /// Get a ScriptCmdlet + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the script package in the private cloud - /// Name of the script cmdlet resource in the script package in the private cloud + /// Name of the script package. + /// Name of the script cmdlet. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -17347,7 +18720,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptCmdletsGet(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptPackageName, string scriptCmdletName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17380,9 +18753,7 @@ public partial class VMware } } - /// - /// Return information about a script cmdlet resource in a specific package on a private cloud - /// + /// Get a ScriptCmdlet /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -17394,7 +18765,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptCmdletsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17441,9 +18812,7 @@ public partial class VMware } } - /// - /// Return information about a script cmdlet resource in a specific package on a private cloud - /// + /// Get a ScriptCmdlet /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -17453,7 +18822,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptCmdletsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17500,14 +18869,12 @@ public partial class VMware } } - /// - /// Return information about a script cmdlet resource in a specific package on a private cloud - /// - /// The ID of the target subscription. + /// Get a ScriptCmdlet + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the script package in the private cloud - /// Name of the script cmdlet resource in the script package in the private cloud + /// Name of the script package. + /// Name of the script cmdlet. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -17516,7 +18883,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptCmdletsGetWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptPackageName, string scriptCmdletName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17663,11 +19030,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the script package in the private cloud - /// Name of the script cmdlet resource in the script package in the private cloud + /// Name of the script package. + /// Name of the script cmdlet. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -17677,7 +19044,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -17690,13 +19057,11 @@ public partial class VMware } } - /// - /// List script cmdlet resources available for a private cloud to List a script execution resource on a private cloud - /// - /// The ID of the target subscription. + /// List ScriptCmdlet resources by ScriptPackage + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the script package in the private cloud + /// Name of the script package. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -17705,9 +19070,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScriptCmdletsList(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptPackageName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScriptCmdletsList(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptPackageName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17739,9 +19104,7 @@ public partial class VMware } } - /// - /// List script cmdlet resources available for a private cloud to List a script execution resource on a private cloud - /// + /// List ScriptCmdlet resources by ScriptPackage /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -17751,9 +19114,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScriptCmdletsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScriptCmdletsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17798,19 +19161,17 @@ public partial class VMware } } - /// - /// List script cmdlet resources available for a private cloud to List a script execution resource on a private cloud - /// + /// List ScriptCmdlet resources by ScriptPackage /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScriptCmdletsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScriptCmdletsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17855,22 +19216,20 @@ public partial class VMware } } - /// - /// List script cmdlet resources available for a private cloud to List a script execution resource on a private cloud - /// - /// The ID of the target subscription. + /// List ScriptCmdlet resources by ScriptPackage + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the script package in the private cloud + /// Name of the script package. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScriptCmdletsListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptPackageName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScriptCmdletsListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptPackageName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -17907,10 +19266,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScriptCmdletsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScriptCmdletsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -17929,7 +19288,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletsList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -17972,7 +19331,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScriptCmdletsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScriptCmdletsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -17991,7 +19350,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletsList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptCmdletListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -18016,10 +19375,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the script package in the private cloud + /// Name of the script package. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -18029,7 +19388,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -18040,12 +19399,12 @@ public partial class VMware } } - /// Update a script execution in a private cloud - /// The ID of the target subscription. + /// Update a ScriptExecution + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the user-invoked script execution resource - /// A script running in the private cloud + /// Name of the private cloud + /// Name of the script cmdlet. + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -18057,7 +19416,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptExecutionsCreateOrUpdate(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptExecutionName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18092,9 +19451,9 @@ public partial class VMware } } - /// Update a script execution in a private cloud + /// Update a ScriptExecution /// - /// A script running in the private cloud + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -18106,7 +19465,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptExecutionsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18154,9 +19513,9 @@ public partial class VMware } } - /// Update a script execution in a private cloud + /// Update a ScriptExecution /// - /// A script running in the private cloud + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -18166,7 +19525,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptExecutionsCreateOrUpdateViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18214,12 +19573,12 @@ public partial class VMware } } - /// Update a script execution in a private cloud - /// The ID of the target subscription. + /// Update a ScriptExecution + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the user-invoked script execution resource - /// A script running in the private cloud + /// Name of the private cloud + /// Name of the script cmdlet. + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -18229,7 +19588,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptExecutionsCreateOrUpdateWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptExecutionName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18288,7 +19647,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -18362,19 +19721,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -18441,7 +19797,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -18515,19 +19871,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -18562,11 +19915,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the private cloud. - /// Name of the user-invoked script execution resource - /// A script running in the private cloud + /// Name of the private cloud + /// Name of the script cmdlet. + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -18576,11 +19929,12 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); + await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(scriptExecutionName),scriptExecutionName); await eventListener.AssertRegEx(nameof(scriptExecutionName), scriptExecutionName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); @@ -18588,11 +19942,11 @@ public partial class VMware } } - /// Cancel a ScriptExecution in a private cloud - /// The ID of the target subscription. + /// Delete a ScriptExecution + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the user-invoked script execution resource + /// Name of the script cmdlet. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -18604,7 +19958,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptExecutionsDelete(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptExecutionName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18635,7 +19989,7 @@ public partial class VMware } } - /// Cancel a ScriptExecution in a private cloud + /// Delete a ScriptExecution /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -18648,7 +20002,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptExecutionsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18717,7 +20071,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -18792,19 +20146,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -18845,10 +20196,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the user-invoked script execution resource + /// Name of the script cmdlet. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -18858,7 +20209,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -18869,11 +20220,11 @@ public partial class VMware } } - /// Get an script execution by name in a private cloud - /// The ID of the target subscription. + /// Get a ScriptExecution + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the user-invoked script execution resource + /// Name of the script cmdlet. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -18884,7 +20235,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptExecutionsGet(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptExecutionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18916,12 +20267,12 @@ public partial class VMware } /// Return the logs for a script execution resource - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the user-invoked script execution resource + /// Name of the script cmdlet. /// Name of the desired output stream to return. If not provided, will return all. An empty array will - /// return nothing + /// return nothing. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -18933,7 +20284,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptExecutionsGetExecutionLogs(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptExecutionName, System.Collections.Generic.List body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -18972,7 +20323,7 @@ public partial class VMware /// Return the logs for a script execution resource /// /// Name of the desired output stream to return. If not provided, will return all. An empty array will - /// return nothing + /// return nothing. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -18984,7 +20335,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptExecutionsGetExecutionLogsViaIdentity(global::System.String viaIdentity, System.Collections.Generic.List body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19036,7 +20387,7 @@ public partial class VMware /// Return the logs for a script execution resource /// /// Name of the desired output stream to return. If not provided, will return all. An empty array will - /// return nothing + /// return nothing. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -19046,7 +20397,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptExecutionsGetExecutionLogsViaIdentityWithResult(global::System.String viaIdentity, System.Collections.Generic.List body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19096,12 +20447,12 @@ public partial class VMware } /// Return the logs for a script execution resource - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the user-invoked script execution resource + /// Name of the script cmdlet. /// Name of the desired output stream to return. If not provided, will return all. An empty array will - /// return nothing + /// return nothing. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -19111,7 +20462,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptExecutionsGetExecutionLogsWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptExecutionName, System.Collections.Generic.List body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19263,12 +20614,12 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the user-invoked script execution resource + /// Name of the script cmdlet. /// Name of the desired output stream to return. If not provided, will return all. An empty array will - /// return nothing + /// return nothing. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -19278,7 +20629,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -19289,7 +20640,7 @@ public partial class VMware } } - /// Get an script execution by name in a private cloud + /// Get a ScriptExecution /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -19301,7 +20652,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptExecutionsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19345,7 +20696,7 @@ public partial class VMware } } - /// Get an script execution by name in a private cloud + /// Get a ScriptExecution /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -19355,7 +20706,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptExecutionsGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19399,11 +20750,11 @@ public partial class VMware } } - /// Get an script execution by name in a private cloud - /// The ID of the target subscription. + /// Get a ScriptExecution + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the user-invoked script execution resource + /// Name of the script cmdlet. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -19412,7 +20763,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptExecutionsGetWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptExecutionName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19557,10 +20908,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the user-invoked script execution resource + /// Name of the script cmdlet. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -19570,7 +20921,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -19581,8 +20932,8 @@ public partial class VMware } } - /// List script executions in a private cloud - /// The ID of the target subscription. + /// List ScriptExecution resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -19593,9 +20944,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScriptExecutionsList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScriptExecutionsList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19625,7 +20976,7 @@ public partial class VMware } } - /// List script executions in a private cloud + /// List ScriptExecution resources by PrivateCloud /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -19635,9 +20986,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScriptExecutionsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScriptExecutionsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19679,17 +21030,17 @@ public partial class VMware } } - /// List script executions in a private cloud + /// List ScriptExecution resources by PrivateCloud /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScriptExecutionsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScriptExecutionsListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19731,19 +21082,19 @@ public partial class VMware } } - /// List script executions in a private cloud - /// The ID of the target subscription. + /// List ScriptExecution resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScriptExecutionsListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScriptExecutionsListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19778,10 +21129,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScriptExecutionsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScriptExecutionsListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -19800,7 +21151,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionsList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -19843,7 +21194,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScriptExecutionsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScriptExecutionsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -19862,7 +21213,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionsList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptExecutionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -19887,7 +21238,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -19899,7 +21250,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -19908,11 +21259,11 @@ public partial class VMware } } - /// Get a script package available to run on a private cloud - /// The ID of the target subscription. + /// Get a ScriptPackage + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the script package in the private cloud + /// Name of the script package. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -19923,7 +21274,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptPackagesGet(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptPackageName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -19954,7 +21305,7 @@ public partial class VMware } } - /// Get a script package available to run on a private cloud + /// Get a ScriptPackage /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -19966,7 +21317,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptPackagesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20010,7 +21361,7 @@ public partial class VMware } } - /// Get a script package available to run on a private cloud + /// Get a ScriptPackage /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -20020,7 +21371,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptPackagesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20064,11 +21415,11 @@ public partial class VMware } } - /// Get a script package available to run on a private cloud - /// The ID of the target subscription. + /// Get a ScriptPackage + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the script package in the private cloud + /// Name of the script package. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -20077,7 +21428,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task ScriptPackagesGetWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string scriptPackageName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20222,10 +21573,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the script package in the private cloud + /// Name of the script package. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -20235,7 +21586,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -20246,8 +21597,8 @@ public partial class VMware } } - /// List script packages available to run on the private cloud - /// The ID of the target subscription. + /// List ScriptPackage resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -20258,9 +21609,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScriptPackagesList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScriptPackagesList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20290,7 +21641,7 @@ public partial class VMware } } - /// List script packages available to run on the private cloud + /// List ScriptPackage resources by PrivateCloud /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -20300,9 +21651,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScriptPackagesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScriptPackagesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20344,17 +21695,17 @@ public partial class VMware } } - /// List script packages available to run on the private cloud + /// List ScriptPackage resources by PrivateCloud /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScriptPackagesListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScriptPackagesListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20396,19 +21747,19 @@ public partial class VMware } } - /// List script packages available to run on the private cloud - /// The ID of the target subscription. + /// List ScriptPackage resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ScriptPackagesListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ScriptPackagesListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20443,10 +21794,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScriptPackagesListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScriptPackagesListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -20465,7 +21816,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackagesList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackageListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -20508,7 +21859,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ScriptPackagesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ScriptPackagesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -20527,7 +21878,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackagesList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptPackageListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -20552,7 +21903,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -20564,7 +21915,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -20573,12 +21924,12 @@ public partial class VMware } } - /// Get a virtual machine by id in a private cloud cluster - /// The ID of the target subscription. + /// Get a VirtualMachine + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Virtual Machine identifier + /// Name of the cluster + /// ID of the virtual machine. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -20589,7 +21940,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task VirtualMachinesGet(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string virtualMachineId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20622,7 +21973,7 @@ public partial class VMware } } - /// Get a virtual machine by id in a private cloud cluster + /// Get a VirtualMachine /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -20634,7 +21985,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task VirtualMachinesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20681,7 +22032,7 @@ public partial class VMware } } - /// Get a virtual machine by id in a private cloud cluster + /// Get a VirtualMachine /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -20691,7 +22042,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task VirtualMachinesGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20738,12 +22089,12 @@ public partial class VMware } } - /// Get a virtual machine by id in a private cloud cluster - /// The ID of the target subscription. + /// Get a VirtualMachine + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Virtual Machine identifier + /// Name of the cluster + /// ID of the virtual machine. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -20752,7 +22103,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task VirtualMachinesGetWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string virtualMachineId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20899,11 +22250,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Virtual Machine identifier + /// Name of the cluster + /// ID of the virtual machine. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -20913,7 +22264,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -20922,14 +22273,15 @@ public partial class VMware await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertRegEx(nameof(clusterName), clusterName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(virtualMachineId),virtualMachineId); + await eventListener.AssertRegEx(nameof(virtualMachineId), virtualMachineId, @"^[-\w\._]+$"); } } - /// List of virtual machines in a private cloud cluster - /// The ID of the target subscription. + /// List VirtualMachine resources by Cluster + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -20938,9 +22290,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualMachinesList(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualMachinesList(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -20972,7 +22324,7 @@ public partial class VMware } } - /// List of virtual machines in a private cloud cluster + /// List VirtualMachine resources by Cluster /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -20982,9 +22334,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualMachinesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualMachinesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21029,17 +22381,17 @@ public partial class VMware } } - /// List of virtual machines in a private cloud cluster + /// List VirtualMachine resources by Cluster /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualMachinesListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualMachinesListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21084,20 +22436,20 @@ public partial class VMware } } - /// List of virtual machines in a private cloud cluster - /// The ID of the target subscription. + /// List VirtualMachine resources by Cluster + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task VirtualMachinesListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task VirtualMachinesListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21134,10 +22486,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task VirtualMachinesListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task VirtualMachinesListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -21156,7 +22508,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachinesList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -21199,7 +22551,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task VirtualMachinesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task VirtualMachinesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -21218,7 +22570,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachinesList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VirtualMachineListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -21243,10 +22595,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud + /// Name of the cluster /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -21256,7 +22608,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -21268,12 +22620,12 @@ public partial class VMware } /// Enable or disable DRS-driven VM movement restriction - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Virtual Machine identifier - /// Whether VM DRS-driven movement is restricted (Enabled) or not (Disabled) + /// Name of the cluster + /// ID of the virtual machine. + /// The body type of the operation request. /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -21284,7 +22636,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task VirtualMachinesRestrictMovement(string subscriptionId, string resourceGroupName, string privateCloudName, string clusterName, string virtualMachineId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineRestrictMovement body, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21324,7 +22676,7 @@ public partial class VMware /// Enable or disable DRS-driven VM movement restriction /// - /// Whether VM DRS-driven movement is restricted (Enabled) or not (Disabled) + /// The body type of the operation request. /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -21335,7 +22687,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task VirtualMachinesRestrictMovementViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineRestrictMovement body, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21526,12 +22878,12 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Name of the cluster in the private cloud - /// Virtual Machine identifier - /// Whether VM DRS-driven movement is restricted (Enabled) or not (Disabled) + /// Name of the cluster + /// ID of the virtual machine. + /// The body type of the operation request. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -21541,7 +22893,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -21550,17 +22902,18 @@ public partial class VMware await eventListener.AssertNotNull(nameof(clusterName),clusterName); await eventListener.AssertRegEx(nameof(clusterName), clusterName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(virtualMachineId),virtualMachineId); + await eventListener.AssertRegEx(nameof(virtualMachineId), virtualMachineId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Create dhcp by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkDhcp + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DHCP identifier. Generally the same as the DHCP display name - /// NSX DHCP + /// The ID of the DHCP configuration + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -21572,7 +22925,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateDhcp(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21607,9 +22960,9 @@ public partial class VMware } } - /// Create dhcp by id in a private cloud workload network. + /// Create a WorkloadNetworkDhcp /// - /// NSX DHCP + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -21621,7 +22974,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateDhcpViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21669,9 +23022,9 @@ public partial class VMware } } - /// Create dhcp by id in a private cloud workload network. + /// Create a WorkloadNetworkDhcp /// - /// NSX DHCP + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -21681,7 +23034,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateDhcpViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21729,12 +23082,12 @@ public partial class VMware } } - /// Create dhcp by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkDhcp + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DHCP identifier. Generally the same as the DHCP display name - /// NSX DHCP + /// The ID of the DHCP configuration + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -21744,7 +23097,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateDhcpWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -21803,7 +23156,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -21877,19 +23230,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -21956,7 +23306,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -22030,19 +23380,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -22077,11 +23424,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DHCP identifier. Generally the same as the DHCP display name - /// NSX DHCP + /// The ID of the DHCP configuration + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -22091,24 +23438,25 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(dhcpId),dhcpId); + await eventListener.AssertRegEx(nameof(dhcpId), dhcpId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Create a DNS service by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkDnsService + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name - /// NSX DNS Service + /// ID of the DNS service. + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -22120,7 +23468,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateDnsService(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22155,9 +23503,9 @@ public partial class VMware } } - /// Create a DNS service by id in a private cloud workload network. + /// Create a WorkloadNetworkDnsService /// - /// NSX DNS Service + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -22169,7 +23517,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateDnsServiceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22217,9 +23565,9 @@ public partial class VMware } } - /// Create a DNS service by id in a private cloud workload network. + /// Create a WorkloadNetworkDnsService /// - /// NSX DNS Service + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -22229,7 +23577,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateDnsServiceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22277,12 +23625,12 @@ public partial class VMware } } - /// Create a DNS service by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkDnsService + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name - /// NSX DNS Service + /// ID of the DNS service. + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -22292,7 +23640,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateDnsServiceWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22351,7 +23699,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -22425,19 +23773,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -22504,7 +23849,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -22578,19 +23923,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -22625,11 +23967,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name - /// NSX DNS Service + /// ID of the DNS service. + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -22639,24 +23981,25 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(dnsServiceId),dnsServiceId); + await eventListener.AssertRegEx(nameof(dnsServiceId), dnsServiceId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Create a DNS zone by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkDnsZone + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - /// NSX DNS Zone + /// ID of the DNS zone. + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -22668,7 +24011,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateDnsZone(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22703,9 +24046,9 @@ public partial class VMware } } - /// Create a DNS zone by id in a private cloud workload network. + /// Create a WorkloadNetworkDnsZone /// - /// NSX DNS Zone + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -22717,7 +24060,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateDnsZoneViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22765,9 +24108,9 @@ public partial class VMware } } - /// Create a DNS zone by id in a private cloud workload network. + /// Create a WorkloadNetworkDnsZone /// - /// NSX DNS Zone + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -22777,7 +24120,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateDnsZoneViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22825,12 +24168,12 @@ public partial class VMware } } - /// Create a DNS zone by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkDnsZone + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - /// NSX DNS Zone + /// ID of the DNS zone. + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -22840,7 +24183,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateDnsZoneWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -22899,7 +24242,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -22973,19 +24316,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -23052,7 +24392,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -23126,19 +24466,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -23173,11 +24510,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - /// NSX DNS Zone + /// ID of the DNS zone. + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -23187,24 +24524,25 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(dnsZoneId),dnsZoneId); + await eventListener.AssertRegEx(nameof(dnsZoneId), dnsZoneId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Create a port mirroring profile by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkPortMirroring + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - /// NSX port mirroring + /// ID of the NSX port mirroring profile. + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -23216,7 +24554,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreatePortMirroring(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23251,9 +24589,9 @@ public partial class VMware } } - /// Create a port mirroring profile by id in a private cloud workload network. + /// Create a WorkloadNetworkPortMirroring /// - /// NSX port mirroring + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -23265,7 +24603,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreatePortMirroringViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23313,9 +24651,9 @@ public partial class VMware } } - /// Create a port mirroring profile by id in a private cloud workload network. + /// Create a WorkloadNetworkPortMirroring /// - /// NSX port mirroring + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -23325,7 +24663,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreatePortMirroringViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23373,12 +24711,12 @@ public partial class VMware } } - /// Create a port mirroring profile by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkPortMirroring + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - /// NSX port mirroring + /// ID of the NSX port mirroring profile. + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -23388,7 +24726,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreatePortMirroringWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23447,7 +24785,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -23521,19 +24859,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -23602,7 +24937,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -23676,19 +25011,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -23723,11 +25055,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - /// NSX port mirroring + /// ID of the NSX port mirroring profile. + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -23737,24 +25069,25 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(portMirroringId),portMirroringId); + await eventListener.AssertRegEx(nameof(portMirroringId), portMirroringId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Create a Public IP Block by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkPublicIP + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name - /// NSX Public IP Block + /// ID of the DNS zone. + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -23766,7 +25099,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreatePublicIP(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIP body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23801,9 +25134,9 @@ public partial class VMware } } - /// Create a Public IP Block by id in a private cloud workload network. + /// Create a WorkloadNetworkPublicIP /// - /// NSX Public IP Block + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -23815,7 +25148,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreatePublicIPViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIP body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23863,9 +25196,9 @@ public partial class VMware } } - /// Create a Public IP Block by id in a private cloud workload network. + /// Create a WorkloadNetworkPublicIP /// - /// NSX Public IP Block + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -23875,7 +25208,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreatePublicIPViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIP body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23923,12 +25256,12 @@ public partial class VMware } } - /// Create a Public IP Block by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkPublicIP + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name - /// NSX Public IP Block + /// ID of the DNS zone. + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -23938,7 +25271,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreatePublicIPWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIP body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -23997,7 +25330,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -24071,19 +25404,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -24150,7 +25480,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -24224,19 +25554,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -24271,11 +25598,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name - /// NSX Public IP Block + /// ID of the DNS zone. + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -24285,24 +25612,25 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(publicIPId),publicIPId); + await eventListener.AssertRegEx(nameof(publicIPId), publicIPId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Create a segment by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkSegment + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Segment identifier. Generally the same as the Segment's display name - /// NSX Segment + /// The ID of the NSX Segment + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -24314,7 +25642,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateSegments(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24349,9 +25677,9 @@ public partial class VMware } } - /// Create a segment by id in a private cloud workload network. + /// Create a WorkloadNetworkSegment /// - /// NSX Segment + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -24363,7 +25691,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateSegmentsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24411,9 +25739,9 @@ public partial class VMware } } - /// Create a segment by id in a private cloud workload network. + /// Create a WorkloadNetworkSegment /// - /// NSX Segment + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -24423,7 +25751,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateSegmentsViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24471,12 +25799,12 @@ public partial class VMware } } - /// Create a segment by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkSegment + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Segment identifier. Generally the same as the Segment's display name - /// NSX Segment + /// The ID of the NSX Segment + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -24486,7 +25814,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateSegmentsWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24545,7 +25873,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -24619,19 +25947,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -24698,7 +26023,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -24772,19 +26097,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -24819,11 +26141,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Segment identifier. Generally the same as the Segment's display name - /// NSX Segment + /// The ID of the NSX Segment + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -24833,24 +26155,25 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(segmentId),segmentId); + await eventListener.AssertRegEx(nameof(segmentId), segmentId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Create a vm group by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkVMGroup + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX VM Group identifier. Generally the same as the VM Group's display name - /// NSX VM Group + /// ID of the VM group. + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -24862,7 +26185,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateVMGroup(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24897,9 +26220,9 @@ public partial class VMware } } - /// Create a vm group by id in a private cloud workload network. + /// Create a WorkloadNetworkVMGroup /// - /// NSX VM Group + /// Resource create parameters. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -24911,7 +26234,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateVMGroupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -24959,9 +26282,9 @@ public partial class VMware } } - /// Create a vm group by id in a private cloud workload network. + /// Create a WorkloadNetworkVMGroup /// - /// NSX VM Group + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -24971,7 +26294,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateVMGroupViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25019,12 +26342,12 @@ public partial class VMware } } - /// Create a vm group by id in a private cloud workload network. - /// The ID of the target subscription. + /// Create a WorkloadNetworkVMGroup + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX VM Group identifier. Generally the same as the VM Group's display name - /// NSX VM Group + /// ID of the VM group. + /// Resource create parameters. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -25034,7 +26357,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksCreateVMGroupWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25093,7 +26416,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -25167,19 +26490,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -25246,7 +26566,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -25320,19 +26640,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -25367,11 +26684,11 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX VM Group identifier. Generally the same as the VM Group's display name - /// NSX VM Group + /// ID of the VM group. + /// Resource create parameters. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -25381,23 +26698,24 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(vmGroupId),vmGroupId); + await eventListener.AssertRegEx(nameof(vmGroupId), vmGroupId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Delete dhcp by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkDhcp + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DHCP identifier. Generally the same as the DHCP display name + /// The ID of the DHCP configuration /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -25409,7 +26727,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksDeleteDhcp(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25440,7 +26758,7 @@ public partial class VMware } } - /// Delete dhcp by id in a private cloud workload network. + /// Delete a WorkloadNetworkDhcp /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -25453,7 +26771,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksDeleteDhcpViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25522,7 +26840,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -25597,19 +26915,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -25650,10 +26965,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DHCP identifier. Generally the same as the DHCP display name + /// The ID of the DHCP configuration /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -25663,20 +26978,21 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(dhcpId),dhcpId); + await eventListener.AssertRegEx(nameof(dhcpId), dhcpId, @"^[-\w\._]+$"); } } - /// Delete a DNS service by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkDnsService + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name + /// ID of the DNS service. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -25689,7 +27005,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksDeleteDnsService(string subscriptionId, string resourceGroupName, string dnsServiceId, string privateCloudName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25720,7 +27036,7 @@ public partial class VMware } } - /// Delete a DNS service by id in a private cloud workload network. + /// Delete a WorkloadNetworkDnsService /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -25733,7 +27049,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksDeleteDnsServiceViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -25802,7 +27118,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -25877,19 +27193,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -25930,9 +27243,9 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name + /// ID of the DNS service. /// Name of the private cloud /// an instance that will receive events. /// @@ -25943,20 +27256,21 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(dnsServiceId),dnsServiceId); + await eventListener.AssertRegEx(nameof(dnsServiceId), dnsServiceId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); } } - /// Delete a DNS zone by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkDnsZone + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// ID of the DNS zone. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -25969,7 +27283,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksDeleteDnsZone(string subscriptionId, string resourceGroupName, string dnsZoneId, string privateCloudName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26000,7 +27314,7 @@ public partial class VMware } } - /// Delete a DNS zone by id in a private cloud workload network. + /// Delete a WorkloadNetworkDnsZone /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -26013,7 +27327,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksDeleteDnsZoneViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26082,7 +27396,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -26157,19 +27471,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -26210,9 +27521,9 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// ID of the DNS zone. /// Name of the private cloud /// an instance that will receive events. /// @@ -26223,20 +27534,21 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(dnsZoneId),dnsZoneId); + await eventListener.AssertRegEx(nameof(dnsZoneId), dnsZoneId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); } } - /// Delete a port mirroring profile by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkPortMirroring + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + /// ID of the NSX port mirroring profile. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -26249,7 +27561,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksDeletePortMirroring(string subscriptionId, string resourceGroupName, string portMirroringId, string privateCloudName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26280,7 +27592,7 @@ public partial class VMware } } - /// Delete a port mirroring profile by id in a private cloud workload network. + /// Delete a WorkloadNetworkPortMirroring /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -26293,7 +27605,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksDeletePortMirroringViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26364,7 +27676,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -26439,19 +27751,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -26492,9 +27801,9 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + /// ID of the NSX port mirroring profile. /// Name of the private cloud /// an instance that will receive events. /// @@ -26505,20 +27814,21 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(portMirroringId),portMirroringId); + await eventListener.AssertRegEx(nameof(portMirroringId), portMirroringId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); } } - /// Delete a Public IP Block by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkPublicIP + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + /// ID of the DNS zone. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -26531,7 +27841,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksDeletePublicIP(string subscriptionId, string resourceGroupName, string publicIPId, string privateCloudName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26562,7 +27872,7 @@ public partial class VMware } } - /// Delete a Public IP Block by id in a private cloud workload network. + /// Delete a WorkloadNetworkPublicIP /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -26575,7 +27885,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksDeletePublicIPViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26644,7 +27954,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -26719,19 +28029,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -26772,9 +28079,9 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + /// ID of the DNS zone. /// Name of the private cloud /// an instance that will receive events. /// @@ -26785,21 +28092,22 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(publicIPId),publicIPId); + await eventListener.AssertRegEx(nameof(publicIPId), publicIPId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); } } - /// Delete a segment by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkSegment + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Segment identifier. Generally the same as the Segment's display name + /// The ID of the NSX Segment /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -26811,7 +28119,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksDeleteSegment(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26842,7 +28150,7 @@ public partial class VMware } } - /// Delete a segment by id in a private cloud workload network. + /// Delete a WorkloadNetworkSegment /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -26855,7 +28163,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksDeleteSegmentViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -26924,7 +28232,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -26999,19 +28307,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -27052,10 +28357,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Segment identifier. Generally the same as the Segment's display name + /// The ID of the NSX Segment /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -27065,20 +28370,21 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(segmentId),segmentId); + await eventListener.AssertRegEx(nameof(segmentId), segmentId, @"^[-\w\._]+$"); } } - /// Delete a vm group by id in a private cloud workload network. - /// The ID of the target subscription. + /// Delete a WorkloadNetworkVMGroup + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// ID of the VM group. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -27091,7 +28397,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksDeleteVMGroup(string subscriptionId, string resourceGroupName, string vmGroupId, string privateCloudName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27122,7 +28428,7 @@ public partial class VMware } } - /// Delete a vm group by id in a private cloud workload network. + /// Delete a WorkloadNetworkVMGroup /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -27135,7 +28441,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksDeleteVMGroupViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27204,7 +28510,7 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); @@ -27279,19 +28585,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -27332,9 +28635,9 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// ID of the VM group. /// Name of the private cloud /// an instance that will receive events. /// @@ -27345,18 +28648,19 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vmGroupId),vmGroupId); + await eventListener.AssertRegEx(nameof(vmGroupId), vmGroupId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); } } - /// Get a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -27369,8 +28673,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGet(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var workloadNetworkName = @"default"; - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27382,8 +28685,7 @@ public partial class VMware + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.AVS/privateClouds/" + global::System.Uri.EscapeDataString(privateCloudName) - + "/workloadNetworks/" - + global::System.Uri.EscapeDataString(workloadNetworkName) + + "/workloadNetworks/default" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -27401,10 +28703,10 @@ public partial class VMware } } - /// Get dhcp by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkDhcp + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// NSX DHCP identifier. Generally the same as the DHCP display name + /// The ID of the DHCP configuration /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -27416,7 +28718,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetDhcp(string subscriptionId, string resourceGroupName, string dhcpId, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27447,7 +28749,7 @@ public partial class VMware } } - /// Get dhcp by id in a private cloud workload network. + /// Get a WorkloadNetworkDhcp /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -27459,7 +28761,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetDhcpViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27503,7 +28805,7 @@ public partial class VMware } } - /// Get dhcp by id in a private cloud workload network. + /// Get a WorkloadNetworkDhcp /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -27513,7 +28815,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetDhcpViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27557,10 +28859,10 @@ public partial class VMware } } - /// Get dhcp by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkDhcp + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// NSX DHCP identifier. Generally the same as the DHCP display name + /// The ID of the DHCP configuration /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -27570,7 +28872,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetDhcpWithResult(string subscriptionId, string resourceGroupName, string dhcpId, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27715,9 +29017,9 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// NSX DHCP identifier. Generally the same as the DHCP display name + /// The ID of the DHCP configuration /// Name of the private cloud /// an instance that will receive events. /// @@ -27728,21 +29030,22 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(dhcpId),dhcpId); + await eventListener.AssertRegEx(nameof(dhcpId), dhcpId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); } } - /// Get a DNS service by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkDnsService + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name + /// ID of the DNS service. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -27753,7 +29056,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetDnsService(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27784,7 +29087,7 @@ public partial class VMware } } - /// Get a DNS service by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsService /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -27796,7 +29099,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetDnsServiceViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27840,7 +29143,7 @@ public partial class VMware } } - /// Get a DNS service by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsService /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -27850,7 +29153,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetDnsServiceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -27894,11 +29197,11 @@ public partial class VMware } } - /// Get a DNS service by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkDnsService + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name + /// ID of the DNS service. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -27907,7 +29210,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetDnsServiceWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28054,10 +29357,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name + /// ID of the DNS service. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -28067,21 +29370,22 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(dnsServiceId),dnsServiceId); + await eventListener.AssertRegEx(nameof(dnsServiceId), dnsServiceId, @"^[-\w\._]+$"); } } - /// Get a DNS zone by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkDnsZone + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// ID of the DNS zone. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -28092,7 +29396,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetDnsZone(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28123,7 +29427,7 @@ public partial class VMware } } - /// Get a DNS zone by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsZone /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -28135,7 +29439,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetDnsZoneViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28179,7 +29483,7 @@ public partial class VMware } } - /// Get a DNS zone by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsZone /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -28189,7 +29493,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetDnsZoneViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28233,11 +29537,11 @@ public partial class VMware } } - /// Get a DNS zone by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkDnsZone + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// ID of the DNS zone. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -28246,7 +29550,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetDnsZoneWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28393,10 +29697,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + /// ID of the DNS zone. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -28406,21 +29710,22 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(dnsZoneId),dnsZoneId); + await eventListener.AssertRegEx(nameof(dnsZoneId), dnsZoneId, @"^[-\w\._]+$"); } } - /// Get a gateway by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkGateway + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Gateway identifier. Generally the same as the Gateway's display name + /// The ID of the NSX Gateway /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -28431,7 +29736,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetGateway(string subscriptionId, string resourceGroupName, string privateCloudName, string gatewayId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28462,7 +29767,7 @@ public partial class VMware } } - /// Get a gateway by id in a private cloud workload network. + /// Get a WorkloadNetworkGateway /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -28474,7 +29779,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetGatewayViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28518,7 +29823,7 @@ public partial class VMware } } - /// Get a gateway by id in a private cloud workload network. + /// Get a WorkloadNetworkGateway /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -28528,7 +29833,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetGatewayViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28572,11 +29877,11 @@ public partial class VMware } } - /// Get a gateway by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkGateway + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Gateway identifier. Generally the same as the Gateway's display name + /// The ID of the NSX Gateway /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -28585,7 +29890,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetGatewayWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string gatewayId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28732,10 +30037,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Gateway identifier. Generally the same as the Gateway's display name + /// The ID of the NSX Gateway /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -28745,21 +30050,22 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(gatewayId),gatewayId); + await eventListener.AssertRegEx(nameof(gatewayId), gatewayId, @"^[-\w\._]+$"); } } - /// Get a port mirroring profile by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkPortMirroring + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + /// ID of the NSX port mirroring profile. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -28770,7 +30076,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetPortMirroring(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28801,7 +30107,7 @@ public partial class VMware } } - /// Get a port mirroring profile by id in a private cloud workload network. + /// Get a WorkloadNetworkPortMirroring /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -28813,7 +30119,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetPortMirroringViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28857,7 +30163,7 @@ public partial class VMware } } - /// Get a port mirroring profile by id in a private cloud workload network. + /// Get a WorkloadNetworkPortMirroring /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -28867,7 +30173,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetPortMirroringViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -28911,11 +30217,11 @@ public partial class VMware } } - /// Get a port mirroring profile by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkPortMirroring + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + /// ID of the NSX port mirroring profile. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -28924,7 +30230,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetPortMirroringWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29071,10 +30377,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + /// ID of the NSX port mirroring profile. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -29084,21 +30390,22 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(portMirroringId),portMirroringId); + await eventListener.AssertRegEx(nameof(portMirroringId), portMirroringId, @"^[-\w\._]+$"); } } - /// Get a Public IP Block by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkPublicIP + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + /// ID of the DNS zone. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -29109,7 +30416,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetPublicIP(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29140,7 +30447,7 @@ public partial class VMware } } - /// Get a Public IP Block by id in a private cloud workload network. + /// Get a WorkloadNetworkPublicIP /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -29152,7 +30459,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetPublicIPViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29196,7 +30503,7 @@ public partial class VMware } } - /// Get a Public IP Block by id in a private cloud workload network. + /// Get a WorkloadNetworkPublicIP /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -29206,7 +30513,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetPublicIPViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29250,11 +30557,11 @@ public partial class VMware } } - /// Get a Public IP Block by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkPublicIP + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + /// ID of the DNS zone. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -29263,7 +30570,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetPublicIPWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string publicIPId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29410,10 +30717,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + /// ID of the DNS zone. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -29423,21 +30730,22 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(publicIPId),publicIPId); + await eventListener.AssertRegEx(nameof(publicIPId), publicIPId, @"^[-\w\._]+$"); } } - /// Get a segment by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkSegment + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Segment identifier. Generally the same as the Segment's display name + /// The ID of the NSX Segment /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -29448,7 +30756,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetSegment(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29479,7 +30787,7 @@ public partial class VMware } } - /// Get a segment by id in a private cloud workload network. + /// Get a WorkloadNetworkSegment /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -29491,7 +30799,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetSegmentViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29535,7 +30843,7 @@ public partial class VMware } } - /// Get a segment by id in a private cloud workload network. + /// Get a WorkloadNetworkSegment /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -29545,7 +30853,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetSegmentViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29589,11 +30897,11 @@ public partial class VMware } } - /// Get a segment by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkSegment + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Segment identifier. Generally the same as the Segment's display name + /// The ID of the NSX Segment /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -29602,7 +30910,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetSegmentWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29749,10 +31057,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Segment identifier. Generally the same as the Segment's display name + /// The ID of the NSX Segment /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -29762,21 +31070,22 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(segmentId),segmentId); + await eventListener.AssertRegEx(nameof(segmentId), segmentId, @"^[-\w\._]+$"); } } - /// Get a vm group by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkVMGroup + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// ID of the VM group. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -29787,7 +31096,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetVMGroup(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29818,7 +31127,7 @@ public partial class VMware } } - /// Get a vm group by id in a private cloud workload network. + /// Get a WorkloadNetworkVMGroup /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -29830,7 +31139,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetVMGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29874,7 +31183,7 @@ public partial class VMware } } - /// Get a vm group by id in a private cloud workload network. + /// Get a WorkloadNetworkVMGroup /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -29884,7 +31193,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetVMGroupViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -29928,11 +31237,11 @@ public partial class VMware } } - /// Get a vm group by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkVMGroup + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// ID of the VM group. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -29941,7 +31250,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetVMGroupWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30088,10 +31397,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX VM Group identifier. Generally the same as the VM Group's display name + /// ID of the VM group. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -30101,17 +31410,18 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(vmGroupId),vmGroupId); + await eventListener.AssertRegEx(nameof(vmGroupId), vmGroupId, @"^[-\w\._]+$"); } } - /// Get a private cloud workload network. + /// Get a WorkloadNetwork /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -30123,23 +31433,22 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AVS/privateClouds/(?[^/]+)/workloadNetworks/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AVS/privateClouds/(?[^/]+)/workloadNetworks/default$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var privateCloudName = _match.Groups["privateCloudName"].Value; - var workloadNetworkName = _match.Groups["workloadNetworkName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -30148,8 +31457,7 @@ public partial class VMware + resourceGroupName + "/providers/Microsoft.AVS/privateClouds/" + privateCloudName - + "/workloadNetworks/" - + workloadNetworkName + + "/workloadNetworks/default" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -30167,7 +31475,7 @@ public partial class VMware } } - /// Get a private cloud workload network. + /// Get a WorkloadNetwork /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -30177,23 +31485,22 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AVS/privateClouds/(?[^/]+)/workloadNetworks/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AVS/privateClouds/(?[^/]+)/workloadNetworks/default$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var privateCloudName = _match.Groups["privateCloudName"].Value; - var workloadNetworkName = _match.Groups["workloadNetworkName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -30202,8 +31509,7 @@ public partial class VMware + resourceGroupName + "/providers/Microsoft.AVS/privateClouds/" + privateCloudName - + "/workloadNetworks/" - + workloadNetworkName + + "/workloadNetworks/default" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -30221,11 +31527,11 @@ public partial class VMware } } - /// Get a virtual machine by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkVirtualMachine + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Virtual Machine identifier + /// ID of the virtual machine. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -30236,7 +31542,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetVirtualMachine(string subscriptionId, string resourceGroupName, string privateCloudName, string virtualMachineId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30267,7 +31573,7 @@ public partial class VMware } } - /// Get a virtual machine by id in a private cloud workload network. + /// Get a WorkloadNetworkVirtualMachine /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -30279,7 +31585,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetVirtualMachineViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30323,7 +31629,7 @@ public partial class VMware } } - /// Get a virtual machine by id in a private cloud workload network. + /// Get a WorkloadNetworkVirtualMachine /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. @@ -30333,7 +31639,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetVirtualMachineViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30377,11 +31683,11 @@ public partial class VMware } } - /// Get a virtual machine by id in a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetworkVirtualMachine + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Virtual Machine identifier + /// ID of the virtual machine. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// @@ -30390,7 +31696,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetVirtualMachineWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string virtualMachineId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30537,10 +31843,10 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// Virtual Machine identifier + /// ID of the virtual machine. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -30550,18 +31856,19 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(virtualMachineId),virtualMachineId); + await eventListener.AssertRegEx(nameof(virtualMachineId), virtualMachineId, @"^[-\w\._]+$"); } } - /// Get a private cloud workload network. - /// The ID of the target subscription. + /// Get a WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -30572,8 +31879,7 @@ public partial class VMware /// public async global::System.Threading.Tasks.Task WorkloadNetworksGetWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var workloadNetworkName = @"default"; - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30585,8 +31891,7 @@ public partial class VMware + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.AVS/privateClouds/" + global::System.Uri.EscapeDataString(privateCloudName) - + "/workloadNetworks/" - + global::System.Uri.EscapeDataString(workloadNetworkName) + + "/workloadNetworks/default" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -30718,7 +32023,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -30730,7 +32035,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -30739,8 +32044,8 @@ public partial class VMware } } - /// List of workload networks in a private cloud. - /// The ID of the target subscription. + /// List WorkloadNetwork resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -30751,9 +32056,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksList(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30783,8 +32088,8 @@ public partial class VMware } } - /// List dhcp in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkDhcp resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -30795,9 +32100,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListDhcp(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListDhcp(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30827,7 +32132,7 @@ public partial class VMware } } - /// List dhcp in a private cloud workload network. + /// List WorkloadNetworkDhcp resources by WorkloadNetwork /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -30837,9 +32142,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListDhcpViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListDhcpViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30881,17 +32186,17 @@ public partial class VMware } } - /// List dhcp in a private cloud workload network. + /// List WorkloadNetworkDhcp resources by WorkloadNetwork /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListDhcpViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListDhcpViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30933,19 +32238,19 @@ public partial class VMware } } - /// List dhcp in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkDhcp resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListDhcpWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListDhcpWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -30980,10 +32285,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListDhcpWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListDhcpWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -31002,7 +32307,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -31045,7 +32350,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListDhcp_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListDhcp_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -31064,7 +32369,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -31089,7 +32394,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -31101,7 +32406,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -31110,8 +32415,8 @@ public partial class VMware } } - /// List of DNS services in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkDnsService resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -31122,9 +32427,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListDnsServices(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListDnsServices(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31154,7 +32459,7 @@ public partial class VMware } } - /// List of DNS services in a private cloud workload network. + /// List WorkloadNetworkDnsService resources by WorkloadNetwork /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -31164,9 +32469,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListDnsServicesViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListDnsServicesViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31208,17 +32513,17 @@ public partial class VMware } } - /// List of DNS services in a private cloud workload network. + /// List WorkloadNetworkDnsService resources by WorkloadNetwork /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListDnsServicesViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListDnsServicesViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31260,19 +32565,19 @@ public partial class VMware } } - /// List of DNS services in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkDnsService resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListDnsServicesWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListDnsServicesWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31309,10 +32614,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListDnsServicesWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListDnsServicesWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -31331,7 +32636,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServicesList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServiceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -31374,7 +32679,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListDnsServices_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListDnsServices_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -31393,7 +32698,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServicesList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServiceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -31418,7 +32723,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -31430,7 +32735,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -31439,8 +32744,8 @@ public partial class VMware } } - /// List of DNS zones in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkDnsZone resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -31451,9 +32756,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListDnsZones(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListDnsZones(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31483,7 +32788,7 @@ public partial class VMware } } - /// List of DNS zones in a private cloud workload network. + /// List WorkloadNetworkDnsZone resources by WorkloadNetwork /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -31493,9 +32798,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListDnsZonesViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListDnsZonesViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31537,17 +32842,17 @@ public partial class VMware } } - /// List of DNS zones in a private cloud workload network. + /// List WorkloadNetworkDnsZone resources by WorkloadNetwork /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListDnsZonesViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListDnsZonesViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31589,19 +32894,19 @@ public partial class VMware } } - /// List of DNS zones in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkDnsZone resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListDnsZonesWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListDnsZonesWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31638,10 +32943,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListDnsZonesWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListDnsZonesWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -31660,7 +32965,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZonesList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZoneListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -31703,7 +33008,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListDnsZones_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListDnsZones_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -31722,7 +33027,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZonesList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZoneListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -31747,7 +33052,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -31759,7 +33064,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -31768,8 +33073,8 @@ public partial class VMware } } - /// List of gateways in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkGateway resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -31780,9 +33085,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListGateways(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListGateways(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31812,7 +33117,7 @@ public partial class VMware } } - /// List of gateways in a private cloud workload network. + /// List WorkloadNetworkGateway resources by WorkloadNetwork /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -31822,9 +33127,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListGatewaysViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListGatewaysViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31866,17 +33171,17 @@ public partial class VMware } } - /// List of gateways in a private cloud workload network. + /// List WorkloadNetworkGateway resources by WorkloadNetwork /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListGatewaysViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListGatewaysViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31918,19 +33223,19 @@ public partial class VMware } } - /// List of gateways in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkGateway resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListGatewaysWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListGatewaysWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -31967,10 +33272,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListGatewaysWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListGatewaysWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -31989,7 +33294,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGatewayList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGatewayListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -32032,7 +33337,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListGateways_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListGateways_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -32051,7 +33356,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGatewayList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkGatewayListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -32076,7 +33381,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -32088,7 +33393,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -32097,8 +33402,8 @@ public partial class VMware } } - /// List of port mirroring profiles in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkPortMirroring resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -32109,9 +33414,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListPortMirroring(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListPortMirroring(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32141,7 +33446,7 @@ public partial class VMware } } - /// List of port mirroring profiles in a private cloud workload network. + /// List WorkloadNetworkPortMirroring resources by WorkloadNetwork /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -32151,9 +33456,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListPortMirroringViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListPortMirroringViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32195,17 +33500,17 @@ public partial class VMware } } - /// List of port mirroring profiles in a private cloud workload network. + /// List WorkloadNetworkPortMirroring resources by WorkloadNetwork /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListPortMirroringViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListPortMirroringViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32247,19 +33552,19 @@ public partial class VMware } } - /// List of port mirroring profiles in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkPortMirroring resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListPortMirroringWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListPortMirroringWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32296,10 +33601,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListPortMirroringWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListPortMirroringWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -32318,7 +33623,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -32361,7 +33666,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListPortMirroring_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListPortMirroring_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -32380,7 +33685,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -32405,7 +33710,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -32417,7 +33722,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -32426,8 +33731,8 @@ public partial class VMware } } - /// List of Public IP Blocks in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkPublicIP resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -32438,9 +33743,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListPublicIPs(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListPublicIPs(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32470,7 +33775,7 @@ public partial class VMware } } - /// List of Public IP Blocks in a private cloud workload network. + /// List WorkloadNetworkPublicIP resources by WorkloadNetwork /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -32480,9 +33785,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListPublicIPsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListPublicIPsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32524,17 +33829,17 @@ public partial class VMware } } - /// List of Public IP Blocks in a private cloud workload network. + /// List WorkloadNetworkPublicIP resources by WorkloadNetwork /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListPublicIPsViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListPublicIPsViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32576,19 +33881,19 @@ public partial class VMware } } - /// List of Public IP Blocks in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkPublicIP resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListPublicIPsWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListPublicIPsWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32625,10 +33930,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListPublicIPsWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListPublicIPsWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -32647,7 +33952,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIPsList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIPListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -32690,7 +33995,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListPublicIPs_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListPublicIPs_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -32709,7 +34014,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIPsList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPublicIPListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -32734,7 +34039,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -32746,7 +34051,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -32755,8 +34060,8 @@ public partial class VMware } } - /// List of segments in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkSegment resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -32767,9 +34072,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListSegments(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListSegments(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32799,7 +34104,7 @@ public partial class VMware } } - /// List of segments in a private cloud workload network. + /// List WorkloadNetworkSegment resources by WorkloadNetwork /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -32809,9 +34114,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListSegmentsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListSegmentsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32853,17 +34158,17 @@ public partial class VMware } } - /// List of segments in a private cloud workload network. + /// List WorkloadNetworkSegment resources by WorkloadNetwork /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListSegmentsViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListSegmentsViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32905,19 +34210,19 @@ public partial class VMware } } - /// List of segments in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkSegment resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListSegmentsWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListSegmentsWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -32954,10 +34259,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListSegmentsWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListSegmentsWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -32976,7 +34281,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentsList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -33019,7 +34324,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListSegments_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListSegments_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -33038,7 +34343,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentsList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -33063,7 +34368,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -33075,7 +34380,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -33084,8 +34389,8 @@ public partial class VMware } } - /// List of vm groups in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkVMGroup resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -33096,9 +34401,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListVMGroups(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListVMGroups(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33128,7 +34433,7 @@ public partial class VMware } } - /// List of vm groups in a private cloud workload network. + /// List WorkloadNetworkVMGroup resources by WorkloadNetwork /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -33138,9 +34443,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListVMGroupsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListVMGroupsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33182,17 +34487,17 @@ public partial class VMware } } - /// List of vm groups in a private cloud workload network. + /// List WorkloadNetworkVMGroup resources by WorkloadNetwork /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListVMGroupsViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListVMGroupsViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33234,19 +34539,19 @@ public partial class VMware } } - /// List of vm groups in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkVMGroup resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListVMGroupsWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListVMGroupsWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33283,10 +34588,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListVMGroupsWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListVMGroupsWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -33305,7 +34610,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupsList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -33348,7 +34653,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListVMGroups_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListVMGroups_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -33367,7 +34672,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupsList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -33392,7 +34697,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -33404,7 +34709,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -33413,7 +34718,7 @@ public partial class VMware } } - /// List of workload networks in a private cloud. + /// List WorkloadNetwork resources by PrivateCloud /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -33423,9 +34728,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33467,17 +34772,17 @@ public partial class VMware } } - /// List of workload networks in a private cloud. + /// List WorkloadNetwork resources by PrivateCloud /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33519,8 +34824,8 @@ public partial class VMware } } - /// List of virtual machines in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkVirtualMachine resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -33531,9 +34836,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListVirtualMachines(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListVirtualMachines(string subscriptionId, string resourceGroupName, string privateCloudName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33563,7 +34868,7 @@ public partial class VMware } } - /// List of virtual machines in a private cloud workload network. + /// List WorkloadNetworkVirtualMachine resources by WorkloadNetwork /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -33573,9 +34878,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListVirtualMachinesViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListVirtualMachinesViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33617,17 +34922,17 @@ public partial class VMware } } - /// List of virtual machines in a private cloud workload network. + /// List WorkloadNetworkVirtualMachine resources by WorkloadNetwork /// /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListVirtualMachinesViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListVirtualMachinesViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33669,19 +34974,19 @@ public partial class VMware } } - /// List of virtual machines in a private cloud workload network. - /// The ID of the target subscription. + /// List WorkloadNetworkVirtualMachine resources by WorkloadNetwork + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListVirtualMachinesWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListVirtualMachinesWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33718,10 +35023,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListVirtualMachinesWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListVirtualMachinesWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -33740,7 +35045,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachinesList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachineListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -33785,7 +35090,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListVirtualMachines_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListVirtualMachines_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -33804,7 +35109,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachinesList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVirtualMachineListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -33829,7 +35134,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -33841,7 +35146,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -33850,19 +35155,19 @@ public partial class VMware } } - /// List of workload networks in a private cloud. - /// The ID of the target subscription. + /// List WorkloadNetwork resources by PrivateCloud + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task WorkloadNetworksListWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -33897,10 +35202,10 @@ public partial class VMware /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// - /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksListWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -33919,7 +35224,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); return await _result; } default: @@ -33962,7 +35267,7 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task WorkloadNetworksList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -33981,7 +35286,7 @@ public partial class VMware case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -34006,7 +35311,7 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud /// an instance that will receive events. @@ -34018,7 +35323,7 @@ public partial class VMware using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -34027,12 +35332,12 @@ public partial class VMware } } - /// Update dhcp by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkDhcp + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DHCP identifier. Generally the same as the DHCP display name - /// NSX DHCP + /// The ID of the DHCP configuration + /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -34042,9 +35347,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDhcp(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDhcp(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34079,9 +35384,9 @@ public partial class VMware } } - /// Update dhcp by id in a private cloud workload network. + /// Update a WorkloadNetworkDhcp /// - /// NSX DHCP + /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -34091,9 +35396,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDhcpViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDhcpViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34141,9 +35446,9 @@ public partial class VMware } } - /// Update dhcp by id in a private cloud workload network. + /// Update a WorkloadNetworkDhcp /// - /// NSX DHCP + /// The resource properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -34151,9 +35456,9 @@ public partial class VMware /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDhcpViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDhcpViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34201,12 +35506,12 @@ public partial class VMware } } - /// Update dhcp by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkDhcp + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DHCP identifier. Generally the same as the DHCP display name - /// NSX DHCP + /// The ID of the DHCP configuration + /// The resource properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -34214,9 +35519,9 @@ public partial class VMware /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDhcpWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDhcpWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34275,7 +35580,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -34349,19 +35655,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -34428,7 +35731,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -34502,19 +35806,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -34549,38 +35850,39 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DHCP identifier. Generally the same as the DHCP display name - /// NSX DHCP + /// The ID of the DHCP configuration + /// The resource properties to be updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDhcp_Validate(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDhcp_Validate(string subscriptionId, string resourceGroupName, string privateCloudName, string dhcpId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(dhcpId),dhcpId); + await eventListener.AssertRegEx(nameof(dhcpId), dhcpId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Update a DNS service by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkDnsService + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name - /// NSX DNS Service + /// ID of the DNS service. + /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -34590,9 +35892,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsService(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsService(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34627,9 +35929,9 @@ public partial class VMware } } - /// Update a DNS service by id in a private cloud workload network. + /// Update a WorkloadNetworkDnsService /// - /// NSX DNS Service + /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -34639,9 +35941,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsServiceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsServiceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34689,9 +35991,9 @@ public partial class VMware } } - /// Update a DNS service by id in a private cloud workload network. + /// Update a WorkloadNetworkDnsService /// - /// NSX DNS Service + /// The resource properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -34699,9 +36001,9 @@ public partial class VMware /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsServiceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsServiceViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34749,12 +36051,12 @@ public partial class VMware } } - /// Update a DNS service by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkDnsService + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name - /// NSX DNS Service + /// ID of the DNS service. + /// The resource properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -34762,9 +36064,9 @@ public partial class VMware /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsServiceWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsServiceWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -34823,7 +36125,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -34897,172 +36200,167 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); - // Error Response : default - var code = (await _result)?.Code; - var message = (await _result)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.RestException(_response, await _result); - throw ex; - } - else - { - throw new global::System.Exception($"[{code}] : {message}"); - } - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsService_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(body.Result)) ); + // Error Response : default + var code = (await _result)?.Code; + var message = (await _result)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.RestException(_response, await _result); + throw ex; + } + else + { + throw new global::System.Exception($"[{code}] : {message}"); + } + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } - // drop the old response - _response?.Dispose(); + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsService_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -35097,38 +36395,39 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name - /// NSX DNS Service + /// ID of the DNS service. + /// The resource properties to be updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsService_Validate(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsService_Validate(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsServiceId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(dnsServiceId),dnsServiceId); + await eventListener.AssertRegEx(nameof(dnsServiceId), dnsServiceId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Update a DNS zone by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkDnsZone + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - /// NSX DNS Zone + /// ID of the DNS zone. + /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -35138,9 +36437,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsZone(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsZone(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35175,9 +36474,9 @@ public partial class VMware } } - /// Update a DNS zone by id in a private cloud workload network. + /// Update a WorkloadNetworkDnsZone /// - /// NSX DNS Zone + /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -35187,9 +36486,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsZoneViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsZoneViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35237,9 +36536,9 @@ public partial class VMware } } - /// Update a DNS zone by id in a private cloud workload network. + /// Update a WorkloadNetworkDnsZone /// - /// NSX DNS Zone + /// The resource properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -35247,9 +36546,9 @@ public partial class VMware /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsZoneViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsZoneViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35297,12 +36596,12 @@ public partial class VMware } } - /// Update a DNS zone by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkDnsZone + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - /// NSX DNS Zone + /// ID of the DNS zone. + /// The resource properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -35310,9 +36609,9 @@ public partial class VMware /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsZoneWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsZoneWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35371,7 +36670,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -35445,19 +36745,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -35524,7 +36821,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -35598,19 +36896,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -35645,38 +36940,39 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - /// NSX DNS Zone + /// ID of the DNS zone. + /// The resource properties to be updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsZone_Validate(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task WorkloadNetworksUpdateDnsZone_Validate(string subscriptionId, string resourceGroupName, string privateCloudName, string dnsZoneId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(dnsZoneId),dnsZoneId); + await eventListener.AssertRegEx(nameof(dnsZoneId), dnsZoneId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Update a port mirroring profile by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkPortMirroring + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - /// NSX port mirroring + /// ID of the NSX port mirroring profile. + /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -35686,9 +36982,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdatePortMirroring(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdatePortMirroring(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35723,9 +37019,9 @@ public partial class VMware } } - /// Update a port mirroring profile by id in a private cloud workload network. + /// Update a WorkloadNetworkPortMirroring /// - /// NSX port mirroring + /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -35735,9 +37031,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdatePortMirroringViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdatePortMirroringViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35785,9 +37081,9 @@ public partial class VMware } } - /// Update a port mirroring profile by id in a private cloud workload network. + /// Update a WorkloadNetworkPortMirroring /// - /// NSX port mirroring + /// The resource properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -35795,9 +37091,9 @@ public partial class VMware /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdatePortMirroringViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdatePortMirroringViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35845,12 +37141,12 @@ public partial class VMware } } - /// Update a port mirroring profile by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkPortMirroring + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - /// NSX port mirroring + /// ID of the NSX port mirroring profile. + /// The resource properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -35858,9 +37154,9 @@ public partial class VMware /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdatePortMirroringWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdatePortMirroringWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -35919,7 +37215,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -35993,19 +37290,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -36074,7 +37368,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -36148,19 +37443,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -36195,38 +37487,39 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - /// NSX port mirroring + /// ID of the NSX port mirroring profile. + /// The resource properties to be updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksUpdatePortMirroring_Validate(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task WorkloadNetworksUpdatePortMirroring_Validate(string subscriptionId, string resourceGroupName, string privateCloudName, string portMirroringId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(portMirroringId),portMirroringId); + await eventListener.AssertRegEx(nameof(portMirroringId), portMirroringId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Update a segment by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkSegment + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Segment identifier. Generally the same as the Segment's display name - /// NSX Segment + /// The ID of the NSX Segment + /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -36236,9 +37529,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateSegments(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateSegments(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36273,9 +37566,9 @@ public partial class VMware } } - /// Update a segment by id in a private cloud workload network. + /// Update a WorkloadNetworkSegment /// - /// NSX Segment + /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -36285,9 +37578,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateSegmentsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateSegmentsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36335,9 +37628,9 @@ public partial class VMware } } - /// Update a segment by id in a private cloud workload network. + /// Update a WorkloadNetworkSegment /// - /// NSX Segment + /// The resource properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -36345,9 +37638,9 @@ public partial class VMware /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateSegmentsViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateSegmentsViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36395,12 +37688,12 @@ public partial class VMware } } - /// Update a segment by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkSegment + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Segment identifier. Generally the same as the Segment's display name - /// NSX Segment + /// The ID of the NSX Segment + /// The resource properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -36408,9 +37701,9 @@ public partial class VMware /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateSegmentsWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateSegmentsWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36469,7 +37762,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -36543,19 +37837,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -36622,7 +37913,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -36696,19 +37988,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -36743,38 +38032,39 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX Segment identifier. Generally the same as the Segment's display name - /// NSX Segment + /// The ID of the NSX Segment + /// The resource properties to be updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksUpdateSegments_Validate(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task WorkloadNetworksUpdateSegments_Validate(string subscriptionId, string resourceGroupName, string privateCloudName, string segmentId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(segmentId),segmentId); + await eventListener.AssertRegEx(nameof(segmentId), segmentId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Update a vm group by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkVMGroup + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX VM Group identifier. Generally the same as the VM Group's display name - /// NSX VM Group + /// ID of the VM group. + /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -36784,9 +38074,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateVMGroup(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateVMGroup(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36821,9 +38111,9 @@ public partial class VMware } } - /// Update a vm group by id in a private cloud workload network. + /// Update a WorkloadNetworkVMGroup /// - /// NSX VM Group + /// The resource properties to be updated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -36833,9 +38123,9 @@ public partial class VMware /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateVMGroupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateVMGroupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36883,9 +38173,9 @@ public partial class VMware } } - /// Update a vm group by id in a private cloud workload network. + /// Update a WorkloadNetworkVMGroup /// - /// NSX VM Group + /// The resource properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -36893,9 +38183,9 @@ public partial class VMware /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateVMGroupViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateVMGroupViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -36943,12 +38233,12 @@ public partial class VMware } } - /// Update a vm group by id in a private cloud workload network. - /// The ID of the target subscription. + /// Update a WorkloadNetworkVMGroup + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX VM Group identifier. Generally the same as the VM Group's display name - /// NSX VM Group + /// ID of the VM group. + /// The resource properties to be updated. /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync pipeline to use to make the request. /// Allows the caller to choose the depth of the serialization. See . @@ -36956,9 +38246,9 @@ public partial class VMware /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateVMGroupWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task WorkloadNetworksUpdateVMGroupWithResult(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate) { - var apiVersion = @"2023-03-01"; + var apiVersion = @"2023-09-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -37017,7 +38307,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -37091,19 +38382,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -37170,7 +38458,8 @@ public partial class VMware await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -37244,19 +38533,16 @@ public partial class VMware continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -37291,27 +38577,28 @@ public partial class VMware /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud - /// NSX VM Group identifier. Generally the same as the VM Group's display name - /// NSX VM Group + /// ID of the VM group. + /// The resource properties to be updated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task WorkloadNetworksUpdateVMGroup_Validate(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task WorkloadNetworksUpdateVMGroup_Validate(string subscriptionId, string resourceGroupName, string privateCloudName, string vmGroupId, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate body, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(privateCloudName),privateCloudName); await eventListener.AssertRegEx(nameof(privateCloudName), privateCloudName, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(vmGroupId),vmGroupId); + await eventListener.AssertRegEx(nameof(vmGroupId), vmGroupId, @"^[-\w\._]+$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_Get.cs index 1542c1d3bc40..08928f408477 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_Get.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get an addon by name in a private cloud + /// Get a Addon /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareAddon_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddon))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get an addon by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a Addon")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareAddon_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -100,12 +100,12 @@ public partial class GetAzVMwareAddon_Get : global::System.Management.Automation /// Backing field for property. private string _name; - /// Name of the addon for the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the addon for the private cloud")] + /// Name of the addon. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the addon.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the addon for the private cloud", + Description = @"Name of the addon.", SerializedName = @"addonName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AddonName")] @@ -164,12 +164,12 @@ public partial class GetAzVMwareAddon_Get : global::System.Management.Automation /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentity.cs index a5b99144747b..994566ad4af8 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get an addon by name in a private cloud + /// Get a Addon /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareAddon_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddon))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get an addon by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a Addon")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareAddon_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentityPrivateCloud.cs index 06d34ab21d6e..207534fbb841 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentityPrivateCloud.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get an addon by name in a private cloud + /// Get a Addon /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareAddon_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddon))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get an addon by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a Addon")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareAddon_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -100,12 +100,12 @@ public partial class GetAzVMwareAddon_GetViaIdentityPrivateCloud : global::Syste /// Backing field for property. private string _name; - /// Name of the addon for the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the addon for the private cloud")] + /// Name of the addon. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the addon.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the addon for the private cloud", + Description = @"Name of the addon.", SerializedName = @"addonName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AddonName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_List.cs index 6589cb5e8760..906bcf2ab203 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_List.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List addons in a private cloud + /// List Addon resources by PrivateCloud /// /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareAddon_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddon))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List addons in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List Addon resources by PrivateCloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons", ApiVersion = "2023-09-01")] public partial class GetAzVMwareAddon_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -155,12 +155,12 @@ public partial class GetAzVMwareAddon_List : global::System.Management.Automatio /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class GetAzVMwareAddon_List : global::System.Management.Automatio /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -471,12 +471,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +488,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_Get.cs index ef5a3fb2edf3..6c543f65753f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_Get.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get an ExpressRoute Circuit Authorization by name in a private cloud + /// Get a ExpressRouteAuthorization /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareAuthorization_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get an ExpressRoute Circuit Authorization by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a ExpressRouteAuthorization")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareAuthorization_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -99,12 +99,12 @@ public partial class GetAzVMwareAuthorization_Get : global::System.Management.Au /// Backing field for property. private string _name; - /// Name of the ExpressRoute Circuit Authorization in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the ExpressRoute Circuit Authorization in the private cloud")] + /// Name of the ExpressRoute Circuit Authorization + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the ExpressRoute Circuit Authorization")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the ExpressRoute Circuit Authorization in the private cloud", + Description = @"Name of the ExpressRoute Circuit Authorization", SerializedName = @"authorizationName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AuthorizationName")] @@ -163,12 +163,12 @@ public partial class GetAzVMwareAuthorization_Get : global::System.Management.Au /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentity.cs index c40ebcb58fa2..0f575ab7b6df 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get an ExpressRoute Circuit Authorization by name in a private cloud + /// Get a ExpressRouteAuthorization /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareAuthorization_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get an ExpressRoute Circuit Authorization by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a ExpressRouteAuthorization")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareAuthorization_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentityPrivateCloud.cs index 0de93f274bd4..11498ac2f3d8 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentityPrivateCloud.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get an ExpressRoute Circuit Authorization by name in a private cloud + /// Get a ExpressRouteAuthorization /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareAuthorization_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get an ExpressRoute Circuit Authorization by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a ExpressRouteAuthorization")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareAuthorization_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -99,12 +99,12 @@ public partial class GetAzVMwareAuthorization_GetViaIdentityPrivateCloud : globa /// Backing field for property. private string _name; - /// Name of the ExpressRoute Circuit Authorization in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the ExpressRoute Circuit Authorization in the private cloud")] + /// Name of the ExpressRoute Circuit Authorization + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the ExpressRoute Circuit Authorization")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the ExpressRoute Circuit Authorization in the private cloud", + Description = @"Name of the ExpressRoute Circuit Authorization", SerializedName = @"authorizationName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AuthorizationName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_List.cs index a26bb591214c..577f5045d8f6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List ExpressRoute Circuit Authorizations in a private cloud + /// List ExpressRouteAuthorization resources by PrivateCloud /// /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareAuthorization_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List ExpressRoute Circuit Authorizations in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List ExpressRouteAuthorization resources by PrivateCloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations", ApiVersion = "2023-09-01")] public partial class GetAzVMwareAuthorization_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -154,12 +154,12 @@ public partial class GetAzVMwareAuthorization_List : global::System.Management.A /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -187,12 +187,12 @@ public partial class GetAzVMwareAuthorization_List : global::System.Management.A /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -470,12 +470,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -487,7 +487,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorizationListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_Get.cs index 8389921a021b..f5e6cbe7ba84 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_Get.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get an cloud link by name in a private cloud + /// Get a CloudLink /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareCloudLink_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get an cloud link by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a CloudLink")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareCloudLink_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -99,12 +99,12 @@ public partial class GetAzVMwareCloudLink_Get : global::System.Management.Automa /// Backing field for property. private string _name; - /// Name of the cloud link resource - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud link resource")] + /// Name of the cloud link. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud link.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cloud link resource", + Description = @"Name of the cloud link.", SerializedName = @"cloudLinkName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("CloudLinkName")] @@ -163,12 +163,12 @@ public partial class GetAzVMwareCloudLink_Get : global::System.Management.Automa /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentity.cs index d4437dd2e616..5d0fdf0967f6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get an cloud link by name in a private cloud + /// Get a CloudLink /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareCloudLink_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get an cloud link by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a CloudLink")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareCloudLink_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentityPrivateCloud.cs index ecc0f34433f1..f986908f82fc 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentityPrivateCloud.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get an cloud link by name in a private cloud + /// Get a CloudLink /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareCloudLink_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get an cloud link by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a CloudLink")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareCloudLink_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -99,12 +99,12 @@ public partial class GetAzVMwareCloudLink_GetViaIdentityPrivateCloud : global::S /// Backing field for property. private string _name; - /// Name of the cloud link resource - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud link resource")] + /// Name of the cloud link. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud link.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cloud link resource", + Description = @"Name of the cloud link.", SerializedName = @"cloudLinkName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("CloudLinkName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_List.cs index 7c5c2eb55287..de718e7e0900 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List cloud link in a private cloud + /// List CloudLink resources by PrivateCloud /// /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareCloudLink_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List cloud link in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List CloudLink resources by PrivateCloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks", ApiVersion = "2023-09-01")] public partial class GetAzVMwareCloudLink_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -154,12 +154,12 @@ public partial class GetAzVMwareCloudLink_List : global::System.Management.Autom /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -187,12 +187,12 @@ public partial class GetAzVMwareCloudLink_List : global::System.Management.Autom /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -470,12 +470,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -487,7 +487,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLinkListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareClusterZone_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareClusterZone_List.cs index c06dd946ac43..94cb3a07adda 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareClusterZone_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareClusterZone_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterZoneList))] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List hosts by zone in a cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/listZones", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/listZones", ApiVersion = "2023-09-01")] public partial class GetAzVMwareClusterZone_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -63,12 +63,12 @@ public partial class GetAzVMwareClusterZone_List : global::System.Management.Aut /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -162,12 +162,12 @@ public partial class GetAzVMwareClusterZone_List : global::System.Management.Aut /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_Get.cs index fe9a11cff28b..2da5aeb148ce 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_Get.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a cluster by name in a private cloud + /// Get a Cluster /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareCluster_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a cluster by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a Cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareCluster_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -99,12 +99,12 @@ public partial class GetAzVMwareCluster_Get : global::System.Management.Automati /// Backing field for property. private string _name; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ClusterName")] @@ -163,12 +163,12 @@ public partial class GetAzVMwareCluster_Get : global::System.Management.Automati /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentity.cs index cbf8e2858bf3..d97002095e7a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a cluster by name in a private cloud + /// Get a Cluster /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareCluster_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a cluster by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a Cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareCluster_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentityPrivateCloud.cs index f7d99097e7ca..fde99f450ebb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentityPrivateCloud.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a cluster by name in a private cloud + /// Get a Cluster /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareCluster_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a cluster by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a Cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareCluster_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -99,12 +99,12 @@ public partial class GetAzVMwareCluster_GetViaIdentityPrivateCloud : global::Sys /// Backing field for property. private string _name; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ClusterName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_List.cs index a750012d2e3c..1a12c07851de 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List clusters in a private cloud + /// List Cluster resources by PrivateCloud /// /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareCluster_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List clusters in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List Cluster resources by PrivateCloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters", ApiVersion = "2023-09-01")] public partial class GetAzVMwareCluster_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -154,12 +154,12 @@ public partial class GetAzVMwareCluster_List : global::System.Management.Automat /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -187,12 +187,12 @@ public partial class GetAzVMwareCluster_List : global::System.Management.Automat /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -470,12 +470,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -487,7 +487,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IClusterListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_Get.cs index 5fdf10719252..b73e7f1fb34d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_Get.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a datastore in a private cloud cluster + /// Get a Datastore /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareDatastore_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a Datastore")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareDatastore_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -63,12 +63,12 @@ public partial class GetAzVMwareDatastore_Get : global::System.Management.Automa /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -113,12 +113,12 @@ public partial class GetAzVMwareDatastore_Get : global::System.Management.Automa /// Backing field for property. private string _name; - /// Name of the datastore in the private cloud cluster - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore in the private cloud cluster")] + /// Name of the datastore + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the datastore in the private cloud cluster", + Description = @"Name of the datastore", SerializedName = @"datastoreName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("DatastoreName")] @@ -177,12 +177,12 @@ public partial class GetAzVMwareDatastore_Get : global::System.Management.Automa /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentity.cs index 800b53829972..bc3e9cd2f4a3 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a datastore in a private cloud cluster + /// Get a Datastore /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareDatastore_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a Datastore")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareDatastore_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityCluster.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityCluster.cs index 3ab06673d0eb..0a04d11c5854 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityCluster.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityCluster.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a datastore in a private cloud cluster + /// Get a Datastore /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareDatastore_GetViaIdentityCluster")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a Datastore")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareDatastore_GetViaIdentityCluster : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -107,12 +107,12 @@ public partial class GetAzVMwareDatastore_GetViaIdentityCluster : global::System /// Backing field for property. private string _name; - /// Name of the datastore in the private cloud cluster - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore in the private cloud cluster")] + /// Name of the datastore + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the datastore in the private cloud cluster", + Description = @"Name of the datastore", SerializedName = @"datastoreName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("DatastoreName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityPrivateCloud.cs index ad48ed982f9b..02a7948758d7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityPrivateCloud.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a datastore in a private cloud cluster + /// Get a Datastore /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareDatastore_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a Datastore")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareDatastore_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -63,12 +63,12 @@ public partial class GetAzVMwareDatastore_GetViaIdentityPrivateCloud : global::S /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -113,12 +113,12 @@ public partial class GetAzVMwareDatastore_GetViaIdentityPrivateCloud : global::S /// Backing field for property. private string _name; - /// Name of the datastore in the private cloud cluster - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore in the private cloud cluster")] + /// Name of the datastore + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the datastore in the private cloud cluster", + Description = @"Name of the datastore", SerializedName = @"datastoreName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("DatastoreName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_List.cs index 92b67d0a2cbc..71ce58cfd6e2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List datastores in a private cloud cluster + /// List Datastore resources by Cluster /// /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareDatastore_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List datastores in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List Datastore resources by Cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores", ApiVersion = "2023-09-01")] public partial class GetAzVMwareDatastore_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -69,12 +69,12 @@ public partial class GetAzVMwareDatastore_List : global::System.Management.Autom /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -168,12 +168,12 @@ public partial class GetAzVMwareDatastore_List : global::System.Management.Autom /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -201,12 +201,12 @@ public partial class GetAzVMwareDatastore_List : global::System.Management.Autom /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -484,12 +484,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -501,7 +501,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastoreListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_Get.cs index 5fdf1cee9c4d..58355425c845 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_Get.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a global reach connection by name in a private cloud + /// Get a GlobalReachConnection /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareGlobalReachConnection_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a global reach connection by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a GlobalReachConnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareGlobalReachConnection_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -99,12 +99,12 @@ public partial class GetAzVMwareGlobalReachConnection_Get : global::System.Manag /// Backing field for property. private string _name; - /// Name of the global reach connection in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the global reach connection in the private cloud")] + /// Name of the global reach connection + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the global reach connection")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the global reach connection in the private cloud", + Description = @"Name of the global reach connection", SerializedName = @"globalReachConnectionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("GlobalReachConnectionName")] @@ -163,12 +163,12 @@ public partial class GetAzVMwareGlobalReachConnection_Get : global::System.Manag /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentity.cs index 8019d34f95f4..51b0a34ca2fd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a global reach connection by name in a private cloud + /// Get a GlobalReachConnection /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareGlobalReachConnection_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a global reach connection by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a GlobalReachConnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareGlobalReachConnection_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentityPrivateCloud.cs index 6c02557c5d4a..71c34f63c421 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentityPrivateCloud.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a global reach connection by name in a private cloud + /// Get a GlobalReachConnection /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareGlobalReachConnection_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a global reach connection by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a GlobalReachConnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareGlobalReachConnection_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -99,12 +99,12 @@ public partial class GetAzVMwareGlobalReachConnection_GetViaIdentityPrivateCloud /// Backing field for property. private string _name; - /// Name of the global reach connection in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the global reach connection in the private cloud")] + /// Name of the global reach connection + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the global reach connection")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the global reach connection in the private cloud", + Description = @"Name of the global reach connection", SerializedName = @"globalReachConnectionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("GlobalReachConnectionName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_List.cs index fe34dcda99d2..b16667373be1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List global reach connections in a private cloud + /// List GlobalReachConnection resources by PrivateCloud /// /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareGlobalReachConnection_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List global reach connections in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List GlobalReachConnection resources by PrivateCloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections", ApiVersion = "2023-09-01")] public partial class GetAzVMwareGlobalReachConnection_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -154,12 +154,12 @@ public partial class GetAzVMwareGlobalReachConnection_List : global::System.Mana /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -187,12 +187,12 @@ public partial class GetAzVMwareGlobalReachConnection_List : global::System.Mana /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -470,12 +470,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -487,7 +487,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnectionListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareIscsiPath_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareIscsiPath_Get.cs new file mode 100644 index 000000000000..144b7be483d9 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareIscsiPath_Get.cs @@ -0,0 +1,507 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; + using System; + + /// Get a IscsiPath + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareIscsiPath_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath))] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a IscsiPath")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default", ApiVersion = "2023-09-01")] + public partial class GetAzVMwareIscsiPath_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.VMware.VMware Client => Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _privateCloudName; + + /// Name of the private cloud + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the private cloud")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the private cloud", + SerializedName = @"privateCloudName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public string PrivateCloudName { get => this._privateCloudName; set => this._privateCloudName = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzVMwareIscsiPath_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.IscsiPathsGet(SubscriptionId, ResourceGroupName, PrivateCloudName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,PrivateCloudName=PrivateCloudName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareIscsiPath_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareIscsiPath_GetViaIdentity.cs new file mode 100644 index 000000000000..55a122ad7948 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareIscsiPath_GetViaIdentity.cs @@ -0,0 +1,485 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; + using System; + + /// Get a IscsiPath + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareIscsiPath_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath))] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a IscsiPath")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default", ApiVersion = "2023-09-01")] + public partial class GetAzVMwareIscsiPath_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.VMware.VMware Client => Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzVMwareIscsiPath_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.IscsiPathsGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.PrivateCloudName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PrivateCloudName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.IscsiPathsGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareIscsiPath_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareIscsiPath_List.cs new file mode 100644 index 000000000000..4a5bbdc57562 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareIscsiPath_List.cs @@ -0,0 +1,534 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; + using System; + + /// List IscsiPath resources by PrivateCloud + /// + /// [OpenAPI] ListByPrivateCloud=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareIscsiPath_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath))] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List IscsiPath resources by PrivateCloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths", ApiVersion = "2023-09-01")] + public partial class GetAzVMwareIscsiPath_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.VMware.VMware Client => Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _privateCloudName; + + /// Name of the private cloud + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the private cloud")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the private cloud", + SerializedName = @"privateCloudName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public string PrivateCloudName { get => this._privateCloudName; set => this._privateCloudName = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public GetAzVMwareIscsiPath_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.IscsiPathsListByPrivateCloud(SubscriptionId, ResourceGroupName, PrivateCloudName, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,PrivateCloudName=PrivateCloudName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPathListResult + var result = (await response); + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + if (null != result.Value) + { + if (0 == _responseSize && 1 == result.Value.Count) + { + _firstResponse = result.Value[0]; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + var values = new System.Collections.Generic.List(); + foreach( var value in result.Value ) + { + values.Add(value.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(values, true); + _responseSize = 2; + } + } + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (!String.IsNullOrEmpty(_nextLink)) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.IscsiPathsListByPrivateCloud_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareOperation_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareOperation_List.cs index aa49ac5f92b1..d5d7bb47b323 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareOperation_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareOperation_List.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Lists all of the available operations + /// List the operations for the provider /// /// [OpenAPI] List=>GET:"/providers/Microsoft.AVS/operations" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareOperation_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperation))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Lists all of the available operations")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List the operations for the provider")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/providers/Microsoft.AVS/operations", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/providers/Microsoft.AVS/operations", ApiVersion = "2023-09-01")] public partial class GetAzVMwareOperation_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -141,12 +141,12 @@ public partial class GetAzVMwareOperation_List : global::System.Management.Autom /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -421,12 +421,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -438,7 +438,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IOperationListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_Get.cs index b1135fbd3005..85c15e3cacb7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_Get.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a placement policy by name in a private cloud cluster + /// Get a PlacementPolicy /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwarePlacementPolicy_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a placement policy by name in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a PlacementPolicy")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwarePlacementPolicy_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -63,12 +63,12 @@ public partial class GetAzVMwarePlacementPolicy_Get : global::System.Management. /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -113,14 +113,12 @@ public partial class GetAzVMwarePlacementPolicy_Get : global::System.Management. /// Backing field for property. private string _name; - /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy")] + /// Name of the placement policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the placement policy.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy", + Description = @"Name of the placement policy.", SerializedName = @"placementPolicyName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PlacementPolicyName")] @@ -179,12 +177,12 @@ public partial class GetAzVMwarePlacementPolicy_Get : global::System.Management. /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentity.cs index b4acaff65543..8a722434c648 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a placement policy by name in a private cloud cluster + /// Get a PlacementPolicy /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwarePlacementPolicy_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a placement policy by name in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a PlacementPolicy")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwarePlacementPolicy_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityCluster.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityCluster.cs index c77cce48d580..ed3ebb19b4c3 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityCluster.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityCluster.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a placement policy by name in a private cloud cluster + /// Get a PlacementPolicy /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwarePlacementPolicy_GetViaIdentityCluster")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a placement policy by name in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a PlacementPolicy")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwarePlacementPolicy_GetViaIdentityCluster : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -107,14 +107,12 @@ public partial class GetAzVMwarePlacementPolicy_GetViaIdentityCluster : global:: /// Backing field for property. private string _name; - /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy")] + /// Name of the placement policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the placement policy.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy", + Description = @"Name of the placement policy.", SerializedName = @"placementPolicyName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PlacementPolicyName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityPrivateCloud.cs index d1390d7a6e1b..1f397c592633 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityPrivateCloud.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a placement policy by name in a private cloud cluster + /// Get a PlacementPolicy /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwarePlacementPolicy_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a placement policy by name in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a PlacementPolicy")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwarePlacementPolicy_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -63,12 +63,12 @@ public partial class GetAzVMwarePlacementPolicy_GetViaIdentityPrivateCloud : glo /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -113,14 +113,12 @@ public partial class GetAzVMwarePlacementPolicy_GetViaIdentityPrivateCloud : glo /// Backing field for property. private string _name; - /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy")] + /// Name of the placement policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the placement policy.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy", + Description = @"Name of the placement policy.", SerializedName = @"placementPolicyName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PlacementPolicyName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_List.cs index 21286b9877d0..1cbcf48b16a5 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List placement policies in a private cloud cluster + /// List PlacementPolicy resources by Cluster /// /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwarePlacementPolicy_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List placement policies in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List PlacementPolicy resources by Cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies", ApiVersion = "2023-09-01")] public partial class GetAzVMwarePlacementPolicy_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -69,12 +69,12 @@ public partial class GetAzVMwarePlacementPolicy_List : global::System.Management /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -168,12 +168,12 @@ public partial class GetAzVMwarePlacementPolicy_List : global::System.Management /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -201,12 +201,12 @@ public partial class GetAzVMwarePlacementPolicy_List : global::System.Management /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -484,12 +484,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -501,7 +501,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPoliciesList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloudAdminCredential_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloudAdminCredential_List.cs index a0c4ab767f8d..5e9f4714b7bd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloudAdminCredential_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloudAdminCredential_List.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAdminCredentials))] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List the admin credentials for the private cloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/listAdminCredentials", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/listAdminCredentials", ApiVersion = "2023-09-01")] public partial class GetAzVMwarePrivateCloudAdminCredential_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -148,12 +148,12 @@ public partial class GetAzVMwarePrivateCloudAdminCredential_List : global::Syste /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_Get.cs index 1ec219a45b10..5daee2db1bf1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_Get.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a private cloud + /// Get a PrivateCloud /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwarePrivateCloud_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a PrivateCloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwarePrivateCloud_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -149,12 +149,12 @@ public partial class GetAzVMwarePrivateCloud_Get : global::System.Management.Aut /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_GetViaIdentity.cs index 0f0399e112ef..19a9296bfcbb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_GetViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a private cloud + /// Get a PrivateCloud /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwarePrivateCloud_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a PrivateCloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwarePrivateCloud_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List.cs index 761fe1a4d037..26014ff921b4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List private clouds in a resource group + /// List PrivateCloud resources by subscription ID /// - /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds" + /// [OpenAPI] ListInSubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.AVS/privateClouds" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwarePrivateCloud_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List private clouds in a resource group")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List PrivateCloud resources by subscription ID")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.AVS/privateClouds", ApiVersion = "2023-09-01")] public partial class GetAzVMwarePrivateCloud_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -123,29 +123,15 @@ public partial class GetAzVMwarePrivateCloud_List : global::System.Management.Au [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Backing field for property. - private string _resourceGroupName; - - /// The name of the resource group. The name is case insensitive. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The name of the resource group. The name is case insensitive.", - SerializedName = @"resourceGroupName", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] - public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -173,12 +159,12 @@ public partial class GetAzVMwarePrivateCloud_List : global::System.Management.Au /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -372,13 +358,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateCloudsList(SubscriptionId, ResourceGroupName, onOk, onDefault, this, Pipeline); + await this.Client.PrivateCloudsListInSubscription(SubscriptionId, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -456,12 +442,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -473,7 +459,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink @@ -510,7 +496,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateCloudsList_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.PrivateCloudsListInSubscription_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List1.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List1.cs index 3a7607a6c84b..babd0904eeeb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List1.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List1.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List private clouds in a subscription + /// List PrivateCloud resources by resource group /// - /// [OpenAPI] ListInSubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.AVS/privateClouds" + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwarePrivateCloud_List1")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List private clouds in a subscription")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List PrivateCloud resources by resource group")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.AVS/privateClouds", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds", ApiVersion = "2023-09-01")] public partial class GetAzVMwarePrivateCloud_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -123,15 +123,29 @@ public partial class GetAzVMwarePrivateCloud_List1 : global::System.Management.A [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -159,12 +173,12 @@ public partial class GetAzVMwarePrivateCloud_List1 : global::System.Management.A /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -358,13 +372,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateCloudsListInSubscription(SubscriptionId, onOk, onDefault, this, Pipeline); + await this.Client.PrivateCloudsList(SubscriptionId, ResourceGroupName, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -442,12 +456,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -459,7 +473,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink @@ -496,7 +510,7 @@ protected override void StopProcessing() { requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Method.Get ); await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateCloudsListInSubscription_Call(requestMessage, onOk, onDefault, this, Pipeline); + await this.Client.PrivateCloudsList_Call(requestMessage, onOk, onDefault, this, Pipeline); } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_Get.cs index ba8c0728efde..a72ad87bcaae 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_Get.cs @@ -10,18 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// - /// Return information about a script cmdlet resource in a specific package on a private cloud - /// + /// Get a ScriptCmdlet /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareScriptCmdlet_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdlet))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Return information about a script cmdlet resource in a specific package on a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a ScriptCmdlet")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareScriptCmdlet_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -102,12 +100,12 @@ public partial class GetAzVMwareScriptCmdlet_Get : global::System.Management.Aut /// Backing field for property. private string _name; - /// Name of the script cmdlet resource in the script package in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script cmdlet resource in the script package in the private cloud")] + /// Name of the script cmdlet. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script cmdlet.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the script cmdlet resource in the script package in the private cloud", + Description = @"Name of the script cmdlet.", SerializedName = @"scriptCmdletName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ScriptCmdletName")] @@ -166,12 +164,12 @@ public partial class GetAzVMwareScriptCmdlet_Get : global::System.Management.Aut /// Backing field for property. private string _scriptPackageName; - /// Name of the script package in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script package in the private cloud")] + /// Name of the script package. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script package.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the script package in the private cloud", + Description = @"Name of the script package.", SerializedName = @"scriptPackageName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -180,12 +178,12 @@ public partial class GetAzVMwareScriptCmdlet_Get : global::System.Management.Aut /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentity.cs index 38881dafcf91..74fe76119e81 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentity.cs @@ -10,18 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// - /// Return information about a script cmdlet resource in a specific package on a private cloud - /// + /// Get a ScriptCmdlet /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareScriptCmdlet_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdlet))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Return information about a script cmdlet resource in a specific package on a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a ScriptCmdlet")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareScriptCmdlet_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityPrivateCloud.cs index 04f12576b766..4230e17a87a1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityPrivateCloud.cs @@ -10,18 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// - /// Return information about a script cmdlet resource in a specific package on a private cloud - /// + /// Get a ScriptCmdlet /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareScriptCmdlet_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdlet))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Return information about a script cmdlet resource in a specific package on a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a ScriptCmdlet")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareScriptCmdlet_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -102,12 +100,12 @@ public partial class GetAzVMwareScriptCmdlet_GetViaIdentityPrivateCloud : global /// Backing field for property. private string _name; - /// Name of the script cmdlet resource in the script package in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script cmdlet resource in the script package in the private cloud")] + /// Name of the script cmdlet. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script cmdlet.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the script cmdlet resource in the script package in the private cloud", + Description = @"Name of the script cmdlet.", SerializedName = @"scriptCmdletName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ScriptCmdletName")] @@ -146,12 +144,12 @@ public partial class GetAzVMwareScriptCmdlet_GetViaIdentityPrivateCloud : global /// Backing field for property. private string _scriptPackageName; - /// Name of the script package in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script package in the private cloud")] + /// Name of the script package. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script package.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the script package in the private cloud", + Description = @"Name of the script package.", SerializedName = @"scriptPackageName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityScriptPackage.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityScriptPackage.cs index 9ba6a7b3bc10..a9548fa90e4a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityScriptPackage.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityScriptPackage.cs @@ -10,18 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// - /// Return information about a script cmdlet resource in a specific package on a private cloud - /// + /// Get a ScriptCmdlet /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareScriptCmdlet_GetViaIdentityScriptPackage")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdlet))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Return information about a script cmdlet resource in a specific package on a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a ScriptCmdlet")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets/{scriptCmdletName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareScriptCmdlet_GetViaIdentityScriptPackage : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -102,12 +100,12 @@ public partial class GetAzVMwareScriptCmdlet_GetViaIdentityScriptPackage : globa /// Backing field for property. private string _name; - /// Name of the script cmdlet resource in the script package in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script cmdlet resource in the script package in the private cloud")] + /// Name of the script cmdlet. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script cmdlet.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the script cmdlet resource in the script package in the private cloud", + Description = @"Name of the script cmdlet.", SerializedName = @"scriptCmdletName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ScriptCmdletName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_List.cs index 6e014627a7db..b8a397facce3 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_List.cs @@ -10,18 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// - /// List script cmdlet resources available for a private cloud to List a script execution resource on a private cloud - /// + /// List ScriptCmdlet resources by ScriptPackage /// /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareScriptCmdlet_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdlet))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List script cmdlet resources available for a private cloud to List a script execution resource on a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List ScriptCmdlet resources by ScriptPackage")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets", ApiVersion = "2023-09-01")] public partial class GetAzVMwareScriptCmdlet_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -157,12 +155,12 @@ public partial class GetAzVMwareScriptCmdlet_List : global::System.Management.Au /// Backing field for property. private string _scriptPackageName; - /// Name of the script package in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script package in the private cloud")] + /// Name of the script package. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script package.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the script package in the private cloud", + Description = @"Name of the script package.", SerializedName = @"scriptPackageName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -171,12 +169,12 @@ public partial class GetAzVMwareScriptCmdlet_List : global::System.Management.Au /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -204,12 +202,12 @@ public partial class GetAzVMwareScriptCmdlet_List : global::System.Management.Au /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -487,12 +485,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -504,7 +502,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletsList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdletListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_Get.cs index 0e5ad9b9e0b1..093f0e29962a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_Get.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution))] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Return the logs for a script execution resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}/getExecutionLogs", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}/getExecutionLogs", ApiVersion = "2023-09-01")] public partial class GetAzVMwareScriptExecutionLog_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -149,12 +149,12 @@ public partial class GetAzVMwareScriptExecutionLog_Get : global::System.Manageme /// Backing field for property. private string _scriptExecutionName; - /// Name of the user-invoked script execution resource - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the user-invoked script execution resource")] + /// Name of the script cmdlet. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script cmdlet.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the user-invoked script execution resource", + Description = @"Name of the script cmdlet.", SerializedName = @"scriptExecutionName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -179,12 +179,12 @@ public partial class GetAzVMwareScriptExecutionLog_Get : global::System.Manageme /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentity.cs index db14605c458d..82ea89ee6226 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution))] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Return the logs for a script execution resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}/getExecutionLogs", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}/getExecutionLogs", ApiVersion = "2023-09-01")] public partial class GetAzVMwareScriptExecutionLog_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud.cs index d7b206424e06..4adaa060aba3 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution))] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Return the logs for a script execution resource")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}/getExecutionLogs", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}/getExecutionLogs", ApiVersion = "2023-09-01")] public partial class GetAzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -129,12 +129,12 @@ public partial class GetAzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud : /// Backing field for property. private string _scriptExecutionName; - /// Name of the user-invoked script execution resource - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the user-invoked script execution resource")] + /// Name of the script cmdlet. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script cmdlet.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the user-invoked script execution resource", + Description = @"Name of the script cmdlet.", SerializedName = @"scriptExecutionName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_Get.cs index 41c045159dd6..21b4fed560bc 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_Get.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get an script execution by name in a private cloud + /// Get a ScriptExecution /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareScriptExecution_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get an script execution by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a ScriptExecution")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareScriptExecution_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -100,12 +100,12 @@ public partial class GetAzVMwareScriptExecution_Get : global::System.Management. /// Backing field for property. private string _name; - /// Name of the user-invoked script execution resource - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the user-invoked script execution resource")] + /// Name of the script cmdlet. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script cmdlet.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the user-invoked script execution resource", + Description = @"Name of the script cmdlet.", SerializedName = @"scriptExecutionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ScriptExecutionName")] @@ -164,12 +164,12 @@ public partial class GetAzVMwareScriptExecution_Get : global::System.Management. /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentity.cs index 1a2cfbdb291f..38a8659a3efd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get an script execution by name in a private cloud + /// Get a ScriptExecution /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareScriptExecution_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get an script execution by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a ScriptExecution")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareScriptExecution_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentityPrivateCloud.cs index f41db84bdb00..89c51cde2d7c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentityPrivateCloud.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get an script execution by name in a private cloud + /// Get a ScriptExecution /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareScriptExecution_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get an script execution by name in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a ScriptExecution")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareScriptExecution_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -100,12 +100,12 @@ public partial class GetAzVMwareScriptExecution_GetViaIdentityPrivateCloud : glo /// Backing field for property. private string _name; - /// Name of the user-invoked script execution resource - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the user-invoked script execution resource")] + /// Name of the script cmdlet. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script cmdlet.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the user-invoked script execution resource", + Description = @"Name of the script cmdlet.", SerializedName = @"scriptExecutionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ScriptExecutionName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_List.cs index a6c6ec2bef52..40e04adf7f8f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_List.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List script executions in a private cloud + /// List ScriptExecution resources by PrivateCloud /// /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareScriptExecution_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List script executions in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List ScriptExecution resources by PrivateCloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions", ApiVersion = "2023-09-01")] public partial class GetAzVMwareScriptExecution_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -155,12 +155,12 @@ public partial class GetAzVMwareScriptExecution_List : global::System.Management /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class GetAzVMwareScriptExecution_List : global::System.Management /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -471,12 +471,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +488,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionsList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_Get.cs index 7415ac2bec7e..abaaa7d1971a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_Get.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a script package available to run on a private cloud + /// Get a ScriptPackage /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareScriptPackage_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a script package available to run on a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a ScriptPackage")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareScriptPackage_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -100,12 +100,12 @@ public partial class GetAzVMwareScriptPackage_Get : global::System.Management.Au /// Backing field for property. private string _name; - /// Name of the script package in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script package in the private cloud")] + /// Name of the script package. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script package.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the script package in the private cloud", + Description = @"Name of the script package.", SerializedName = @"scriptPackageName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ScriptPackageName")] @@ -164,12 +164,12 @@ public partial class GetAzVMwareScriptPackage_Get : global::System.Management.Au /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentity.cs index edf41dc7c020..8a6b2cd546bd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a script package available to run on a private cloud + /// Get a ScriptPackage /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareScriptPackage_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a script package available to run on a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a ScriptPackage")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareScriptPackage_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentityPrivateCloud.cs index 10d3a21e5d26..24b39e8831d1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentityPrivateCloud.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a script package available to run on a private cloud + /// Get a ScriptPackage /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareScriptPackage_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a script package available to run on a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a ScriptPackage")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareScriptPackage_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -100,12 +100,12 @@ public partial class GetAzVMwareScriptPackage_GetViaIdentityPrivateCloud : globa /// Backing field for property. private string _name; - /// Name of the script package in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script package in the private cloud")] + /// Name of the script package. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script package.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the script package in the private cloud", + Description = @"Name of the script package.", SerializedName = @"scriptPackageName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ScriptPackageName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_List.cs index 41b95ce80b3a..cecaa718a124 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_List.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List script packages available to run on the private cloud + /// List ScriptPackage resources by PrivateCloud /// /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareScriptPackage_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackage))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List script packages available to run on the private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List ScriptPackage resources by PrivateCloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages", ApiVersion = "2023-09-01")] public partial class GetAzVMwareScriptPackage_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -155,12 +155,12 @@ public partial class GetAzVMwareScriptPackage_List : global::System.Management.A /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class GetAzVMwareScriptPackage_List : global::System.Management.A /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -471,12 +471,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +488,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackagesList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptPackageListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_Get.cs index 919d5e3ac642..9769095c2b07 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_Get.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a virtual machine by id in a private cloud cluster + /// Get a VirtualMachine /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareVirtualMachine_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a virtual machine by id in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a VirtualMachine")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareVirtualMachine_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -63,12 +63,12 @@ public partial class GetAzVMwareVirtualMachine_Get : global::System.Management.A /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -102,12 +102,12 @@ public partial class GetAzVMwareVirtualMachine_Get : global::System.Management.A /// Backing field for property. private string _id; - /// Virtual Machine identifier - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Virtual Machine identifier")] + /// ID of the virtual machine. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the virtual machine.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Virtual Machine identifier", + Description = @"ID of the virtual machine.", SerializedName = @"virtualMachineId", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("VirtualMachineId")] @@ -177,12 +177,12 @@ public partial class GetAzVMwareVirtualMachine_Get : global::System.Management.A /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentity.cs index 563afe2b36de..3960bf1b1809 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a virtual machine by id in a private cloud cluster + /// Get a VirtualMachine /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareVirtualMachine_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a virtual machine by id in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a VirtualMachine")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareVirtualMachine_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityCluster.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityCluster.cs index e3809cd9189a..3df2126e4d21 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityCluster.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityCluster.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a virtual machine by id in a private cloud cluster + /// Get a VirtualMachine /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareVirtualMachine_GetViaIdentityCluster")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a virtual machine by id in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a VirtualMachine")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareVirtualMachine_GetViaIdentityCluster : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -96,12 +96,12 @@ public partial class GetAzVMwareVirtualMachine_GetViaIdentityCluster : global::S /// Backing field for property. private string _id; - /// Virtual Machine identifier - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Virtual Machine identifier")] + /// ID of the virtual machine. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the virtual machine.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Virtual Machine identifier", + Description = @"ID of the virtual machine.", SerializedName = @"virtualMachineId", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("VirtualMachineId")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityPrivateCloud.cs index d11cf76ceb23..58a98ae3c841 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityPrivateCloud.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a virtual machine by id in a private cloud cluster + /// Get a VirtualMachine /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareVirtualMachine_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a virtual machine by id in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a VirtualMachine")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareVirtualMachine_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -63,12 +63,12 @@ public partial class GetAzVMwareVirtualMachine_GetViaIdentityPrivateCloud : glob /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -102,12 +102,12 @@ public partial class GetAzVMwareVirtualMachine_GetViaIdentityPrivateCloud : glob /// Backing field for property. private string _id; - /// Virtual Machine identifier - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Virtual Machine identifier")] + /// ID of the virtual machine. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the virtual machine.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Virtual Machine identifier", + Description = @"ID of the virtual machine.", SerializedName = @"virtualMachineId", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("VirtualMachineId")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_List.cs index 8b5c8f6ea4de..4dbe050a4a35 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_List.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List of virtual machines in a private cloud cluster + /// List VirtualMachine resources by Cluster /// /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareVirtualMachine_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List of virtual machines in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List VirtualMachine resources by Cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines", ApiVersion = "2023-09-01")] public partial class GetAzVMwareVirtualMachine_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -69,12 +69,12 @@ public partial class GetAzVMwareVirtualMachine_List : global::System.Management. /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -168,12 +168,12 @@ public partial class GetAzVMwareVirtualMachine_List : global::System.Management. /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -201,12 +201,12 @@ public partial class GetAzVMwareVirtualMachine_List : global::System.Management. /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -484,12 +484,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -501,7 +501,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachinesList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVirtualMachineListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_Get.cs index 02d43851884a..08b5f3b213ea 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_Get.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get dhcp by id in a private cloud workload network. + /// Get a WorkloadNetworkDhcp /// /// [OpenAPI] GetDhcp=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkDhcp_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get dhcp by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkDhcp")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkDhcp_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -74,12 +74,12 @@ public partial class GetAzVMwareWorkloadNetworkDhcp_Get : global::System.Managem /// Backing field for property. private string _dhcpName; - /// NSX DHCP identifier. Generally the same as the DHCP display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DHCP identifier. Generally the same as the DHCP display name")] + /// The ID of the DHCP configuration + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the DHCP configuration")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DHCP identifier. Generally the same as the DHCP display name", + Description = @"The ID of the DHCP configuration", SerializedName = @"dhcpId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -163,12 +163,12 @@ public partial class GetAzVMwareWorkloadNetworkDhcp_Get : global::System.Managem /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentity.cs index 1c252abc3102..07a5d6c112c4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get dhcp by id in a private cloud workload network. + /// Get a WorkloadNetworkDhcp /// /// [OpenAPI] GetDhcp=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkDhcp_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get dhcp by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkDhcp")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkDhcp_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentityDhcpConfiguration.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentityDhcpConfiguration.cs index 082370b60cc4..51cc14fb63b6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentityDhcpConfiguration.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentityDhcpConfiguration.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get dhcp by id in a private cloud workload network. + /// Get a WorkloadNetworkDhcp /// /// [OpenAPI] GetDhcp=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkDhcp_GetViaIdentityDhcpConfiguration")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get dhcp by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkDhcp")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkDhcp_GetViaIdentityDhcpConfiguration : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_List.cs index ea74a12c28b0..305a9fd62aee 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_List.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List dhcp in a private cloud workload network. + /// List WorkloadNetworkDhcp resources by WorkloadNetwork /// /// [OpenAPI] ListDhcp=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkDhcp_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List dhcp in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List WorkloadNetworkDhcp resources by WorkloadNetwork")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkDhcp_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -155,12 +155,12 @@ public partial class GetAzVMwareWorkloadNetworkDhcp_List : global::System.Manage /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class GetAzVMwareWorkloadNetworkDhcp_List : global::System.Manage /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -471,12 +471,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +488,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_Get.cs index 6ab844f03d05..e87a49230613 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_Get.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a DNS service by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsService /// /// [OpenAPI] GetDnsService=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkDnsService_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a DNS service by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkDnsService")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkDnsService_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -74,14 +74,12 @@ public partial class GetAzVMwareWorkloadNetworkDnsService_Get : global::System.M /// Backing field for property. private string _dnsServiceName; - /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DNS Service identifier. Generally the same as the DNS Service's display name")] + /// ID of the DNS service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS service.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DNS Service identifier. Generally the same as the DNS Service's display name", + Description = @"ID of the DNS service.", SerializedName = @"dnsServiceId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -165,12 +163,12 @@ public partial class GetAzVMwareWorkloadNetworkDnsService_Get : global::System.M /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentity.cs index b75e7f9ded8e..7d59d04e8248 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a DNS service by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsService /// /// [OpenAPI] GetDnsService=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkDnsService_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a DNS service by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkDnsService")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkDnsService_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentityPrivateCloud.cs index 5e94a0beea34..799f9bde939e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentityPrivateCloud.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a DNS service by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsService /// /// [OpenAPI] GetDnsService=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkDnsService_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a DNS service by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkDnsService")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkDnsService_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -74,14 +74,12 @@ public partial class GetAzVMwareWorkloadNetworkDnsService_GetViaIdentityPrivateC /// Backing field for property. private string _dnsServiceName; - /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DNS Service identifier. Generally the same as the DNS Service's display name")] + /// ID of the DNS service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS service.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DNS Service identifier. Generally the same as the DNS Service's display name", + Description = @"ID of the DNS service.", SerializedName = @"dnsServiceId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_List.cs index ae3b7ae2eebb..de8b4903709d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_List.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List of DNS services in a private cloud workload network. + /// List WorkloadNetworkDnsService resources by WorkloadNetwork /// /// [OpenAPI] ListDnsServices=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkDnsService_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List of DNS services in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List WorkloadNetworkDnsService resources by WorkloadNetwork")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkDnsService_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -155,12 +155,12 @@ public partial class GetAzVMwareWorkloadNetworkDnsService_List : global::System. /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class GetAzVMwareWorkloadNetworkDnsService_List : global::System. /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -471,12 +471,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +488,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServicesList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_Get.cs index e3e16402a14c..0d185ed69cf3 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_Get.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a DNS zone by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsZone /// /// [OpenAPI] GetDnsZone=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkDnsZone_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a DNS zone by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkDnsZone")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkDnsZone_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -74,12 +74,12 @@ public partial class GetAzVMwareWorkloadNetworkDnsZone_Get : global::System.Mana /// Backing field for property. private string _dnsZoneName; - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DNS Zone identifier. Generally the same as the DNS Zone's display name")] + /// ID of the DNS zone. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS zone.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DNS Zone identifier. Generally the same as the DNS Zone's display name", + Description = @"ID of the DNS zone.", SerializedName = @"dnsZoneId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -163,12 +163,12 @@ public partial class GetAzVMwareWorkloadNetworkDnsZone_Get : global::System.Mana /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentity.cs index 452a79792a81..248f001b7ba9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a DNS zone by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsZone /// /// [OpenAPI] GetDnsZone=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkDnsZone_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a DNS zone by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkDnsZone")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentityPrivateCloud.cs index 9ca64307bf22..898e539c73f1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentityPrivateCloud.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a DNS zone by id in a private cloud workload network. + /// Get a WorkloadNetworkDnsZone /// /// [OpenAPI] GetDnsZone=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkDnsZone_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a DNS zone by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkDnsZone")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -74,12 +74,12 @@ public partial class GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentityPrivateClou /// Backing field for property. private string _dnsZoneName; - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DNS Zone identifier. Generally the same as the DNS Zone's display name")] + /// ID of the DNS zone. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS zone.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DNS Zone identifier. Generally the same as the DNS Zone's display name", + Description = @"ID of the DNS zone.", SerializedName = @"dnsZoneId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_List.cs index c70554dd7a05..84cd95208746 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_List.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List of DNS zones in a private cloud workload network. + /// List WorkloadNetworkDnsZone resources by WorkloadNetwork /// /// [OpenAPI] ListDnsZones=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkDnsZone_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List of DNS zones in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List WorkloadNetworkDnsZone resources by WorkloadNetwork")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkDnsZone_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -155,12 +155,12 @@ public partial class GetAzVMwareWorkloadNetworkDnsZone_List : global::System.Man /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class GetAzVMwareWorkloadNetworkDnsZone_List : global::System.Man /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -471,12 +471,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +488,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZonesList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_Get.cs index 7ea13f3dfdd9..065a3df859bb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_Get.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a gateway by id in a private cloud workload network. + /// Get a WorkloadNetworkGateway /// /// [OpenAPI] GetGateway=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkGateway_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGateway))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a gateway by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkGateway")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkGateway_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -77,12 +77,12 @@ public partial class GetAzVMwareWorkloadNetworkGateway_Get : global::System.Mana /// Backing field for property. private string _gatewayName; - /// NSX Gateway identifier. Generally the same as the Gateway's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Gateway identifier. Generally the same as the Gateway's display name")] + /// The ID of the NSX Gateway + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the NSX Gateway")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Gateway identifier. Generally the same as the Gateway's display name", + Description = @"The ID of the NSX Gateway", SerializedName = @"gatewayId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -163,12 +163,12 @@ public partial class GetAzVMwareWorkloadNetworkGateway_Get : global::System.Mana /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentity.cs index 933fc709e3f4..e90b85de04fb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a gateway by id in a private cloud workload network. + /// Get a WorkloadNetworkGateway /// /// [OpenAPI] GetGateway=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkGateway_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGateway))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a gateway by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkGateway")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkGateway_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentityPrivateCloud.cs index 57c4a9c6e455..d9e378e5cc47 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentityPrivateCloud.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a gateway by id in a private cloud workload network. + /// Get a WorkloadNetworkGateway /// /// [OpenAPI] GetGateway=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkGateway_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGateway))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a gateway by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkGateway")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkGateway_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -77,12 +77,12 @@ public partial class GetAzVMwareWorkloadNetworkGateway_GetViaIdentityPrivateClou /// Backing field for property. private string _gatewayName; - /// NSX Gateway identifier. Generally the same as the Gateway's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Gateway identifier. Generally the same as the Gateway's display name")] + /// The ID of the NSX Gateway + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the NSX Gateway")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Gateway identifier. Generally the same as the Gateway's display name", + Description = @"The ID of the NSX Gateway", SerializedName = @"gatewayId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_List.cs index e1e10142e5ef..4c0f4f2d6784 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_List.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List of gateways in a private cloud workload network. + /// List WorkloadNetworkGateway resources by WorkloadNetwork /// /// [OpenAPI] ListGateways=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkGateway_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGateway))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List of gateways in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List WorkloadNetworkGateway resources by WorkloadNetwork")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkGateway_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -155,12 +155,12 @@ public partial class GetAzVMwareWorkloadNetworkGateway_List : global::System.Man /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class GetAzVMwareWorkloadNetworkGateway_List : global::System.Man /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -471,12 +471,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +488,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkGatewayListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_Get.cs index d3f2e346bfda..c8438529032c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_Get.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a port mirroring profile by id in a private cloud workload network. + /// Get a WorkloadNetworkPortMirroring /// /// [OpenAPI] GetPortMirroring=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkPortMirroring_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a port mirroring profile by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkPortMirroring")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkPortMirroring_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -105,14 +105,12 @@ public partial class GetAzVMwareWorkloadNetworkPortMirroring_Get : global::Syste /// Backing field for property. private string _portMirroringName; - /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name")] + /// ID of the NSX port mirroring profile. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the NSX port mirroring profile.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name", + Description = @"ID of the NSX port mirroring profile.", SerializedName = @"portMirroringId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -165,12 +163,12 @@ public partial class GetAzVMwareWorkloadNetworkPortMirroring_Get : global::Syste /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentity.cs index d82023e6483d..c172d8aa6bda 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a port mirroring profile by id in a private cloud workload network. + /// Get a WorkloadNetworkPortMirroring /// /// [OpenAPI] GetPortMirroring=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkPortMirroring_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a port mirroring profile by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkPortMirroring")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentityPrivateCloud.cs index d4e0b405daaf..396e0f033aac 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentityPrivateCloud.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a port mirroring profile by id in a private cloud workload network. + /// Get a WorkloadNetworkPortMirroring /// /// [OpenAPI] GetPortMirroring=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkPortMirroring_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a port mirroring profile by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkPortMirroring")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -105,14 +105,12 @@ public partial class GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentityPriva /// Backing field for property. private string _portMirroringName; - /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name")] + /// ID of the NSX port mirroring profile. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the NSX port mirroring profile.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name", + Description = @"ID of the NSX port mirroring profile.", SerializedName = @"portMirroringId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_List.cs index 62943ce81df1..10bb9e31eb8a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_List.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List of port mirroring profiles in a private cloud workload network. + /// List WorkloadNetworkPortMirroring resources by WorkloadNetwork /// /// [OpenAPI] ListPortMirroring=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkPortMirroring_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List of port mirroring profiles in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List WorkloadNetworkPortMirroring resources by WorkloadNetwork")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkPortMirroring_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -155,12 +155,12 @@ public partial class GetAzVMwareWorkloadNetworkPortMirroring_List : global::Syst /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class GetAzVMwareWorkloadNetworkPortMirroring_List : global::Syst /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -471,12 +471,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +488,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_Get.cs index fac5dc0ebd59..6dd41cbcc8a2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_Get.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a Public IP Block by id in a private cloud workload network. + /// Get a WorkloadNetworkPublicIP /// /// [OpenAPI] GetPublicIP=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkPublicIP_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIP))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a Public IP Block by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkPublicIP")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkPublicIP_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -135,14 +135,12 @@ public partial class GetAzVMwareWorkloadNetworkPublicIP_Get : global::System.Man /// Backing field for property. private string _publicIPName; - /// - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Public IP Block identifier. Generally the same as the Public IP Block's display name")] + /// ID of the DNS zone. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS zone.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Public IP Block identifier. Generally the same as the Public IP Block's display name", + Description = @"ID of the DNS zone.", SerializedName = @"publicIPId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -165,12 +163,12 @@ public partial class GetAzVMwareWorkloadNetworkPublicIP_Get : global::System.Man /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentity.cs index 7644f0f43a77..dfbd0b9b0c60 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a Public IP Block by id in a private cloud workload network. + /// Get a WorkloadNetworkPublicIP /// /// [OpenAPI] GetPublicIP=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkPublicIP_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIP))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a Public IP Block by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkPublicIP")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentityPrivateCloud.cs index 8d2460ac14d3..ad19fb82b6f0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentityPrivateCloud.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a Public IP Block by id in a private cloud workload network. + /// Get a WorkloadNetworkPublicIP /// /// [OpenAPI] GetPublicIP=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkPublicIP_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIP))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a Public IP Block by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkPublicIP")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -129,14 +129,12 @@ public partial class GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentityPrivateClo /// Backing field for property. private string _publicIPName; - /// - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Public IP Block identifier. Generally the same as the Public IP Block's display name")] + /// ID of the DNS zone. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS zone.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Public IP Block identifier. Generally the same as the Public IP Block's display name", + Description = @"ID of the DNS zone.", SerializedName = @"publicIPId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_List.cs index 17c489a0e556..02ec195b11b9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_List.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List of Public IP Blocks in a private cloud workload network. + /// List WorkloadNetworkPublicIP resources by WorkloadNetwork /// /// [OpenAPI] ListPublicIPs=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkPublicIP_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIP))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List of Public IP Blocks in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List WorkloadNetworkPublicIP resources by WorkloadNetwork")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkPublicIP_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -155,12 +155,12 @@ public partial class GetAzVMwareWorkloadNetworkPublicIP_List : global::System.Ma /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class GetAzVMwareWorkloadNetworkPublicIP_List : global::System.Ma /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -471,12 +471,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +488,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPsList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIPListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_Get.cs index c37c121b9e8e..6e1c61f23b26 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_Get.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a segment by id in a private cloud workload network. + /// Get a WorkloadNetworkSegment /// /// [OpenAPI] GetSegment=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkSegment_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a segment by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkSegment")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkSegment_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -149,12 +149,12 @@ public partial class GetAzVMwareWorkloadNetworkSegment_Get : global::System.Mana /// Backing field for property. private string _segmentName; - /// NSX Segment identifier. Generally the same as the Segment's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Segment identifier. Generally the same as the Segment's display name")] + /// The ID of the NSX Segment + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the NSX Segment")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Segment identifier. Generally the same as the Segment's display name", + Description = @"The ID of the NSX Segment", SerializedName = @"segmentId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -163,12 +163,12 @@ public partial class GetAzVMwareWorkloadNetworkSegment_Get : global::System.Mana /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentity.cs index e7f455b89337..2bf1cc9619b7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a segment by id in a private cloud workload network. + /// Get a WorkloadNetworkSegment /// /// [OpenAPI] GetSegment=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkSegment_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a segment by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkSegment")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkSegment_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentityPrivateCloud.cs index 8976a11383ec..2f5a42d6575c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentityPrivateCloud.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a segment by id in a private cloud workload network. + /// Get a WorkloadNetworkSegment /// /// [OpenAPI] GetSegment=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkSegment_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a segment by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkSegment")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkSegment_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -129,12 +129,12 @@ public partial class GetAzVMwareWorkloadNetworkSegment_GetViaIdentityPrivateClou /// Backing field for property. private string _segmentName; - /// NSX Segment identifier. Generally the same as the Segment's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Segment identifier. Generally the same as the Segment's display name")] + /// The ID of the NSX Segment + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the NSX Segment")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Segment identifier. Generally the same as the Segment's display name", + Description = @"The ID of the NSX Segment", SerializedName = @"segmentId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_List.cs index 12db0b1eeb25..482071df4671 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_List.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List of segments in a private cloud workload network. + /// List WorkloadNetworkSegment resources by WorkloadNetwork /// /// [OpenAPI] ListSegments=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkSegment_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List of segments in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List WorkloadNetworkSegment resources by WorkloadNetwork")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkSegment_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -155,12 +155,12 @@ public partial class GetAzVMwareWorkloadNetworkSegment_List : global::System.Man /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class GetAzVMwareWorkloadNetworkSegment_List : global::System.Man /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -471,12 +471,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +488,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentsList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_Get.cs index 45ed9700cd3a..55e6ccb1e811 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_Get.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a vm group by id in a private cloud workload network. + /// Get a WorkloadNetworkVMGroup /// /// [OpenAPI] GetVMGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkVMGroup_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a vm group by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkVMGroup")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkVMGroup_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -149,12 +149,12 @@ public partial class GetAzVMwareWorkloadNetworkVMGroup_Get : global::System.Mana /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -168,12 +168,12 @@ public partial class GetAzVMwareWorkloadNetworkVMGroup_Get : global::System.Mana /// Backing field for property. private string _vMGroupName; - /// NSX VM Group identifier. Generally the same as the VM Group's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX VM Group identifier. Generally the same as the VM Group's display name")] + /// ID of the VM group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the VM group.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX VM Group identifier. Generally the same as the VM Group's display name", + Description = @"ID of the VM group.", SerializedName = @"vmGroupId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentity.cs index 6ed15099199e..b0ebdc6bd4f8 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a vm group by id in a private cloud workload network. + /// Get a WorkloadNetworkVMGroup /// /// [OpenAPI] GetVMGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkVMGroup_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a vm group by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkVMGroup")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentityPrivateCloud.cs index 9aa9a338739e..7c9b487eb300 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentityPrivateCloud.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a vm group by id in a private cloud workload network. + /// Get a WorkloadNetworkVMGroup /// /// [OpenAPI] GetVMGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkVMGroup_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a vm group by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkVMGroup")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -129,12 +129,12 @@ public partial class GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentityPrivateClou /// Backing field for property. private string _vMGroupName; - /// NSX VM Group identifier. Generally the same as the VM Group's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX VM Group identifier. Generally the same as the VM Group's display name")] + /// ID of the VM group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the VM group.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX VM Group identifier. Generally the same as the VM Group's display name", + Description = @"ID of the VM group.", SerializedName = @"vmGroupId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_List.cs index d7d429b681ff..36b31271e9b7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_List.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List of vm groups in a private cloud workload network. + /// List WorkloadNetworkVMGroup resources by WorkloadNetwork /// /// [OpenAPI] ListVMGroups=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkVMGroup_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List of vm groups in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List WorkloadNetworkVMGroup resources by WorkloadNetwork")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkVMGroup_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -155,12 +155,12 @@ public partial class GetAzVMwareWorkloadNetworkVMGroup_List : global::System.Man /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class GetAzVMwareWorkloadNetworkVMGroup_List : global::System.Man /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -471,12 +471,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +488,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupsList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_Get.cs index 54ce43c6adb7..b02ca62591c0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_Get.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a virtual machine by id in a private cloud workload network. + /// Get a WorkloadNetworkVirtualMachine /// /// [OpenAPI] GetVirtualMachine=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkVM_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a virtual machine by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkVirtualMachine")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkVM_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -149,12 +149,12 @@ public partial class GetAzVMwareWorkloadNetworkVM_Get : global::System.Managemen /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -168,12 +168,12 @@ public partial class GetAzVMwareWorkloadNetworkVM_Get : global::System.Managemen /// Backing field for property. private string _virtualMachineId; - /// Virtual Machine identifier - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Virtual Machine identifier")] + /// ID of the virtual machine. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the virtual machine.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Virtual Machine identifier", + Description = @"ID of the virtual machine.", SerializedName = @"virtualMachineId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentity.cs index e39e090679c6..1ad5f1a6d613 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a virtual machine by id in a private cloud workload network. + /// Get a WorkloadNetworkVirtualMachine /// /// [OpenAPI] GetVirtualMachine=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkVM_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a virtual machine by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkVirtualMachine")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkVM_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentityPrivateCloud.cs index 80432ac28704..2cdda6aa446e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentityPrivateCloud.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a virtual machine by id in a private cloud workload network. + /// Get a WorkloadNetworkVirtualMachine /// /// [OpenAPI] GetVirtualMachine=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkVM_GetViaIdentityPrivateCloud")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a virtual machine by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetworkVirtualMachine")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkVM_GetViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -129,12 +129,12 @@ public partial class GetAzVMwareWorkloadNetworkVM_GetViaIdentityPrivateCloud : g /// Backing field for property. private string _virtualMachineId; - /// Virtual Machine identifier - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Virtual Machine identifier")] + /// ID of the virtual machine. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the virtual machine.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Virtual Machine identifier", + Description = @"ID of the virtual machine.", SerializedName = @"virtualMachineId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_List.cs index 9d00dd89abf1..ceff5e342dc4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_List.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List of virtual machines in a private cloud workload network. + /// List WorkloadNetworkVirtualMachine resources by WorkloadNetwork /// /// [OpenAPI] ListVirtualMachines=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetworkVM_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachine))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List of virtual machines in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List WorkloadNetworkVirtualMachine resources by WorkloadNetwork")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetworkVM_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -155,12 +155,12 @@ public partial class GetAzVMwareWorkloadNetworkVM_List : global::System.Manageme /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class GetAzVMwareWorkloadNetworkVM_List : global::System.Manageme /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -471,12 +471,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +488,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachinesList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVirtualMachineListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_Get.cs index 7753988bc34c..e83ad51efc3c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_Get.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a private cloud workload network. + /// Get a WorkloadNetwork /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetwork_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetwork))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetwork")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetwork_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -149,12 +149,12 @@ public partial class GetAzVMwareWorkloadNetwork_Get : global::System.Management. /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_GetViaIdentity.cs index c4050ceecafb..d38dac5c8786 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_GetViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Get a private cloud workload network. + /// Get a WorkloadNetwork /// - /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetwork_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetwork))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Get a WorkloadNetwork")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/{workloadNetworkName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetwork_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_List.cs index 3292967b735d..602f639d1b06 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_List.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// List of workload networks in a private cloud. + /// List WorkloadNetwork resources by PrivateCloud /// /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareWorkloadNetwork_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetwork))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List of workload networks in a private cloud.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List WorkloadNetwork resources by PrivateCloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks", ApiVersion = "2023-09-01")] public partial class GetAzVMwareWorkloadNetwork_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -155,12 +155,12 @@ public partial class GetAzVMwareWorkloadNetwork_List : global::System.Management /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class GetAzVMwareWorkloadNetwork_List : global::System.Management /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -471,12 +471,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +488,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkList + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkListResult var result = (await response); // response should be returning an array of some kind. +Pageable // pageable / value / nextLink diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictExpanded.cs index 088dfef19ba5..967b409eb3d7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictExpanded.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Enable or disable DRS-driven VM movement restriction")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}/restrictMovement", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}/restrictMovement", ApiVersion = "2023-09-01")] public partial class LockAzVMwareVirtualMachineMovement_RestrictExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -72,12 +72,12 @@ public partial class LockAzVMwareVirtualMachineMovement_RestrictExpanded : globa /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -191,12 +191,12 @@ public partial class LockAzVMwareVirtualMachineMovement_RestrictExpanded : globa /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -210,12 +210,12 @@ public partial class LockAzVMwareVirtualMachineMovement_RestrictExpanded : globa /// Backing field for property. private string _virtualMachineId; - /// Virtual Machine identifier - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Virtual Machine identifier")] + /// ID of the virtual machine. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the virtual machine.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Virtual Machine identifier", + Description = @"ID of the virtual machine.", SerializedName = @"virtualMachineId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded.cs index 9d4a496e711f..ff47f63ce050 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Enable or disable DRS-driven VM movement restriction")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}/restrictMovement", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}/restrictMovement", ApiVersion = "2023-09-01")] public partial class LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -157,12 +157,12 @@ public partial class LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClust /// Backing field for property. private string _virtualMachineId; - /// Virtual Machine identifier - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Virtual Machine identifier")] + /// ID of the virtual machine. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the virtual machine.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Virtual Machine identifier", + Description = @"ID of the virtual machine.", SerializedName = @"virtualMachineId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded.cs index 00b1debeb8fc..09365fe3b65a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Enable or disable DRS-driven VM movement restriction")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}/restrictMovement", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}/restrictMovement", ApiVersion = "2023-09-01")] public partial class LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded.cs index 9ae88f11f411..4e6854696906 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Enable or disable DRS-driven VM movement restriction")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}/restrictMovement", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/virtualMachines/{virtualMachineId}/restrictMovement", ApiVersion = "2023-09-01")] public partial class LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -72,12 +72,12 @@ public partial class LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPriva /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -171,12 +171,12 @@ public partial class LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPriva /// Backing field for property. private string _virtualMachineId; - /// Virtual Machine identifier - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Virtual Machine identifier")] + /// ID of the virtual machine. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the virtual machine.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Virtual Machine identifier", + Description = @"ID of the virtual machine.", SerializedName = @"virtualMachineId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateExpanded.cs index d177f9ad13a4..ab8016597c0b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a addon in a private cloud + /// Create a Addon /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareAddon_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddon))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a addon in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a Addon")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareAddon_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -108,12 +108,12 @@ public partial class NewAzVMwareAddon_CreateExpanded : global::System.Management /// Backing field for property. private string _name; - /// Name of the addon for the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the addon for the private cloud")] + /// Name of the addon. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the addon.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the addon for the private cloud", + Description = @"Name of the addon.", SerializedName = @"addonName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AddonName")] @@ -136,24 +136,24 @@ public partial class NewAzVMwareAddon_CreateExpanded : global::System.Management /// Backing field for property. private string _privateCloudName; - /// The name of the private cloud. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private cloud.")] + /// Name of the private cloud + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the private cloud")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private cloud.", + Description = @"Name of the private cloud", SerializedName = @"privateCloudName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] public string PrivateCloudName { get => this._privateCloudName; set => this._privateCloudName = value; } - /// The properties of an addon resource - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The properties of an addon resource")] + /// The resource-specific properties for this resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource-specific properties for this resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The properties of an addon resource", + Description = @"The resource-specific properties for this resource.", SerializedName = @"properties", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties) })] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties Property { get => _addonBody.Property ?? null /* object */; set => _addonBody.Property = value; } @@ -191,12 +191,12 @@ public partial class NewAzVMwareAddon_CreateExpanded : global::System.Management /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityExpanded.cs index 7f61823aebee..648ef69576b0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a addon in a private cloud + /// Create a Addon /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareAddon_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddon))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a addon in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a Addon")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareAddon_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -126,13 +126,13 @@ public partial class NewAzVMwareAddon_CreateViaIdentityExpanded : global::System /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.HttpPipeline Pipeline { get; set; } - /// The properties of an addon resource - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The properties of an addon resource")] + /// The resource-specific properties for this resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource-specific properties for this resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The properties of an addon resource", + Description = @"The resource-specific properties for this resource.", SerializedName = @"properties", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties) })] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties Property { get => _addonBody.Property ?? null /* object */; set => _addonBody.Property = value; } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded.cs index c4f275c27f68..1da0f00e9e9d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a addon in a private cloud + /// Create a Addon /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareAddon_CreateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddon))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a addon in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a Addon")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -108,12 +108,12 @@ public partial class NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded : gl /// Backing field for property. private string _name; - /// Name of the addon for the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the addon for the private cloud")] + /// Name of the addon. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the addon.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the addon for the private cloud", + Description = @"Name of the addon.", SerializedName = @"addonName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AddonName")] @@ -141,13 +141,13 @@ public partial class NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded : gl [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity PrivateCloudInputObject { get => this._privateCloudInputObject; set => this._privateCloudInputObject = value; } - /// The properties of an addon resource - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The properties of an addon resource")] + /// The resource-specific properties for this resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource-specific properties for this resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The properties of an addon resource", + Description = @"The resource-specific properties for this resource.", SerializedName = @"properties", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties) })] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties Property { get => _addonBody.Property ?? null /* object */; set => _addonBody.Property = value; } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateExpanded.cs index d72ef78a6ab4..02361ead9aa0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create an ExpressRoute Circuit Authorization in a private cloud + /// Create a ExpressRouteAuthorization /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareAuthorization_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create an ExpressRoute Circuit Authorization in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a ExpressRouteAuthorization")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareAuthorization_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -78,6 +78,17 @@ public partial class NewAzVMwareAuthorization_CreateExpanded : global::System.Ma [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// The ID of the ExpressRoute Circuit + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ID of the ExpressRoute Circuit")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The ID of the ExpressRoute Circuit", + SerializedName = @"expressRouteId", + PossibleTypes = new [] { typeof(string) })] + public string ExpressRouteId { get => _authorizationBody.ExpressRouteId ?? null; set => _authorizationBody.ExpressRouteId = value; } + /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } @@ -107,12 +118,12 @@ public partial class NewAzVMwareAuthorization_CreateExpanded : global::System.Ma /// Backing field for property. private string _name; - /// Name of the ExpressRoute Circuit Authorization in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the ExpressRoute Circuit Authorization in the private cloud")] + /// Name of the ExpressRoute Circuit Authorization + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the ExpressRoute Circuit Authorization")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the ExpressRoute Circuit Authorization in the private cloud", + Description = @"Name of the ExpressRoute Circuit Authorization", SerializedName = @"authorizationName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AuthorizationName")] @@ -135,12 +146,12 @@ public partial class NewAzVMwareAuthorization_CreateExpanded : global::System.Ma /// Backing field for property. private string _privateCloudName; - /// The name of the private cloud. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private cloud.")] + /// Name of the private cloud + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the private cloud")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private cloud.", + Description = @"Name of the private cloud", SerializedName = @"privateCloudName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -179,12 +190,12 @@ public partial class NewAzVMwareAuthorization_CreateExpanded : global::System.Ma /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityExpanded.cs index 0e037174e641..f5ceea56010e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create an ExpressRoute Circuit Authorization in a private cloud + /// Create a ExpressRouteAuthorization /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareAuthorization_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create an ExpressRoute Circuit Authorization in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a ExpressRouteAuthorization")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareAuthorization_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -78,6 +78,17 @@ public partial class NewAzVMwareAuthorization_CreateViaIdentityExpanded : global [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// The ID of the ExpressRoute Circuit + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ID of the ExpressRoute Circuit")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The ID of the ExpressRoute Circuit", + SerializedName = @"expressRouteId", + PossibleTypes = new [] { typeof(string) })] + public string ExpressRouteId { get => _authorizationBody.ExpressRouteId ?? null; set => _authorizationBody.ExpressRouteId = value; } + /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded.cs index ca60702f65e8..9c9bd4dcf23c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create an ExpressRoute Circuit Authorization in a private cloud + /// Create a ExpressRouteAuthorization /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create an ExpressRoute Circuit Authorization in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a ExpressRouteAuthorization")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -78,6 +78,17 @@ public partial class NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpan [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// The ID of the ExpressRoute Circuit + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ID of the ExpressRoute Circuit")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The ID of the ExpressRoute Circuit", + SerializedName = @"expressRouteId", + PossibleTypes = new [] { typeof(string) })] + public string ExpressRouteId { get => _authorizationBody.ExpressRouteId ?? null; set => _authorizationBody.ExpressRouteId = value; } + /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } @@ -107,12 +118,12 @@ public partial class NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpan /// Backing field for property. private string _name; - /// Name of the ExpressRoute Circuit Authorization in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the ExpressRoute Circuit Authorization in the private cloud")] + /// Name of the ExpressRoute Circuit Authorization + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the ExpressRoute Circuit Authorization")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the ExpressRoute Circuit Authorization in the private cloud", + Description = @"Name of the ExpressRoute Circuit Authorization", SerializedName = @"authorizationName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AuthorizationName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateExpanded.cs index 3d02635071fd..2909ad2db577 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a cloud link in a private cloud + /// Create a CloudLink /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareCloudLink_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a cloud link in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a CloudLink")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareCloudLink_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -118,12 +118,12 @@ public partial class NewAzVMwareCloudLink_CreateExpanded : global::System.Manage /// Backing field for property. private string _name; - /// Name of the cloud link resource - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud link resource")] + /// Name of the cloud link. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud link.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cloud link resource", + Description = @"Name of the cloud link.", SerializedName = @"cloudLinkName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("CloudLinkName")] @@ -146,12 +146,12 @@ public partial class NewAzVMwareCloudLink_CreateExpanded : global::System.Manage /// Backing field for property. private string _privateCloudName; - /// The name of the private cloud. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private cloud.")] + /// Name of the private cloud + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the private cloud")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private cloud.", + Description = @"Name of the private cloud", SerializedName = @"privateCloudName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -190,12 +190,12 @@ public partial class NewAzVMwareCloudLink_CreateExpanded : global::System.Manage /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityExpanded.cs index da002a264170..689e58e4f569 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a cloud link in a private cloud + /// Create a CloudLink /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareCloudLink_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a cloud link in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a CloudLink")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareCloudLink_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded.cs index e49693428d7f..d6b75538b385 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a cloud link in a private cloud + /// Create a CloudLink /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a cloud link in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a CloudLink")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -118,12 +118,12 @@ public partial class NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded /// Backing field for property. private string _name; - /// Name of the cloud link resource - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud link resource")] + /// Name of the cloud link. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud link.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cloud link resource", + Description = @"Name of the cloud link.", SerializedName = @"cloudLinkName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("CloudLinkName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateExpanded.cs index 444d2ec1b765..51528fe14379 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a cluster in a private cloud + /// Create a Cluster /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareCluster_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a cluster in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a Cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareCluster_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -118,12 +118,12 @@ public partial class NewAzVMwareCluster_CreateExpanded : global::System.Manageme /// Backing field for property. private string _name; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ClusterName")] @@ -146,12 +146,12 @@ public partial class NewAzVMwareCluster_CreateExpanded : global::System.Manageme /// Backing field for property. private string _privateCloudName; - /// The name of the private cloud. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private cloud.")] + /// Name of the private cloud + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the private cloud")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private cloud.", + Description = @"Name of the private cloud", SerializedName = @"privateCloudName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -199,26 +199,81 @@ public partial class NewAzVMwareCluster_CreateExpanded : global::System.Manageme [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// The name of the SKU. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the SKU.")] + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + public int SkuCapacity { get => _clusterBody.SkuCapacity ?? default(int); set => _clusterBody.SkuCapacity = value; } + + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the service has different generations of hardware, for the same SKU, then that can be captured here.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + public string SkuFamily { get => _clusterBody.SkuFamily ?? null; set => _clusterBody.SkuFamily = value; } + + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the SKU. E.g. P3. It is typically a letter+number code")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the SKU.", + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] public string SkuName { get => _clusterBody.SkuName ?? null; set => _clusterBody.SkuName = value; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + public string SkuSize { get => _clusterBody.SkuSize ?? null; set => _clusterBody.SkuSize = value; } + + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + public string SkuTier { get => _clusterBody.SkuTier ?? null; set => _clusterBody.SkuTier = value; } + /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -229,6 +284,17 @@ public partial class NewAzVMwareCluster_CreateExpanded : global::System.Manageme [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + /// Name of the vsan datastore associated with the cluster + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the vsan datastore associated with the cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of the vsan datastore associated with the cluster", + SerializedName = @"vsanDatastoreName", + PossibleTypes = new [] { typeof(string) })] + public string VsanDatastoreName { get => _clusterBody.VsanDatastoreName ?? null; set => _clusterBody.VsanDatastoreName = value; } + /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityExpanded.cs index ffbcfe194cce..fa4c5f6fd059 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a cluster in a private cloud + /// Create a Cluster /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareCluster_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a cluster in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a Cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareCluster_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -164,17 +164,83 @@ public partial class NewAzVMwareCluster_CreateViaIdentityExpanded : global::Syst [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// The name of the SKU. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the SKU.")] + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + public int SkuCapacity { get => _clusterBody.SkuCapacity ?? default(int); set => _clusterBody.SkuCapacity = value; } + + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the service has different generations of hardware, for the same SKU, then that can be captured here.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + public string SkuFamily { get => _clusterBody.SkuFamily ?? null; set => _clusterBody.SkuFamily = value; } + + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the SKU. E.g. P3. It is typically a letter+number code")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the SKU.", + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] public string SkuName { get => _clusterBody.SkuName ?? null; set => _clusterBody.SkuName = value; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + public string SkuSize { get => _clusterBody.SkuSize ?? null; set => _clusterBody.SkuSize = value; } + + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + public string SkuTier { get => _clusterBody.SkuTier ?? null; set => _clusterBody.SkuTier = value; } + + /// Name of the vsan datastore associated with the cluster + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the vsan datastore associated with the cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of the vsan datastore associated with the cluster", + SerializedName = @"vsanDatastoreName", + PossibleTypes = new [] { typeof(string) })] + public string VsanDatastoreName { get => _clusterBody.VsanDatastoreName ?? null; set => _clusterBody.VsanDatastoreName = value; } + /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded.cs index 3c986ab3bac0..17b7ad691c45 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a cluster in a private cloud + /// Create a Cluster /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareCluster_CreateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a cluster in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a Cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -118,12 +118,12 @@ public partial class NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded : /// Backing field for property. private string _name; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ClusterName")] @@ -179,17 +179,83 @@ public partial class NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded : [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// The name of the SKU. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the SKU.")] + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + public int SkuCapacity { get => _clusterBody.SkuCapacity ?? default(int); set => _clusterBody.SkuCapacity = value; } + + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the service has different generations of hardware, for the same SKU, then that can be captured here.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + public string SkuFamily { get => _clusterBody.SkuFamily ?? null; set => _clusterBody.SkuFamily = value; } + + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the SKU. E.g. P3. It is typically a letter+number code")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the SKU.", + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] public string SkuName { get => _clusterBody.SkuName ?? null; set => _clusterBody.SkuName = value; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + public string SkuSize { get => _clusterBody.SkuSize ?? null; set => _clusterBody.SkuSize = value; } + + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + public string SkuTier { get => _clusterBody.SkuTier ?? null; set => _clusterBody.SkuTier = value; } + + /// Name of the vsan datastore associated with the cluster + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the vsan datastore associated with the cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of the vsan datastore associated with the cluster", + SerializedName = @"vsanDatastoreName", + PossibleTypes = new [] { typeof(string) })] + public string VsanDatastoreName { get => _clusterBody.VsanDatastoreName ?? null; set => _clusterBody.VsanDatastoreName = value; } + /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateExpanded.cs index 19d307856c62..9f7f887115fa 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a datastore in a private cloud cluster + /// Create a Datastore /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareDatastore_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a Datastore")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareDatastore_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -71,12 +71,12 @@ public partial class NewAzVMwareDatastore_CreateExpanded : global::System.Manage /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -104,14 +104,14 @@ public partial class NewAzVMwareDatastore_CreateExpanded : global::System.Manage public string DiskPoolVolumeLunName { get => _datastoreBody.DiskPoolVolumeLunName ?? null; set => _datastoreBody.DiskPoolVolumeLunName = value; } /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + /// Mode that describes whether the LUN has to be mounted as a datastore orattached as a LUN /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Mode that describes whether the LUN has to be mounted as a datastore orattached as a LUN")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN", + Description = @"Mode that describes whether the LUN has to be mounted as a datastore orattached as a LUN", SerializedName = @"mountOption", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] @@ -128,6 +128,17 @@ public partial class NewAzVMwareDatastore_CreateExpanded : global::System.Manage PossibleTypes = new [] { typeof(string) })] public string DiskPoolVolumeTargetId { get => _datastoreBody.DiskPoolVolumeTargetId ?? null; set => _datastoreBody.DiskPoolVolumeTargetId = value; } + /// Azure resource ID of the Elastic SAN Volume + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Azure resource ID of the Elastic SAN Volume")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Azure resource ID of the Elastic SAN Volume", + SerializedName = @"targetId", + PossibleTypes = new [] { typeof(string) })] + public string ElasticSanVolumeTargetId { get => _datastoreBody.ElasticSanVolumeTargetId ?? null; set => _datastoreBody.ElasticSanVolumeTargetId = value; } + /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } @@ -157,12 +168,12 @@ public partial class NewAzVMwareDatastore_CreateExpanded : global::System.Manage /// Backing field for property. private string _name; - /// Name of the datastore in the private cloud cluster - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore in the private cloud cluster")] + /// Name of the datastore + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the datastore in the private cloud cluster", + Description = @"Name of the datastore", SerializedName = @"datastoreName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("DatastoreName")] @@ -240,12 +251,12 @@ public partial class NewAzVMwareDatastore_CreateExpanded : global::System.Manage /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityClusterExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityClusterExpanded.cs index 066aa15810a3..57f529d2e37e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityClusterExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityClusterExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a datastore in a private cloud cluster + /// Create a Datastore /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareDatastore_CreateViaIdentityClusterExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a Datastore")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareDatastore_CreateViaIdentityClusterExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -98,14 +98,14 @@ public partial class NewAzVMwareDatastore_CreateViaIdentityClusterExpanded : glo public string DiskPoolVolumeLunName { get => _datastoreBody.DiskPoolVolumeLunName ?? null; set => _datastoreBody.DiskPoolVolumeLunName = value; } /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + /// Mode that describes whether the LUN has to be mounted as a datastore orattached as a LUN /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Mode that describes whether the LUN has to be mounted as a datastore orattached as a LUN")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN", + Description = @"Mode that describes whether the LUN has to be mounted as a datastore orattached as a LUN", SerializedName = @"mountOption", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] @@ -122,6 +122,17 @@ public partial class NewAzVMwareDatastore_CreateViaIdentityClusterExpanded : glo PossibleTypes = new [] { typeof(string) })] public string DiskPoolVolumeTargetId { get => _datastoreBody.DiskPoolVolumeTargetId ?? null; set => _datastoreBody.DiskPoolVolumeTargetId = value; } + /// Azure resource ID of the Elastic SAN Volume + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Azure resource ID of the Elastic SAN Volume")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Azure resource ID of the Elastic SAN Volume", + SerializedName = @"targetId", + PossibleTypes = new [] { typeof(string) })] + public string ElasticSanVolumeTargetId { get => _datastoreBody.ElasticSanVolumeTargetId ?? null; set => _datastoreBody.ElasticSanVolumeTargetId = value; } + /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } @@ -151,12 +162,12 @@ public partial class NewAzVMwareDatastore_CreateViaIdentityClusterExpanded : glo /// Backing field for property. private string _name; - /// Name of the datastore in the private cloud cluster - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore in the private cloud cluster")] + /// Name of the datastore + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the datastore in the private cloud cluster", + Description = @"Name of the datastore", SerializedName = @"datastoreName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("DatastoreName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityExpanded.cs index d9c8f5e91179..5dc1adaadf75 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a datastore in a private cloud cluster + /// Create a Datastore /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareDatastore_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a Datastore")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareDatastore_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -90,14 +90,14 @@ public partial class NewAzVMwareDatastore_CreateViaIdentityExpanded : global::Sy public string DiskPoolVolumeLunName { get => _datastoreBody.DiskPoolVolumeLunName ?? null; set => _datastoreBody.DiskPoolVolumeLunName = value; } /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + /// Mode that describes whether the LUN has to be mounted as a datastore orattached as a LUN /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Mode that describes whether the LUN has to be mounted as a datastore orattached as a LUN")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN", + Description = @"Mode that describes whether the LUN has to be mounted as a datastore orattached as a LUN", SerializedName = @"mountOption", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] @@ -114,6 +114,17 @@ public partial class NewAzVMwareDatastore_CreateViaIdentityExpanded : global::Sy PossibleTypes = new [] { typeof(string) })] public string DiskPoolVolumeTargetId { get => _datastoreBody.DiskPoolVolumeTargetId ?? null; set => _datastoreBody.DiskPoolVolumeTargetId = value; } + /// Azure resource ID of the Elastic SAN Volume + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Azure resource ID of the Elastic SAN Volume")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Azure resource ID of the Elastic SAN Volume", + SerializedName = @"targetId", + PossibleTypes = new [] { typeof(string) })] + public string ElasticSanVolumeTargetId { get => _datastoreBody.ElasticSanVolumeTargetId ?? null; set => _datastoreBody.ElasticSanVolumeTargetId = value; } + /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded.cs index bbc54fa0403f..89a4b455d053 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a datastore in a private cloud cluster + /// Create a Datastore /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a Datastore")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -71,12 +71,12 @@ public partial class NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -104,14 +104,14 @@ public partial class NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded public string DiskPoolVolumeLunName { get => _datastoreBody.DiskPoolVolumeLunName ?? null; set => _datastoreBody.DiskPoolVolumeLunName = value; } /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN + /// Mode that describes whether the LUN has to be mounted as a datastore orattached as a LUN /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Mode that describes whether the LUN has to be mounted as a datastore orattached as a LUN")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN", + Description = @"Mode that describes whether the LUN has to be mounted as a datastore orattached as a LUN", SerializedName = @"mountOption", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] @@ -128,6 +128,17 @@ public partial class NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded PossibleTypes = new [] { typeof(string) })] public string DiskPoolVolumeTargetId { get => _datastoreBody.DiskPoolVolumeTargetId ?? null; set => _datastoreBody.DiskPoolVolumeTargetId = value; } + /// Azure resource ID of the Elastic SAN Volume + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Azure resource ID of the Elastic SAN Volume")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Azure resource ID of the Elastic SAN Volume", + SerializedName = @"targetId", + PossibleTypes = new [] { typeof(string) })] + public string ElasticSanVolumeTargetId { get => _datastoreBody.ElasticSanVolumeTargetId ?? null; set => _datastoreBody.ElasticSanVolumeTargetId = value; } + /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } @@ -157,12 +168,12 @@ public partial class NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded /// Backing field for property. private string _name; - /// Name of the datastore in the private cloud cluster - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore in the private cloud cluster")] + /// Name of the datastore + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the datastore in the private cloud cluster", + Description = @"Name of the datastore", SerializedName = @"datastoreName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("DatastoreName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateExpanded.cs index 2f37608f3277..72ed063ad3bb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a global reach connection in a private cloud + /// Create a GlobalReachConnection /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareGlobalReachConnection_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a global reach connection in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a GlobalReachConnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareGlobalReachConnection_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -58,14 +58,14 @@ public partial class NewAzVMwareGlobalReachConnection_CreateExpanded : global::S public global::System.Management.Automation.SwitchParameter AsJob { get; set; } /// - /// Authorization key from the peer express route used for the global reach connection + /// Authorization key from the peer express route used for the global reachconnection /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Authorization key from the peer express route used for the global reach connection")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Authorization key from the peer express route used for the global reachconnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Authorization key from the peer express route used for the global reach connection", + Description = @"Authorization key from the peer express route used for the global reachconnection", SerializedName = @"authorizationKey", PossibleTypes = new [] { typeof(string) })] public string AuthorizationKey { get => _globalReachConnectionBody.AuthorizationKey ?? null; set => _globalReachConnectionBody.AuthorizationKey = value; } @@ -92,14 +92,14 @@ public partial class NewAzVMwareGlobalReachConnection_CreateExpanded : global::S public global::System.Management.Automation.PSObject DefaultProfile { get; set; } /// - /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection + /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in theglobal reach connection /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ID of the Private Cloud's ExpressRoute Circuit that is participating in theglobal reach connection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection", + Description = @"The ID of the Private Cloud's ExpressRoute Circuit that is participating in theglobal reach connection", SerializedName = @"expressRouteId", PossibleTypes = new [] { typeof(string) })] public string ExpressRouteId { get => _globalReachConnectionBody.ExpressRouteId ?? null; set => _globalReachConnectionBody.ExpressRouteId = value; } @@ -133,12 +133,12 @@ public partial class NewAzVMwareGlobalReachConnection_CreateExpanded : global::S /// Backing field for property. private string _name; - /// Name of the global reach connection in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the global reach connection in the private cloud")] + /// Name of the global reach connection + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the global reach connection")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the global reach connection in the private cloud", + Description = @"Name of the global reach connection", SerializedName = @"globalReachConnectionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("GlobalReachConnectionName")] @@ -154,14 +154,14 @@ public partial class NewAzVMwareGlobalReachConnection_CreateExpanded : global::S public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// - /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection + /// Identifier of the ExpressRoute Circuit to peer with in the global reachconnection /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier of the ExpressRoute Circuit to peer with in the global reach connection")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier of the ExpressRoute Circuit to peer with in the global reachconnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Identifier of the ExpressRoute Circuit to peer with in the global reach connection", + Description = @"Identifier of the ExpressRoute Circuit to peer with in the global reachconnection", SerializedName = @"peerExpressRouteCircuit", PossibleTypes = new [] { typeof(string) })] public string PeerExpressRouteResourceId { get => _globalReachConnectionBody.PeerExpressRouteCircuit ?? null; set => _globalReachConnectionBody.PeerExpressRouteCircuit = value; } @@ -174,12 +174,12 @@ public partial class NewAzVMwareGlobalReachConnection_CreateExpanded : global::S /// Backing field for property. private string _privateCloudName; - /// The name of the private cloud. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private cloud.")] + /// Name of the private cloud + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the private cloud")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private cloud.", + Description = @"Name of the private cloud", SerializedName = @"privateCloudName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -218,12 +218,12 @@ public partial class NewAzVMwareGlobalReachConnection_CreateExpanded : global::S /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded.cs index 92208f34bb63..0ed666addbd6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a global reach connection in a private cloud + /// Create a GlobalReachConnection /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareGlobalReachConnection_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a global reach connection in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a GlobalReachConnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -58,14 +58,14 @@ public partial class NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded public global::System.Management.Automation.SwitchParameter AsJob { get; set; } /// - /// Authorization key from the peer express route used for the global reach connection + /// Authorization key from the peer express route used for the global reachconnection /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Authorization key from the peer express route used for the global reach connection")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Authorization key from the peer express route used for the global reachconnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Authorization key from the peer express route used for the global reach connection", + Description = @"Authorization key from the peer express route used for the global reachconnection", SerializedName = @"authorizationKey", PossibleTypes = new [] { typeof(string) })] public string AuthorizationKey { get => _globalReachConnectionBody.AuthorizationKey ?? null; set => _globalReachConnectionBody.AuthorizationKey = value; } @@ -92,14 +92,14 @@ public partial class NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded public global::System.Management.Automation.PSObject DefaultProfile { get; set; } /// - /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection + /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in theglobal reach connection /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ID of the Private Cloud's ExpressRoute Circuit that is participating in theglobal reach connection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection", + Description = @"The ID of the Private Cloud's ExpressRoute Circuit that is participating in theglobal reach connection", SerializedName = @"expressRouteId", PossibleTypes = new [] { typeof(string) })] public string ExpressRouteId { get => _globalReachConnectionBody.ExpressRouteId ?? null; set => _globalReachConnectionBody.ExpressRouteId = value; } @@ -147,14 +147,14 @@ public partial class NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// - /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection + /// Identifier of the ExpressRoute Circuit to peer with in the global reachconnection /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier of the ExpressRoute Circuit to peer with in the global reach connection")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier of the ExpressRoute Circuit to peer with in the global reachconnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Identifier of the ExpressRoute Circuit to peer with in the global reach connection", + Description = @"Identifier of the ExpressRoute Circuit to peer with in the global reachconnection", SerializedName = @"peerExpressRouteCircuit", PossibleTypes = new [] { typeof(string) })] public string PeerExpressRouteResourceId { get => _globalReachConnectionBody.PeerExpressRouteCircuit ?? null; set => _globalReachConnectionBody.PeerExpressRouteCircuit = value; } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded.cs index 64b01d921c44..b37e688afb1a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a global reach connection in a private cloud + /// Create a GlobalReachConnection /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a global reach connection in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a GlobalReachConnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -58,14 +58,14 @@ public partial class NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCl public global::System.Management.Automation.SwitchParameter AsJob { get; set; } /// - /// Authorization key from the peer express route used for the global reach connection + /// Authorization key from the peer express route used for the global reachconnection /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Authorization key from the peer express route used for the global reach connection")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Authorization key from the peer express route used for the global reachconnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Authorization key from the peer express route used for the global reach connection", + Description = @"Authorization key from the peer express route used for the global reachconnection", SerializedName = @"authorizationKey", PossibleTypes = new [] { typeof(string) })] public string AuthorizationKey { get => _globalReachConnectionBody.AuthorizationKey ?? null; set => _globalReachConnectionBody.AuthorizationKey = value; } @@ -92,14 +92,14 @@ public partial class NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCl public global::System.Management.Automation.PSObject DefaultProfile { get; set; } /// - /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection + /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in theglobal reach connection /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ID of the Private Cloud's ExpressRoute Circuit that is participating in theglobal reach connection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection", + Description = @"The ID of the Private Cloud's ExpressRoute Circuit that is participating in theglobal reach connection", SerializedName = @"expressRouteId", PossibleTypes = new [] { typeof(string) })] public string ExpressRouteId { get => _globalReachConnectionBody.ExpressRouteId ?? null; set => _globalReachConnectionBody.ExpressRouteId = value; } @@ -133,12 +133,12 @@ public partial class NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCl /// Backing field for property. private string _name; - /// Name of the global reach connection in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the global reach connection in the private cloud")] + /// Name of the global reach connection + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the global reach connection")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the global reach connection in the private cloud", + Description = @"Name of the global reach connection", SerializedName = @"globalReachConnectionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("GlobalReachConnectionName")] @@ -154,14 +154,14 @@ public partial class NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCl public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// - /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection + /// Identifier of the ExpressRoute Circuit to peer with in the global reachconnection /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier of the ExpressRoute Circuit to peer with in the global reach connection")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier of the ExpressRoute Circuit to peer with in the global reachconnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Identifier of the ExpressRoute Circuit to peer with in the global reach connection", + Description = @"Identifier of the ExpressRoute Circuit to peer with in the global reachconnection", SerializedName = @"peerExpressRouteCircuit", PossibleTypes = new [] { typeof(string) })] public string PeerExpressRouteResourceId { get => _globalReachConnectionBody.PeerExpressRouteCircuit ?? null; set => _globalReachConnectionBody.PeerExpressRouteCircuit = value; } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareIscsiPath_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareIscsiPath_CreateExpanded.cs new file mode 100644 index 000000000000..97cab4085f18 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareIscsiPath_CreateExpanded.cs @@ -0,0 +1,604 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; + using System; + + /// Create a IscsiPath + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareIscsiPath_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath))] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a IscsiPath")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default", ApiVersion = "2023-09-01")] + public partial class NewAzVMwareIscsiPath_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// An iSCSI path resource + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPath(); + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.VMware.VMware Client => Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// CIDR Block for iSCSI path. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "CIDR Block for iSCSI path.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"CIDR Block for iSCSI path.", + SerializedName = @"networkBlock", + PossibleTypes = new [] { typeof(string) })] + public string NetworkBlock { get => _resourceBody.NetworkBlock ?? null; set => _resourceBody.NetworkBlock = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _privateCloudName; + + /// Name of the private cloud + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the private cloud")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the private cloud", + SerializedName = @"privateCloudName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public string PrivateCloudName { get => this._privateCloudName; set => this._privateCloudName = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzVMwareIscsiPath_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareIscsiPath_CreateExpanded Clone() + { + var clone = new NewAzVMwareIscsiPath_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._resourceBody = this._resourceBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.PrivateCloudName = this.PrivateCloudName; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public NewAzVMwareIscsiPath_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'IscsiPathsCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.IscsiPathsCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, _resourceBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate); + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,PrivateCloudName=PrivateCloudName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareIscsiPath_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareIscsiPath_CreateViaIdentityExpanded.cs new file mode 100644 index 000000000000..26c7d413d220 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareIscsiPath_CreateViaIdentityExpanded.cs @@ -0,0 +1,582 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; + using System; + + /// Create a IscsiPath + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareIscsiPath_CreateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath))] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a IscsiPath")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default", ApiVersion = "2023-09-01")] + public partial class NewAzVMwareIscsiPath_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// An iSCSI path resource + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPath(); + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.VMware.VMware Client => Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// CIDR Block for iSCSI path. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "CIDR Block for iSCSI path.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"CIDR Block for iSCSI path.", + SerializedName = @"networkBlock", + PossibleTypes = new [] { typeof(string) })] + public string NetworkBlock { get => _resourceBody.NetworkBlock ?? null; set => _resourceBody.NetworkBlock = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzVMwareIscsiPath_CreateViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.NewAzVMwareIscsiPath_CreateViaIdentityExpanded Clone() + { + var clone = new NewAzVMwareIscsiPath_CreateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._resourceBody = this._resourceBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public NewAzVMwareIscsiPath_CreateViaIdentityExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'IscsiPathsCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.IscsiPathsCreateOrUpdateViaIdentity(InputObject.Id, _resourceBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.PrivateCloudName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PrivateCloudName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.IscsiPathsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, _resourceBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateExpanded.cs index f2100c3b8d03..0eb9623b4355 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a placement policy in a private cloud cluster + /// Create a PlacementPolicy /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwarePlacementPolicy_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a placement policy in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a PlacementPolicy")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwarePlacementPolicy_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -71,12 +71,12 @@ public partial class NewAzVMwarePlacementPolicy_CreateExpanded : global::System. /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -121,14 +121,12 @@ public partial class NewAzVMwarePlacementPolicy_CreateExpanded : global::System. /// Backing field for property. private string _name; - /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy")] + /// Name of the placement policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the placement policy.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy", + Description = @"Name of the placement policy.", SerializedName = @"placementPolicyName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PlacementPolicyName")] @@ -162,13 +160,13 @@ public partial class NewAzVMwarePlacementPolicy_CreateExpanded : global::System. [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] public string PrivateCloudName { get => this._privateCloudName; set => this._privateCloudName = value; } - /// placement policy properties - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "placement policy properties")] + /// The resource-specific properties for this resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource-specific properties for this resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"placement policy properties", + Description = @"The resource-specific properties for this resource.", SerializedName = @"properties", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties) })] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties Property { get => _placementPolicyBody.Property ?? null /* object */; set => _placementPolicyBody.Property = value; } @@ -206,12 +204,12 @@ public partial class NewAzVMwarePlacementPolicy_CreateExpanded : global::System. /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded.cs index 3f17ec9f4764..b9c840878928 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a placement policy in a private cloud cluster + /// Create a PlacementPolicy /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a placement policy in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a PlacementPolicy")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -115,14 +115,12 @@ public partial class NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded /// Backing field for property. private string _name; - /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy")] + /// Name of the placement policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the placement policy.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy", + Description = @"Name of the placement policy.", SerializedName = @"placementPolicyName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PlacementPolicyName")] @@ -142,13 +140,13 @@ public partial class NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.HttpPipeline Pipeline { get; set; } - /// placement policy properties - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "placement policy properties")] + /// The resource-specific properties for this resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource-specific properties for this resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"placement policy properties", + Description = @"The resource-specific properties for this resource.", SerializedName = @"properties", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties) })] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties Property { get => _placementPolicyBody.Property ?? null /* object */; set => _placementPolicyBody.Property = value; } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded.cs index 3944cf368c3c..c482d794aa81 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a placement policy in a private cloud cluster + /// Create a PlacementPolicy /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwarePlacementPolicy_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a placement policy in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a PlacementPolicy")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -125,13 +125,13 @@ public partial class NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded : glob /// public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.HttpPipeline Pipeline { get; set; } - /// placement policy properties - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "placement policy properties")] + /// The resource-specific properties for this resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource-specific properties for this resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"placement policy properties", + Description = @"The resource-specific properties for this resource.", SerializedName = @"properties", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties) })] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties Property { get => _placementPolicyBody.Property ?? null /* object */; set => _placementPolicyBody.Property = value; } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded.cs index d100f56fb4ed..73878faea6e9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a placement policy in a private cloud cluster + /// Create a PlacementPolicy /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a placement policy in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a PlacementPolicy")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -71,12 +71,12 @@ public partial class NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExp /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -121,14 +121,12 @@ public partial class NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExp /// Backing field for property. private string _name; - /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy")] + /// Name of the placement policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the placement policy.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy", + Description = @"Name of the placement policy.", SerializedName = @"placementPolicyName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PlacementPolicyName")] @@ -156,13 +154,13 @@ public partial class NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExp [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity PrivateCloudInputObject { get => this._privateCloudInputObject; set => this._privateCloudInputObject = value; } - /// placement policy properties - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "placement policy properties")] + /// The resource-specific properties for this resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The resource-specific properties for this resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"placement policy properties", + Description = @"The resource-specific properties for this resource.", SerializedName = @"properties", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties) })] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties Property { get => _placementPolicyBody.Property ?? null /* object */; set => _placementPolicyBody.Property = value; } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_Rotate.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_Rotate.cs index 300ec1068251..621b49c92fbe 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_Rotate.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_Rotate.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Rotate the NSX-T Manager password")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateNsxtPassword", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateNsxtPassword", ApiVersion = "2023-09-01")] public partial class NewAzVMwarePrivateCloudNsxtPassword_Rotate : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -168,12 +168,12 @@ public partial class NewAzVMwarePrivateCloudNsxtPassword_Rotate : global::System /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity.cs index 5d1c26b796f9..7bae7d2148ff 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Rotate the NSX-T Manager password")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateNsxtPassword", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateNsxtPassword", ApiVersion = "2023-09-01")] public partial class NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_Rotate.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_Rotate.cs index 1478988e3a2e..cb350170680e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_Rotate.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_Rotate.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Rotate the vCenter password")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword", ApiVersion = "2023-09-01")] public partial class NewAzVMwarePrivateCloudVcenterPassword_Rotate : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -168,12 +168,12 @@ public partial class NewAzVMwarePrivateCloudVcenterPassword_Rotate : global::Sys /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity.cs index 84ad666cec42..edb287d05f99 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Rotate the vCenter password")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword", ApiVersion = "2023-09-01")] public partial class NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs index 9409a9dc4055..54cca7c5d573 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a private cloud + /// Create a PrivateCloud /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwarePrivateCloud_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a PrivateCloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwarePrivateCloud_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -113,6 +113,22 @@ public partial class NewAzVMwarePrivateCloud_CreateExpanded : global::System.Man [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + /// The type of DNS zone to use. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of DNS zone to use.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of DNS zone to use.", + SerializedName = @"dnsZoneType", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Public", "Private")] + public string DnsZoneType { get => _privateCloudBody.DnsZoneType ?? null; set => _privateCloudBody.DnsZoneType = value; } + + /// Decides if enable a system assigned identity for the resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Decides if enable a system assigned identity for the resource.")] + public global::System.Management.Automation.SwitchParameter EnableSystemAssignedIdentity { set => _privateCloudBody.IdentityType = value.IsPresent ? "SystemAssigned": null ; } + /// Status of customer managed encryption key [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Status of customer managed encryption key")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] @@ -126,17 +142,16 @@ public partial class NewAzVMwarePrivateCloud_CreateExpanded : global::System.Man public string EncryptionStatus { get => _privateCloudBody.EncryptionStatus ?? null; set => _privateCloudBody.EncryptionStatus = value; } /// - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet - /// in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to - /// (A.B.C.D/X). + /// Array of additional networks noncontiguous with networkBlock. Networks must beunique and non-overlapping across VNet in + /// your subscription, on-premise, andthis privateCloud networkBlock attribute. Make sure the CIDR format conforms to(A.B.C.D/X). /// [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X).")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of additional networks noncontiguous with networkBlock. Networks must beunique and non-overlapping across VNet in your subscription, on-premise, andthis privateCloud networkBlock attribute. Make sure the CIDR format conforms to(A.B.C.D/X).")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X).", + Description = @"Array of additional networks noncontiguous with networkBlock. Networks must beunique and non-overlapping across VNet in your subscription, on-premise, andthis privateCloud networkBlock attribute. Make sure the CIDR format conforms to(A.B.C.D/X).", SerializedName = @"extendedNetworkBlocks", PossibleTypes = new [] { typeof(string) })] public string[] ExtendedNetworkBlock { get => _privateCloudBody.ExtendedNetworkBlock?.ToArray() ?? null /* fixedArrayOf */; set => _privateCloudBody.ExtendedNetworkBlock = (value != null ? new System.Collections.Generic.List(value) : null); } @@ -168,21 +183,6 @@ public partial class NewAzVMwarePrivateCloud_CreateExpanded : global::System.Man PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource) })] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource[] IdentitySource { get => _privateCloudBody.IdentitySource?.ToArray() ?? null /* fixedArrayOf */; set => _privateCloudBody.IdentitySource = (value != null ? new System.Collections.Generic.List(value) : null); } - /// - /// The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The - /// type 'None' will remove any identities from the Private Cloud. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Private Cloud.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Private Cloud.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SystemAssigned", "None")] - public string IdentityType { get => _privateCloudBody.IdentityType ?? null; set => _privateCloudBody.IdentityType = value; } - /// Connectivity to internet is enabled or disabled [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Connectivity to internet is enabled or disabled")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] @@ -231,13 +231,13 @@ public partial class NewAzVMwarePrivateCloud_CreateExpanded : global::System.Man PossibleTypes = new [] { typeof(string) })] public string KeyVaultPropertyKeyVersion { get => _privateCloudBody.KeyVaultPropertyKeyVersion ?? null; set => _privateCloudBody.KeyVaultPropertyKeyVersion = value; } - /// Resource location - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location")] + /// The geo-location where the resource lives + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, + Required = true, ReadOnly = false, - Description = @"Resource location", + Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] public string Location { get => _privateCloudBody.Location ?? null; set => _privateCloudBody.Location = value; } @@ -265,6 +265,17 @@ public partial class NewAzVMwarePrivateCloud_CreateExpanded : global::System.Man PossibleTypes = new [] { typeof(int) })] public int ManagementClusterSize { get => _privateCloudBody.ManagementClusterSize ?? default(int); set => _privateCloudBody.ManagementClusterSize = value; } + /// Name of the vsan datastore associated with the cluster + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the vsan datastore associated with the cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Name of the vsan datastore associated with the cluster", + SerializedName = @"vsanDatastoreName", + PossibleTypes = new [] { typeof(string) })] + public string ManagementClusterVsanDatastoreName { get => _privateCloudBody.ManagementClusterVsanDatastoreName ?? null; set => _privateCloudBody.ManagementClusterVsanDatastoreName = value; } + /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -289,15 +300,15 @@ public partial class NewAzVMwarePrivateCloud_CreateExpanded : global::System.Man public string Name { get => this._name; set => this._name = value; } /// - /// The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format - /// is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22 + /// The block of addresses should be unique across VNet in your subscription aswell as on-premise. Make sure the CIDR format + /// is conformed to (A.B.C.D/X) whereA,B,C,D are between 0 and 255, and X is between 0 and 22 /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The block of addresses should be unique across VNet in your subscription aswell as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) whereA,B,C,D are between 0 and 255, and X is between 0 and 22")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The block of addresses should be unique across VNet in your subscription as well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22", + Description = @"The block of addresses should be unique across VNet in your subscription aswell as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) whereA,B,C,D are between 0 and 255, and X is between 0 and 22", SerializedName = @"networkBlock", PossibleTypes = new [] { typeof(string) })] public string NetworkBlock { get => _privateCloudBody.NetworkBlock ?? null; set => _privateCloudBody.NetworkBlock = value; } @@ -318,8 +329,8 @@ public partial class NewAzVMwarePrivateCloud_CreateExpanded : global::System.Man ReadOnly = false, Description = @"Optionally, set the NSX-T Manager password when the private cloud is created", SerializedName = @"nsxtPassword", - PossibleTypes = new [] { typeof(string) })] - public string NsxtPassword { get => _privateCloudBody.NsxtPassword ?? null; set => _privateCloudBody.NsxtPassword = value; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + public System.Security.SecureString NsxtPassword { get => _privateCloudBody.NsxtPassword ?? null; set => _privateCloudBody.NsxtPassword = value; } /// /// The instance of the that the remote call will use. @@ -356,26 +367,81 @@ public partial class NewAzVMwarePrivateCloud_CreateExpanded : global::System.Man [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } - /// The name of the SKU. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the SKU.")] + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + public int SkuCapacity { get => _privateCloudBody.SkuCapacity ?? default(int); set => _privateCloudBody.SkuCapacity = value; } + + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the service has different generations of hardware, for the same SKU, then that can be captured here.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + public string SkuFamily { get => _privateCloudBody.SkuFamily ?? null; set => _privateCloudBody.SkuFamily = value; } + + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the SKU. E.g. P3. It is typically a letter+number code")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the SKU.", + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] public string SkuName { get => _privateCloudBody.SkuName ?? null; set => _privateCloudBody.SkuName = value; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + public string SkuSize { get => _privateCloudBody.SkuSize ?? null; set => _privateCloudBody.SkuSize = value; } + + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + public string SkuTier { get => _privateCloudBody.SkuTier ?? null; set => _privateCloudBody.SkuTier = value; } + /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -386,17 +452,17 @@ public partial class NewAzVMwarePrivateCloud_CreateExpanded : global::System.Man [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - /// Resource tags + /// Resource tags. [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Resource tags", + Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags Tag { get => _privateCloudBody.Tag ?? null /* object */; set => _privateCloudBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags Tag { get => _privateCloudBody.Tag ?? null /* object */; set => _privateCloudBody.Tag = value; } /// Optionally, set the vCenter admin password when the private cloud is created [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optionally, set the vCenter admin password when the private cloud is created")] @@ -406,8 +472,19 @@ public partial class NewAzVMwarePrivateCloud_CreateExpanded : global::System.Man ReadOnly = false, Description = @"Optionally, set the vCenter admin password when the private cloud is created", SerializedName = @"vcenterPassword", + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + public System.Security.SecureString VcenterPassword { get => _privateCloudBody.VcenterPassword ?? null; set => _privateCloudBody.VcenterPassword = value; } + + /// Azure resource ID of the virtual network + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Azure resource ID of the virtual network")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Azure resource ID of the virtual network", + SerializedName = @"virtualNetworkId", PossibleTypes = new [] { typeof(string) })] - public string VcenterPassword { get => _privateCloudBody.VcenterPassword ?? null; set => _privateCloudBody.VcenterPassword = value; } + public string VirtualNetworkId { get => _privateCloudBody.VirtualNetworkId ?? null; set => _privateCloudBody.VirtualNetworkId = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateExpanded.cs index 886034c5de2a..ea06d6134d00 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a script execution in a private cloud + /// Create a ScriptExecution /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareScriptExecution_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a script execution in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a ScriptExecution")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareScriptExecution_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -83,28 +83,28 @@ public partial class NewAzVMwareScriptExecution_CreateExpanded : global::System. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } /// - /// Error message if the script was able to run, but if the script itself had errors or powershell threw an exception + /// Error message if the script was able to run, but if the script itself haderrors or powershell threw an exception /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Error message if the script was able to run, but if the script itself had errors or powershell threw an exception")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Error message if the script was able to run, but if the script itself haderrors or powershell threw an exception")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Error message if the script was able to run, but if the script itself had errors or powershell threw an exception", + Description = @"Error message if the script was able to run, but if the script itself haderrors or powershell threw an exception", SerializedName = @"failureReason", PossibleTypes = new [] { typeof(string) })] public string FailureReason { get => _scriptExecutionBody.FailureReason ?? null; set => _scriptExecutionBody.FailureReason = value; } /// - /// Parameters that will be hidden/not visible to ARM, such as passwords and credentials + /// Parameters that will be hidden/not visible to ARM, such as passwords andcredentials /// [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Parameters that will be hidden/not visible to ARM, such as passwords and credentials")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Parameters that will be hidden/not visible to ARM, such as passwords andcredentials")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Parameters that will be hidden/not visible to ARM, such as passwords and credentials", + Description = @"Parameters that will be hidden/not visible to ARM, such as passwords andcredentials", SerializedName = @"hiddenParameters", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameter) })] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameter[] HiddenParameter { get => _scriptExecutionBody.HiddenParameter?.ToArray() ?? null /* fixedArrayOf */; set => _scriptExecutionBody.HiddenParameter = (value != null ? new System.Collections.Generic.List(value) : null); } @@ -135,12 +135,12 @@ public partial class NewAzVMwareScriptExecution_CreateExpanded : global::System. /// Backing field for property. private string _name; - /// Name of the user-invoked script execution resource - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the user-invoked script execution resource")] + /// Name of the script cmdlet. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script cmdlet.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the user-invoked script execution resource", + Description = @"Name of the script cmdlet.", SerializedName = @"scriptExecutionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ScriptExecutionName")] @@ -199,12 +199,12 @@ public partial class NewAzVMwareScriptExecution_CreateExpanded : global::System. /// Backing field for property. private string _privateCloudName; - /// The name of the private cloud. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private cloud.")] + /// Name of the private cloud + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the private cloud")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private cloud.", + Description = @"Name of the private cloud", SerializedName = @"privateCloudName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -265,12 +265,12 @@ public partial class NewAzVMwareScriptExecution_CreateExpanded : global::System. /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityExpanded.cs index b867c8302aa5..5c46309823f6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a script execution in a private cloud + /// Create a ScriptExecution /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareScriptExecution_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a script execution in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a ScriptExecution")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareScriptExecution_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -83,28 +83,28 @@ public partial class NewAzVMwareScriptExecution_CreateViaIdentityExpanded : glob public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } /// - /// Error message if the script was able to run, but if the script itself had errors or powershell threw an exception + /// Error message if the script was able to run, but if the script itself haderrors or powershell threw an exception /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Error message if the script was able to run, but if the script itself had errors or powershell threw an exception")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Error message if the script was able to run, but if the script itself haderrors or powershell threw an exception")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Error message if the script was able to run, but if the script itself had errors or powershell threw an exception", + Description = @"Error message if the script was able to run, but if the script itself haderrors or powershell threw an exception", SerializedName = @"failureReason", PossibleTypes = new [] { typeof(string) })] public string FailureReason { get => _scriptExecutionBody.FailureReason ?? null; set => _scriptExecutionBody.FailureReason = value; } /// - /// Parameters that will be hidden/not visible to ARM, such as passwords and credentials + /// Parameters that will be hidden/not visible to ARM, such as passwords andcredentials /// [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Parameters that will be hidden/not visible to ARM, such as passwords and credentials")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Parameters that will be hidden/not visible to ARM, such as passwords andcredentials")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Parameters that will be hidden/not visible to ARM, such as passwords and credentials", + Description = @"Parameters that will be hidden/not visible to ARM, such as passwords andcredentials", SerializedName = @"hiddenParameters", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameter) })] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameter[] HiddenParameter { get => _scriptExecutionBody.HiddenParameter?.ToArray() ?? null /* fixedArrayOf */; set => _scriptExecutionBody.HiddenParameter = (value != null ? new System.Collections.Generic.List(value) : null); } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded.cs index 93d8bdf3718f..0c1d1b04fd48 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a script execution in a private cloud + /// Create a ScriptExecution /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecution))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a script execution in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a ScriptExecution")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -83,28 +83,28 @@ public partial class NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExp public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } /// - /// Error message if the script was able to run, but if the script itself had errors or powershell threw an exception + /// Error message if the script was able to run, but if the script itself haderrors or powershell threw an exception /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Error message if the script was able to run, but if the script itself had errors or powershell threw an exception")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Error message if the script was able to run, but if the script itself haderrors or powershell threw an exception")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Error message if the script was able to run, but if the script itself had errors or powershell threw an exception", + Description = @"Error message if the script was able to run, but if the script itself haderrors or powershell threw an exception", SerializedName = @"failureReason", PossibleTypes = new [] { typeof(string) })] public string FailureReason { get => _scriptExecutionBody.FailureReason ?? null; set => _scriptExecutionBody.FailureReason = value; } /// - /// Parameters that will be hidden/not visible to ARM, such as passwords and credentials + /// Parameters that will be hidden/not visible to ARM, such as passwords andcredentials /// [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Parameters that will be hidden/not visible to ARM, such as passwords and credentials")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Parameters that will be hidden/not visible to ARM, such as passwords andcredentials")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Parameters that will be hidden/not visible to ARM, such as passwords and credentials", + Description = @"Parameters that will be hidden/not visible to ARM, such as passwords andcredentials", SerializedName = @"hiddenParameters", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameter) })] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameter[] HiddenParameter { get => _scriptExecutionBody.HiddenParameter?.ToArray() ?? null /* fixedArrayOf */; set => _scriptExecutionBody.HiddenParameter = (value != null ? new System.Collections.Generic.List(value) : null); } @@ -135,12 +135,12 @@ public partial class NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExp /// Backing field for property. private string _name; - /// Name of the user-invoked script execution resource - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the user-invoked script execution resource")] + /// Name of the script cmdlet. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script cmdlet.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the user-invoked script execution resource", + Description = @"Name of the script cmdlet.", SerializedName = @"scriptExecutionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ScriptExecutionName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateExpanded.cs index b1f51f4fd43f..24607bcff2d9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create dhcp by id in a private cloud workload network. + /// Create a WorkloadNetworkDhcp /// /// [OpenAPI] CreateDhcp=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkDhcp_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create dhcp by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkDhcp")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkDhcp_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -82,12 +82,12 @@ public partial class NewAzVMwareWorkloadNetworkDhcp_CreateExpanded : global::Sys /// Backing field for property. private string _dhcpName; - /// NSX DHCP identifier. Generally the same as the DHCP display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DHCP identifier. Generally the same as the DHCP display name")] + /// The ID of the DHCP configuration + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the DHCP configuration")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DHCP identifier. Generally the same as the DHCP display name", + Description = @"The ID of the DHCP configuration", SerializedName = @"dhcpId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -213,12 +213,12 @@ public partial class NewAzVMwareWorkloadNetworkDhcp_CreateExpanded : global::Sys /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded.cs index f76b051d8d81..3b0b0452eab1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create dhcp by id in a private cloud workload network. + /// Create a WorkloadNetworkDhcp /// /// [OpenAPI] CreateDhcp=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create dhcp by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkDhcp")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded.cs index e0327c731a81..bc9bd486e593 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create dhcp by id in a private cloud workload network. + /// Create a WorkloadNetworkDhcp /// /// [OpenAPI] CreateDhcp=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create dhcp by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkDhcp")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -82,12 +82,12 @@ public partial class NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateClou /// Backing field for property. private string _dhcpName; - /// NSX DHCP identifier. Generally the same as the DHCP display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DHCP identifier. Generally the same as the DHCP display name")] + /// The ID of the DHCP configuration + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the DHCP configuration")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DHCP identifier. Generally the same as the DHCP display name", + Description = @"The ID of the DHCP configuration", SerializedName = @"dhcpId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateExpanded.cs index 2f16159792cd..9f138fb1645e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a DNS service by id in a private cloud workload network. + /// Create a WorkloadNetworkDnsService /// /// [OpenAPI] CreateDnsService=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkDnsService_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a DNS service by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkDnsService")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkDnsService_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -115,14 +115,12 @@ public partial class NewAzVMwareWorkloadNetworkDnsService_CreateExpanded : globa /// Backing field for property. private string _dnsServiceName; - /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DNS Service identifier. Generally the same as the DNS Service's display name")] + /// ID of the DNS service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS service.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DNS Service identifier. Generally the same as the DNS Service's display name", + Description = @"ID of the DNS service.", SerializedName = @"dnsServiceId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -249,12 +247,12 @@ public partial class NewAzVMwareWorkloadNetworkDnsService_CreateExpanded : globa /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded.cs index 02c87eb996de..1d17a57f745b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a DNS service by id in a private cloud workload network. + /// Create a WorkloadNetworkDnsService /// /// [OpenAPI] CreateDnsService=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a DNS service by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkDnsService")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded.cs index f517847f344f..f843d881d169 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a DNS service by id in a private cloud workload network. + /// Create a WorkloadNetworkDnsService /// /// [OpenAPI] CreateDnsService=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a DNS service by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkDnsService")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -115,14 +115,12 @@ public partial class NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPriva /// Backing field for property. private string _dnsServiceName; - /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DNS Service identifier. Generally the same as the DNS Service's display name")] + /// ID of the DNS service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS service.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DNS Service identifier. Generally the same as the DNS Service's display name", + Description = @"ID of the DNS service.", SerializedName = @"dnsServiceId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded.cs index 0b77436a08f7..425777c3c612 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a DNS zone by id in a private cloud workload network. + /// Create a WorkloadNetworkDnsZone /// /// [OpenAPI] CreateDnsZone=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkDnsZone_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a DNS zone by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkDnsZone")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -110,18 +110,18 @@ public partial class NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded : global:: ReadOnly = false, Description = @"Number of DNS Services using the DNS zone.", SerializedName = @"dnsServices", - PossibleTypes = new [] { typeof(long) })] - public long DnsService { get => _workloadNetworkDnsZoneBody.DnsService ?? default(long); set => _workloadNetworkDnsZoneBody.DnsService = value; } + PossibleTypes = new [] { typeof(int) })] + public int DnsService { get => _workloadNetworkDnsZoneBody.DnsService ?? default(int); set => _workloadNetworkDnsZoneBody.DnsService = value; } /// Backing field for property. private string _dnsZoneName; - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DNS Zone identifier. Generally the same as the DNS Zone's display name")] + /// ID of the DNS zone. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS zone.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DNS Zone identifier. Generally the same as the DNS Zone's display name", + Description = @"ID of the DNS zone.", SerializedName = @"dnsZoneId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -247,12 +247,12 @@ public partial class NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded : global:: /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded.cs index c2702ddd7484..b3b39c3acb9e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a DNS zone by id in a private cloud workload network. + /// Create a WorkloadNetworkDnsZone /// /// [OpenAPI] CreateDnsZone=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a DNS zone by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkDnsZone")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -110,8 +110,8 @@ public partial class NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded ReadOnly = false, Description = @"Number of DNS Services using the DNS zone.", SerializedName = @"dnsServices", - PossibleTypes = new [] { typeof(long) })] - public long DnsService { get => _workloadNetworkDnsZoneBody.DnsService ?? default(long); set => _workloadNetworkDnsZoneBody.DnsService = value; } + PossibleTypes = new [] { typeof(int) })] + public int DnsService { get => _workloadNetworkDnsZoneBody.DnsService ?? default(int); set => _workloadNetworkDnsZoneBody.DnsService = value; } /// Domain names of the DNS Zone. [global::System.Management.Automation.AllowEmptyCollection] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded.cs index d594868942d7..f30af0f30bbe 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a DNS zone by id in a private cloud workload network. + /// Create a WorkloadNetworkDnsZone /// /// [OpenAPI] CreateDnsZone=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a DNS zone by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkDnsZone")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -110,18 +110,18 @@ public partial class NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateC ReadOnly = false, Description = @"Number of DNS Services using the DNS zone.", SerializedName = @"dnsServices", - PossibleTypes = new [] { typeof(long) })] - public long DnsService { get => _workloadNetworkDnsZoneBody.DnsService ?? default(long); set => _workloadNetworkDnsZoneBody.DnsService = value; } + PossibleTypes = new [] { typeof(int) })] + public int DnsService { get => _workloadNetworkDnsZoneBody.DnsService ?? default(int); set => _workloadNetworkDnsZoneBody.DnsService = value; } /// Backing field for property. private string _dnsZoneName; - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DNS Zone identifier. Generally the same as the DNS Zone's display name")] + /// ID of the DNS zone. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS zone.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DNS Zone identifier. Generally the same as the DNS Zone's display name", + Description = @"ID of the DNS zone.", SerializedName = @"dnsZoneId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded.cs index e366d6021aec..a0ab6026413b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a port mirroring profile by id in a private cloud workload network. + /// Create a WorkloadNetworkPortMirroring /// /// [OpenAPI] CreatePortMirroring=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkPortMirroring_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a port mirroring profile by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkPortMirroring")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -155,14 +155,12 @@ public partial class NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded : gl /// Backing field for property. private string _portMirroringName; - /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name")] + /// ID of the NSX port mirroring profile. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the NSX port mirroring profile.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name", + Description = @"ID of the NSX port mirroring profile.", SerializedName = @"portMirroringId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -237,12 +235,12 @@ public partial class NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded : gl /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded.cs index 6f3a34a55ca0..5a0f7671fd32 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a port mirroring profile by id in a private cloud workload network. + /// Create a WorkloadNetworkPortMirroring /// /// [OpenAPI] CreatePortMirroring=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a port mirroring profile by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkPortMirroring")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded.cs index a499532c1558..5ba51b8d2825 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a port mirroring profile by id in a private cloud workload network. + /// Create a WorkloadNetworkPortMirroring /// /// [OpenAPI] CreatePortMirroring=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a port mirroring profile by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkPortMirroring")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -155,14 +155,12 @@ public partial class NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPr /// Backing field for property. private string _portMirroringName; - /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name")] + /// ID of the NSX port mirroring profile. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the NSX port mirroring profile.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name", + Description = @"ID of the NSX port mirroring profile.", SerializedName = @"portMirroringId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded.cs index 6cf91abae700..07dce5b80310 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a Public IP Block by id in a private cloud workload network. + /// Create a WorkloadNetworkPublicIP /// /// [OpenAPI] CreatePublicIP=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkPublicIP_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIP))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a Public IP Block by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkPublicIP")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -173,14 +173,12 @@ public partial class NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded : global: /// Backing field for property. private string _publicIPName; - /// - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Public IP Block identifier. Generally the same as the Public IP Block's display name")] + /// ID of the DNS zone. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS zone.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Public IP Block identifier. Generally the same as the Public IP Block's display name", + Description = @"ID of the DNS zone.", SerializedName = @"publicIPId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -203,12 +201,12 @@ public partial class NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded : global: /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded.cs index 62b3968bc819..3789c6b922e1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a Public IP Block by id in a private cloud workload network. + /// Create a WorkloadNetworkPublicIP /// /// [OpenAPI] CreatePublicIP=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIP))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a Public IP Block by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkPublicIP")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded.cs index 79029854cd36..1798bd2d498f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a Public IP Block by id in a private cloud workload network. + /// Create a WorkloadNetworkPublicIP /// /// [OpenAPI] CreatePublicIP=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPublicIP))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a Public IP Block by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkPublicIP")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -167,14 +167,12 @@ public partial class NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivate /// Backing field for property. private string _publicIPName; - /// - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Public IP Block identifier. Generally the same as the Public IP Block's display name")] + /// ID of the DNS zone. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS zone.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Public IP Block identifier. Generally the same as the Public IP Block's display name", + Description = @"ID of the DNS zone.", SerializedName = @"publicIPId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateExpanded.cs index db9f18150d26..13007862c1a7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a segment by id in a private cloud workload network. + /// Create a WorkloadNetworkSegment /// /// [OpenAPI] CreateSegments=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkSegment_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a segment by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkSegment")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkSegment_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -198,12 +198,12 @@ public partial class NewAzVMwareWorkloadNetworkSegment_CreateExpanded : global:: /// Backing field for property. private string _segmentName; - /// NSX Segment identifier. Generally the same as the Segment's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Segment identifier. Generally the same as the Segment's display name")] + /// The ID of the NSX Segment + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the NSX Segment")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Segment identifier. Generally the same as the Segment's display name", + Description = @"The ID of the NSX Segment", SerializedName = @"segmentId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -235,12 +235,12 @@ public partial class NewAzVMwareWorkloadNetworkSegment_CreateExpanded : global:: /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded.cs index 3d6111955bd6..4f77bdb821cc 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a segment by id in a private cloud workload network. + /// Create a WorkloadNetworkSegment /// /// [OpenAPI] CreateSegments=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a segment by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkSegment")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded.cs index 12a70fea0066..d1770f12f749 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a segment by id in a private cloud workload network. + /// Create a WorkloadNetworkSegment /// /// [OpenAPI] CreateSegments=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a segment by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkSegment")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -178,12 +178,12 @@ public partial class NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateC /// Backing field for property. private string _segmentName; - /// NSX Segment identifier. Generally the same as the Segment's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Segment identifier. Generally the same as the Segment's display name")] + /// The ID of the NSX Segment + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the NSX Segment")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Segment identifier. Generally the same as the Segment's display name", + Description = @"The ID of the NSX Segment", SerializedName = @"segmentId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded.cs index 25ab7ac923bb..8d8bd9057820 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a vm group by id in a private cloud workload network. + /// Create a WorkloadNetworkVMGroup /// /// [OpenAPI] CreateVMGroup=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkVMGroup_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a vm group by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkVMGroup")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -199,12 +199,12 @@ public partial class NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded : global:: /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -218,12 +218,12 @@ public partial class NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded : global:: /// Backing field for property. private string _vMGroupName; - /// NSX VM Group identifier. Generally the same as the VM Group's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX VM Group identifier. Generally the same as the VM Group's display name")] + /// ID of the VM group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the VM group.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX VM Group identifier. Generally the same as the VM Group's display name", + Description = @"ID of the VM group.", SerializedName = @"vmGroupId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded.cs index e03879d815e0..82eb70646b6f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a vm group by id in a private cloud workload network. + /// Create a WorkloadNetworkVMGroup /// /// [OpenAPI] CreateVMGroup=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a vm group by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkVMGroup")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded.cs index 65f31ade16dc..810e447d437c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a vm group by id in a private cloud workload network. + /// Create a WorkloadNetworkVMGroup /// /// [OpenAPI] CreateVMGroup=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a vm group by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a WorkloadNetworkVMGroup")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-09-01")] public partial class NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -179,12 +179,12 @@ public partial class NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateC /// Backing field for property. private string _vMGroupName; - /// NSX VM Group identifier. Generally the same as the VM Group's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX VM Group identifier. Generally the same as the VM Group's display name")] + /// ID of the VM group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the VM group.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX VM Group identifier. Generally the same as the VM Group's display name", + Description = @"ID of the VM group.", SerializedName = @"vmGroupId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_Delete.cs index 4d903ec21d9d..a00d2033ccbb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_Delete.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a addon in a private cloud + /// Delete a Addon /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareAddon_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a addon in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a Addon")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareAddon_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -105,12 +105,12 @@ public partial class RemoveAzVMwareAddon_Delete : global::System.Management.Auto /// Backing field for property. private string _name; - /// Name of the addon for the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the addon for the private cloud")] + /// Name of the addon. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the addon.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the addon for the private cloud", + Description = @"Name of the addon.", SerializedName = @"addonName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AddonName")] @@ -184,12 +184,12 @@ public partial class RemoveAzVMwareAddon_Delete : global::System.Management.Auto /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentity.cs index cf17fd669511..7b8e3ba89912 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a addon in a private cloud + /// Delete a Addon /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareAddon_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a addon in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a Addon")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareAddon_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud.cs index 18ba94d981e4..1a28357203db 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a addon in a private cloud + /// Delete a Addon /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareAddon_DeleteViaIdentityPrivateCloud", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a addon in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a Addon")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -105,12 +105,12 @@ public partial class RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud : global: /// Backing field for property. private string _name; - /// Name of the addon for the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the addon for the private cloud")] + /// Name of the addon. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the addon.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the addon for the private cloud", + Description = @"Name of the addon.", SerializedName = @"addonName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AddonName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_Delete.cs index 32957fe23db8..46874cdf67f5 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_Delete.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete an ExpressRoute Circuit Authorization in a private cloud + /// Delete a ExpressRouteAuthorization /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareAuthorization_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete an ExpressRoute Circuit Authorization in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a ExpressRouteAuthorization")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareAuthorization_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -104,12 +104,12 @@ public partial class RemoveAzVMwareAuthorization_Delete : global::System.Managem /// Backing field for property. private string _name; - /// Name of the ExpressRoute Circuit Authorization in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the ExpressRoute Circuit Authorization in the private cloud")] + /// Name of the ExpressRoute Circuit Authorization + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the ExpressRoute Circuit Authorization")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the ExpressRoute Circuit Authorization in the private cloud", + Description = @"Name of the ExpressRoute Circuit Authorization", SerializedName = @"authorizationName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AuthorizationName")] @@ -183,12 +183,12 @@ public partial class RemoveAzVMwareAuthorization_Delete : global::System.Managem /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentity.cs index b1dae6090b16..ec1b003a2a11 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete an ExpressRoute Circuit Authorization in a private cloud + /// Delete a ExpressRouteAuthorization /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareAuthorization_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete an ExpressRoute Circuit Authorization in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a ExpressRouteAuthorization")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareAuthorization_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud.cs index 71cb986aaa76..f88c9d5f0f9b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete an ExpressRoute Circuit Authorization in a private cloud + /// Delete a ExpressRouteAuthorization /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareAuthorization_DeleteViaIdentityPrivateCloud", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete an ExpressRoute Circuit Authorization in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a ExpressRouteAuthorization")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -104,12 +104,12 @@ public partial class RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud : /// Backing field for property. private string _name; - /// Name of the ExpressRoute Circuit Authorization in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the ExpressRoute Circuit Authorization in the private cloud")] + /// Name of the ExpressRoute Circuit Authorization + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the ExpressRoute Circuit Authorization")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the ExpressRoute Circuit Authorization in the private cloud", + Description = @"Name of the ExpressRoute Circuit Authorization", SerializedName = @"authorizationName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AuthorizationName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_Delete.cs index a5e128f8865a..7c2a1c1027a0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_Delete.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a cloud link in a private cloud + /// Delete a CloudLink /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareCloudLink_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a cloud link in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a CloudLink")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareCloudLink_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -104,12 +104,12 @@ public partial class RemoveAzVMwareCloudLink_Delete : global::System.Management. /// Backing field for property. private string _name; - /// Name of the cloud link resource - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud link resource")] + /// Name of the cloud link. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud link.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cloud link resource", + Description = @"Name of the cloud link.", SerializedName = @"cloudLinkName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("CloudLinkName")] @@ -183,12 +183,12 @@ public partial class RemoveAzVMwareCloudLink_Delete : global::System.Management. /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentity.cs index 01ffbd26b1df..d26953bc1ef2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a cloud link in a private cloud + /// Delete a CloudLink /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareCloudLink_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a cloud link in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a CloudLink")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareCloudLink_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud.cs index 3b64943d5a9d..f0d94ab7bb19 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a cloud link in a private cloud + /// Delete a CloudLink /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareCloudLink_DeleteViaIdentityPrivateCloud", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a cloud link in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a CloudLink")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -104,12 +104,12 @@ public partial class RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud : glo /// Backing field for property. private string _name; - /// Name of the cloud link resource - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud link resource")] + /// Name of the cloud link. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud link.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cloud link resource", + Description = @"Name of the cloud link.", SerializedName = @"cloudLinkName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("CloudLinkName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_Delete.cs index 36a6ec251824..ff6ad6ffc380 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_Delete.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a cluster in a private cloud + /// Delete a Cluster /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareCluster_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a cluster in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a Cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareCluster_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -104,12 +104,12 @@ public partial class RemoveAzVMwareCluster_Delete : global::System.Management.Au /// Backing field for property. private string _name; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ClusterName")] @@ -183,12 +183,12 @@ public partial class RemoveAzVMwareCluster_Delete : global::System.Management.Au /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentity.cs index 75a2a1e186eb..b75b3f39e588 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a cluster in a private cloud + /// Delete a Cluster /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareCluster_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a cluster in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a Cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareCluster_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud.cs index 015f45a4d07b..e9b11547700e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a cluster in a private cloud + /// Delete a Cluster /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareCluster_DeleteViaIdentityPrivateCloud", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a cluster in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a Cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -104,12 +104,12 @@ public partial class RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud : globa /// Backing field for property. private string _name; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ClusterName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_Delete.cs index 322140063e2f..747bccfc4948 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_Delete.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a datastore in a private cloud cluster + /// Delete a Datastore /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareDatastore_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a Datastore")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareDatastore_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -68,12 +68,12 @@ public partial class RemoveAzVMwareDatastore_Delete : global::System.Management. /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -118,12 +118,12 @@ public partial class RemoveAzVMwareDatastore_Delete : global::System.Management. /// Backing field for property. private string _name; - /// Name of the datastore in the private cloud cluster - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore in the private cloud cluster")] + /// Name of the datastore + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the datastore in the private cloud cluster", + Description = @"Name of the datastore", SerializedName = @"datastoreName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("DatastoreName")] @@ -197,12 +197,12 @@ public partial class RemoveAzVMwareDatastore_Delete : global::System.Management. /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentity.cs index 63b6282cb6f0..ca7f9ff45269 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a datastore in a private cloud cluster + /// Delete a Datastore /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareDatastore_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a Datastore")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareDatastore_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityCluster.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityCluster.cs index b2cf4d6ddca7..2c85737963ee 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityCluster.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityCluster.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a datastore in a private cloud cluster + /// Delete a Datastore /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareDatastore_DeleteViaIdentityCluster", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a Datastore")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareDatastore_DeleteViaIdentityCluster : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -112,12 +112,12 @@ public partial class RemoveAzVMwareDatastore_DeleteViaIdentityCluster : global:: /// Backing field for property. private string _name; - /// Name of the datastore in the private cloud cluster - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore in the private cloud cluster")] + /// Name of the datastore + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the datastore in the private cloud cluster", + Description = @"Name of the datastore", SerializedName = @"datastoreName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("DatastoreName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud.cs index 8d7a1bf13f05..5ba42857de92 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a datastore in a private cloud cluster + /// Delete a Datastore /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareDatastore_DeleteViaIdentityPrivateCloud", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a Datastore")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -68,12 +68,12 @@ public partial class RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud : glo /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -118,12 +118,12 @@ public partial class RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud : glo /// Backing field for property. private string _name; - /// Name of the datastore in the private cloud cluster - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore in the private cloud cluster")] + /// Name of the datastore + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the datastore in the private cloud cluster", + Description = @"Name of the datastore", SerializedName = @"datastoreName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("DatastoreName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_Delete.cs index 1eb5f602b528..239bddafe9c5 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_Delete.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a global reach connection in a private cloud + /// Delete a GlobalReachConnection /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareGlobalReachConnection_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a global reach connection in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a GlobalReachConnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareGlobalReachConnection_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -104,12 +104,12 @@ public partial class RemoveAzVMwareGlobalReachConnection_Delete : global::System /// Backing field for property. private string _name; - /// Name of the global reach connection in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the global reach connection in the private cloud")] + /// Name of the global reach connection + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the global reach connection")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the global reach connection in the private cloud", + Description = @"Name of the global reach connection", SerializedName = @"globalReachConnectionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("GlobalReachConnectionName")] @@ -183,12 +183,12 @@ public partial class RemoveAzVMwareGlobalReachConnection_Delete : global::System /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity.cs index e00cd8f671cc..280ca949c349 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a global reach connection in a private cloud + /// Delete a GlobalReachConnection /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareGlobalReachConnection_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a global reach connection in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a GlobalReachConnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud.cs index 4fca5abbab28..ec722a909bef 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a global reach connection in a private cloud + /// Delete a GlobalReachConnection /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a global reach connection in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a GlobalReachConnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -104,12 +104,12 @@ public partial class RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivat /// Backing field for property. private string _name; - /// Name of the global reach connection in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the global reach connection in the private cloud")] + /// Name of the global reach connection + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the global reach connection")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the global reach connection in the private cloud", + Description = @"Name of the global reach connection", SerializedName = @"globalReachConnectionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("GlobalReachConnectionName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareIscsiPath_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareIscsiPath_Delete.cs new file mode 100644 index 000000000000..9a764d89730b --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareIscsiPath_Delete.cs @@ -0,0 +1,610 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; + using System; + + /// Delete a IscsiPath + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareIscsiPath_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a IscsiPath")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default", ApiVersion = "2023-09-01")] + public partial class RemoveAzVMwareIscsiPath_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.VMware.VMware Client => Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _privateCloudName; + + /// Name of the private cloud + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the private cloud")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the private cloud", + SerializedName = @"privateCloudName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public string PrivateCloudName { get => this._privateCloudName; set => this._privateCloudName = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzVMwareIscsiPath_Delete + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareIscsiPath_Delete Clone() + { + var clone = new RemoveAzVMwareIscsiPath_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.PrivateCloudName = this.PrivateCloudName; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'IscsiPathsDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.IscsiPathsDelete(SubscriptionId, ResourceGroupName, PrivateCloudName, onOk, onNoContent, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,PrivateCloudName=PrivateCloudName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzVMwareIscsiPath_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareIscsiPath_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareIscsiPath_DeleteViaIdentity.cs new file mode 100644 index 000000000000..f2d3348d9de1 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareIscsiPath_DeleteViaIdentity.cs @@ -0,0 +1,588 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; + using System; + + /// Delete a IscsiPath + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareIscsiPath_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a IscsiPath")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default", ApiVersion = "2023-09-01")] + public partial class RemoveAzVMwareIscsiPath_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.VMware.VMware Client => Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzVMwareIscsiPath_DeleteViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.RemoveAzVMwareIscsiPath_DeleteViaIdentity Clone() + { + var clone = new RemoveAzVMwareIscsiPath_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'IscsiPathsDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.IscsiPathsDeleteViaIdentity(InputObject.Id, onOk, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.PrivateCloudName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PrivateCloudName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.IscsiPathsDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, onOk, onNoContent, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public RemoveAzVMwareIscsiPath_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_Delete.cs index 49e76f357c12..55a35add245e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_Delete.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a placement policy in a private cloud cluster + /// Delete a PlacementPolicy /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwarePlacementPolicy_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a placement policy in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a PlacementPolicy")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwarePlacementPolicy_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -68,12 +68,12 @@ public partial class RemoveAzVMwarePlacementPolicy_Delete : global::System.Manag /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -118,14 +118,12 @@ public partial class RemoveAzVMwarePlacementPolicy_Delete : global::System.Manag /// Backing field for property. private string _name; - /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy")] + /// Name of the placement policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the placement policy.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy", + Description = @"Name of the placement policy.", SerializedName = @"placementPolicyName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PlacementPolicyName")] @@ -199,12 +197,12 @@ public partial class RemoveAzVMwarePlacementPolicy_Delete : global::System.Manag /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentity.cs index 676fb957aaed..19810daecf92 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentity.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a placement policy in a private cloud cluster + /// Delete a PlacementPolicy /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwarePlacementPolicy_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a placement policy in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a PlacementPolicy")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwarePlacementPolicy_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster.cs index b59500249ca6..71e8804d97d1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a placement policy in a private cloud cluster + /// Delete a PlacementPolicy /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwarePlacementPolicy_DeleteViaIdentityCluster", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a placement policy in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a PlacementPolicy")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -112,14 +112,12 @@ public partial class RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster : gl /// Backing field for property. private string _name; - /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy")] + /// Name of the placement policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the placement policy.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy", + Description = @"Name of the placement policy.", SerializedName = @"placementPolicyName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PlacementPolicyName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud.cs index 23cb33fb77bb..99c21eb907fd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a placement policy in a private cloud cluster + /// Delete a PlacementPolicy /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a placement policy in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a PlacementPolicy")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -68,12 +68,12 @@ public partial class RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -118,14 +118,12 @@ public partial class RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud /// Backing field for property. private string _name; - /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy")] + /// Name of the placement policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the placement policy.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy", + Description = @"Name of the placement policy.", SerializedName = @"placementPolicyName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PlacementPolicyName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_Delete.cs index 96c71d6153d2..d4aa1c898c8c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_Delete.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a private cloud + /// Delete a PrivateCloud /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwarePrivateCloud_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a PrivateCloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwarePrivateCloud_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -170,12 +170,12 @@ public partial class RemoveAzVMwarePrivateCloud_Delete : global::System.Manageme /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_DeleteViaIdentity.cs index 4c93a0941fce..82b7fe67f99f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_DeleteViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a private cloud + /// Delete a PrivateCloud /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwarePrivateCloud_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a PrivateCloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwarePrivateCloud_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs index 3a72de0ae2e8..2986f2244de3 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Cancel a ScriptExecution in a private cloud + /// Delete a ScriptExecution /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareScriptExecution_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Cancel a ScriptExecution in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a ScriptExecution")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareScriptExecution_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -105,12 +105,12 @@ public partial class RemoveAzVMwareScriptExecution_Delete : global::System.Manag /// Backing field for property. private string _name; - /// Name of the user-invoked script execution resource - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the user-invoked script execution resource")] + /// Name of the script cmdlet. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script cmdlet.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the user-invoked script execution resource", + Description = @"Name of the script cmdlet.", SerializedName = @"scriptExecutionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ScriptExecutionName")] @@ -184,12 +184,12 @@ public partial class RemoveAzVMwareScriptExecution_Delete : global::System.Manag /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentity.cs index 3197d88fbe62..74e7d4ed0653 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Cancel a ScriptExecution in a private cloud + /// Delete a ScriptExecution /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareScriptExecution_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Cancel a ScriptExecution in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a ScriptExecution")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareScriptExecution_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud.cs index 288dd165e5d0..399ed4c063b4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Cancel a ScriptExecution in a private cloud + /// Delete a ScriptExecution /// /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareScriptExecution_DeleteViaIdentityPrivateCloud", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Cancel a ScriptExecution in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a ScriptExecution")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -105,12 +105,12 @@ public partial class RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud /// Backing field for property. private string _name; - /// Name of the user-invoked script execution resource - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the user-invoked script execution resource")] + /// Name of the script cmdlet. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the script cmdlet.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the user-invoked script execution resource", + Description = @"Name of the script cmdlet.", SerializedName = @"scriptExecutionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ScriptExecutionName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_Delete.cs index 8442e0372e6d..11c5db443294 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_Delete.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete dhcp by id in a private cloud workload network. + /// Delete a WorkloadNetworkDhcp /// /// [OpenAPI] DeleteDhcp=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkDhcp_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete dhcp by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkDhcp")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkDhcp_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -79,12 +79,12 @@ public partial class RemoveAzVMwareWorkloadNetworkDhcp_Delete : global::System.M /// Backing field for property. private string _dhcpName; - /// NSX DHCP identifier. Generally the same as the DHCP display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DHCP identifier. Generally the same as the DHCP display name")] + /// The ID of the DHCP configuration + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the DHCP configuration")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DHCP identifier. Generally the same as the DHCP display name", + Description = @"The ID of the DHCP configuration", SerializedName = @"dhcpId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -183,12 +183,12 @@ public partial class RemoveAzVMwareWorkloadNetworkDhcp_Delete : global::System.M /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity.cs index 1b2ebb2651bf..44331d07795a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete dhcp by id in a private cloud workload network. + /// Delete a WorkloadNetworkDhcp /// /// [OpenAPI] DeleteDhcp=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkDhcp_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete dhcp by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkDhcp")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud.cs index e1960cf7720f..72ae702b1abf 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete dhcp by id in a private cloud workload network. + /// Delete a WorkloadNetworkDhcp /// /// [OpenAPI] DeleteDhcp=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete dhcp by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkDhcp")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -79,12 +79,12 @@ public partial class RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateC /// Backing field for property. private string _dhcpName; - /// NSX DHCP identifier. Generally the same as the DHCP display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DHCP identifier. Generally the same as the DHCP display name")] + /// The ID of the DHCP configuration + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the DHCP configuration")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DHCP identifier. Generally the same as the DHCP display name", + Description = @"The ID of the DHCP configuration", SerializedName = @"dhcpId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_Delete.cs index b024519a0693..6aaa3918962b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_Delete.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a DNS service by id in a private cloud workload network. + /// Delete a WorkloadNetworkDnsService /// /// [OpenAPI] DeleteDnsService=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkDnsService_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a DNS service by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkDnsService")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkDnsService_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -79,14 +79,12 @@ public partial class RemoveAzVMwareWorkloadNetworkDnsService_Delete : global::Sy /// Backing field for property. private string _dnsServiceName; - /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DNS Service identifier. Generally the same as the DNS Service's display name")] + /// ID of the DNS service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS service.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DNS Service identifier. Generally the same as the DNS Service's display name", + Description = @"ID of the DNS service.", SerializedName = @"dnsServiceId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -185,12 +183,12 @@ public partial class RemoveAzVMwareWorkloadNetworkDnsService_Delete : global::Sy /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity.cs index f22f35bed3b9..526b9f91aedd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a DNS service by id in a private cloud workload network. + /// Delete a WorkloadNetworkDnsService /// /// [OpenAPI] DeleteDnsService=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkDnsService_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a DNS service by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkDnsService")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService.cs index 3eafa2a21529..5cb251c5da34 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a DNS service by id in a private cloud workload network. + /// Delete a WorkloadNetworkDnsService /// /// [OpenAPI] DeleteDnsService=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a DNS service by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkDnsService")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_Delete.cs index 8a19fdc9f2ab..1b6b4d354bc5 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_Delete.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a DNS zone by id in a private cloud workload network. + /// Delete a WorkloadNetworkDnsZone /// /// [OpenAPI] DeleteDnsZone=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkDnsZone_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a DNS zone by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkDnsZone")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkDnsZone_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -79,12 +79,12 @@ public partial class RemoveAzVMwareWorkloadNetworkDnsZone_Delete : global::Syste /// Backing field for property. private string _dnsZoneName; - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DNS Zone identifier. Generally the same as the DNS Zone's display name")] + /// ID of the DNS zone. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS zone.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DNS Zone identifier. Generally the same as the DNS Zone's display name", + Description = @"ID of the DNS zone.", SerializedName = @"dnsZoneId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -183,12 +183,12 @@ public partial class RemoveAzVMwareWorkloadNetworkDnsZone_Delete : global::Syste /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity.cs index 0980171bae8f..eec443adadb6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a DNS zone by id in a private cloud workload network. + /// Delete a WorkloadNetworkDnsZone /// /// [OpenAPI] DeleteDnsZone=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a DNS zone by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkDnsZone")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone.cs index 7146d88df8ef..a3e878dfe36f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a DNS zone by id in a private cloud workload network. + /// Delete a WorkloadNetworkDnsZone /// /// [OpenAPI] DeleteDnsZone=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a DNS zone by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkDnsZone")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_Delete.cs index c12e15b93564..b69e18212e8d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_Delete.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a port mirroring profile by id in a private cloud workload network. + /// Delete a WorkloadNetworkPortMirroring /// /// [OpenAPI] DeletePortMirroring=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkPortMirroring_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a port mirroring profile by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkPortMirroring")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkPortMirroring_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -125,14 +125,12 @@ public partial class RemoveAzVMwareWorkloadNetworkPortMirroring_Delete : global: /// Backing field for property. private string _portMirroringName; - /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name")] + /// ID of the NSX port mirroring profile. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the NSX port mirroring profile.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name", + Description = @"ID of the NSX port mirroring profile.", SerializedName = @"portMirroringId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -185,12 +183,12 @@ public partial class RemoveAzVMwareWorkloadNetworkPortMirroring_Delete : global: /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity.cs index 184941ae6e31..d06841edb84e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a port mirroring profile by id in a private cloud workload network. + /// Delete a WorkloadNetworkPortMirroring /// /// [OpenAPI] DeletePortMirroring=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a port mirroring profile by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkPortMirroring")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile.cs index c986f4b685d2..126910ed0169 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a port mirroring profile by id in a private cloud workload network. + /// Delete a WorkloadNetworkPortMirroring /// /// [OpenAPI] DeletePortMirroring=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a port mirroring profile by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkPortMirroring")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_Delete.cs index ed6bde98c2f9..573b1b0da0ef 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_Delete.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a Public IP Block by id in a private cloud workload network. + /// Delete a WorkloadNetworkPublicIP /// /// [OpenAPI] DeletePublicIP=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkPublicIP_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a Public IP Block by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkPublicIP")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkPublicIP_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -155,14 +155,12 @@ public partial class RemoveAzVMwareWorkloadNetworkPublicIP_Delete : global::Syst /// Backing field for property. private string _publicIPName; - /// - /// NSX Public IP Block identifier. Generally the same as the Public IP Block's display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Public IP Block identifier. Generally the same as the Public IP Block's display name")] + /// ID of the DNS zone. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS zone.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Public IP Block identifier. Generally the same as the Public IP Block's display name", + Description = @"ID of the DNS zone.", SerializedName = @"publicIPId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -185,12 +183,12 @@ public partial class RemoveAzVMwareWorkloadNetworkPublicIP_Delete : global::Syst /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity.cs index b5689bfd074c..4cf27d4cdc06 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a Public IP Block by id in a private cloud workload network. + /// Delete a WorkloadNetworkPublicIP /// /// [OpenAPI] DeletePublicIP=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a Public IP Block by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkPublicIP")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP.cs index 8502da8213a4..10472a346e38 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a Public IP Block by id in a private cloud workload network. + /// Delete a WorkloadNetworkPublicIP /// /// [OpenAPI] DeletePublicIP=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a Public IP Block by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkPublicIP")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/publicIPs/{publicIPId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_Delete.cs index 9443e9e3b200..d5ce5a265e50 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_Delete.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a segment by id in a private cloud workload network. + /// Delete a WorkloadNetworkSegment /// /// [OpenAPI] DeleteSegment=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkSegment_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a segment by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkSegment")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkSegment_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -169,12 +169,12 @@ public partial class RemoveAzVMwareWorkloadNetworkSegment_Delete : global::Syste /// Backing field for property. private string _segmentName; - /// NSX Segment identifier. Generally the same as the Segment's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Segment identifier. Generally the same as the Segment's display name")] + /// The ID of the NSX Segment + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the NSX Segment")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Segment identifier. Generally the same as the Segment's display name", + Description = @"The ID of the NSX Segment", SerializedName = @"segmentId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -183,12 +183,12 @@ public partial class RemoveAzVMwareWorkloadNetworkSegment_Delete : global::Syste /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity.cs index 5662d86d416d..fa23577cc306 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a segment by id in a private cloud workload network. + /// Delete a WorkloadNetworkSegment /// /// [OpenAPI] DeleteSegment=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkSegment_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a segment by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkSegment")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud.cs index 7054446d37bd..6ae980b0e1e1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a segment by id in a private cloud workload network. + /// Delete a WorkloadNetworkSegment /// /// [OpenAPI] DeleteSegment=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a segment by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkSegment")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -149,12 +149,12 @@ public partial class RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPriva /// Backing field for property. private string _segmentName; - /// NSX Segment identifier. Generally the same as the Segment's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Segment identifier. Generally the same as the Segment's display name")] + /// The ID of the NSX Segment + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the NSX Segment")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Segment identifier. Generally the same as the Segment's display name", + Description = @"The ID of the NSX Segment", SerializedName = @"segmentId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_Delete.cs index ac1463ec9094..57df0b6f90ff 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_Delete.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a vm group by id in a private cloud workload network. + /// Delete a WorkloadNetworkVMGroup /// /// [OpenAPI] DeleteVMGroup=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkVMGroup_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a vm group by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkVMGroup")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkVMGroup_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -169,12 +169,12 @@ public partial class RemoveAzVMwareWorkloadNetworkVMGroup_Delete : global::Syste /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class RemoveAzVMwareWorkloadNetworkVMGroup_Delete : global::Syste /// Backing field for property. private string _vMGroupName; - /// NSX VM Group identifier. Generally the same as the VM Group's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX VM Group identifier. Generally the same as the VM Group's display name")] + /// ID of the VM group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the VM group.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX VM Group identifier. Generally the same as the VM Group's display name", + Description = @"ID of the VM group.", SerializedName = @"vmGroupId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity.cs index 001d49b18f05..f1d64396ecdc 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a vm group by id in a private cloud workload network. + /// Delete a WorkloadNetworkVMGroup /// /// [OpenAPI] DeleteVMGroup=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a vm group by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkVMGroup")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup.cs index 7590ff4953fe..009aed75bf90 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Delete a vm group by id in a private cloud workload network. + /// Delete a WorkloadNetworkVMGroup /// /// [OpenAPI] DeleteVMGroup=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a vm group by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Delete a WorkloadNetworkVMGroup")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-09-01")] public partial class RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationQuotaAvailability_Check.cs b/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationQuotaAvailability_Check.cs index bfc626f791a4..a7d9e8b779fd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationQuotaAvailability_Check.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationQuotaAvailability_Check.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IQuota))] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Return quota for subscription by region")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkQuotaAvailability", ApiVersion = "2023-09-01")] public partial class TestAzVMwareLocationQuotaAvailability_Check : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -91,12 +91,12 @@ public partial class TestAzVMwareLocationQuotaAvailability_Check : global::Syste /// Backing field for property. private string _location; - /// Azure region - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Azure region")] + /// The name of the Azure region. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Azure region.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Azure region", + Description = @"The name of the Azure region.", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -134,12 +134,12 @@ public partial class TestAzVMwareLocationQuotaAvailability_Check : global::Syste /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationTrialAvailability_CheckExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationTrialAvailability_CheckExpanded.cs index b9540228d0fc..8bd972ed87e9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationTrialAvailability_CheckExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationTrialAvailability_CheckExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrial))] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Return trial status for subscription by region")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.AVS/locations/{location}/checkTrialAvailability", ApiVersion = "2023-09-01")] public partial class TestAzVMwareLocationTrialAvailability_CheckExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -60,6 +60,20 @@ public partial class TestAzVMwareLocationTrialAvailability_CheckExpanded : globa /// Accessor for cancellationTokenSource. public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + public int Capacity { get => _skuBody.Capacity ?? default(int); set => _skuBody.Capacity = value; } + /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.VMware.VMware Client => Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.ClientAPI; @@ -76,6 +90,19 @@ public partial class TestAzVMwareLocationTrialAvailability_CheckExpanded : globa /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the service has different generations of hardware, for the same SKU, then that can be captured here.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + public string Family { get => _skuBody.Family ?? null; set => _skuBody.Family = value; } + /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] @@ -94,12 +121,12 @@ public partial class TestAzVMwareLocationTrialAvailability_CheckExpanded : globa /// Backing field for property. private string _location; - /// Azure region - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Azure region")] + /// The name of the Azure region. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the Azure region.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Azure region", + Description = @"The name of the Azure region.", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -113,13 +140,13 @@ public partial class TestAzVMwareLocationTrialAvailability_CheckExpanded : globa /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - /// The name of the SKU. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the SKU.")] + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the SKU. E.g. P3. It is typically a letter+number code")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The name of the SKU.", + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] public string Name { get => _skuBody.Name ?? null; set => _skuBody.Name = value; } @@ -145,15 +172,28 @@ public partial class TestAzVMwareLocationTrialAvailability_CheckExpanded : globa [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + public string Size { get => _skuBody.Size ?? null; set => _skuBody.Size = value; } + /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -164,6 +204,21 @@ public partial class TestAzVMwareLocationTrialAvailability_CheckExpanded : globa [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + public string Tier { get => _skuBody.Tier ?? null; set => _skuBody.Tier = value; } + /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateExpanded.cs index 61db6d13fa61..533de6b703ec 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update an ExpressRoute Circuit Authorization in a private cloud + /// Update a ExpressRouteAuthorization /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareAuthorization_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update an ExpressRoute Circuit Authorization in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a ExpressRouteAuthorization")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareAuthorization_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -107,12 +107,12 @@ public partial class UpdateAzVMwareAuthorization_UpdateExpanded : global::System /// Backing field for property. private string _name; - /// Name of the ExpressRoute Circuit Authorization in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the ExpressRoute Circuit Authorization in the private cloud")] + /// Name of the ExpressRoute Circuit Authorization + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the ExpressRoute Circuit Authorization")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the ExpressRoute Circuit Authorization in the private cloud", + Description = @"Name of the ExpressRoute Circuit Authorization", SerializedName = @"authorizationName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AuthorizationName")] @@ -135,12 +135,12 @@ public partial class UpdateAzVMwareAuthorization_UpdateExpanded : global::System /// Backing field for property. private string _privateCloudName; - /// The name of the private cloud. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private cloud.")] + /// Name of the private cloud + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the private cloud")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private cloud.", + Description = @"Name of the private cloud", SerializedName = @"privateCloudName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -179,12 +179,12 @@ public partial class UpdateAzVMwareAuthorization_UpdateExpanded : global::System /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded.cs index 52923c90f714..0edbadb911d0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update an ExpressRoute Circuit Authorization in a private cloud + /// Update a ExpressRouteAuthorization /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareAuthorization_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update an ExpressRoute Circuit Authorization in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a ExpressRouteAuthorization")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded.cs index e1c45112a565..507dc31a489d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update an ExpressRoute Circuit Authorization in a private cloud + /// Update a ExpressRouteAuthorization /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update an ExpressRoute Circuit Authorization in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a ExpressRouteAuthorization")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -107,12 +107,12 @@ public partial class UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudEx /// Backing field for property. private string _name; - /// Name of the ExpressRoute Circuit Authorization in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the ExpressRoute Circuit Authorization in the private cloud")] + /// Name of the ExpressRoute Circuit Authorization + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the ExpressRoute Circuit Authorization")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the ExpressRoute Circuit Authorization in the private cloud", + Description = @"Name of the ExpressRoute Circuit Authorization", SerializedName = @"authorizationName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("AuthorizationName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateExpanded.cs index 4aed3a337908..4a3b2435ec2e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a cloud link in a private cloud + /// Update a CloudLink /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareCloudLink_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a cloud link in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a CloudLink")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareCloudLink_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -96,17 +96,6 @@ public partial class UpdateAzVMwareCloudLink_UpdateExpanded : global::System.Man /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - /// Identifier of the other private cloud participating in the link. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier of the other private cloud participating in the link.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Identifier of the other private cloud participating in the link.", - SerializedName = @"linkedCloud", - PossibleTypes = new [] { typeof(string) })] - public string LinkedCloud { get => _cloudLinkBody.LinkedCloud ?? null; set => _cloudLinkBody.LinkedCloud = value; } - /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -118,12 +107,12 @@ public partial class UpdateAzVMwareCloudLink_UpdateExpanded : global::System.Man /// Backing field for property. private string _name; - /// Name of the cloud link resource - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud link resource")] + /// Name of the cloud link. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud link.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cloud link resource", + Description = @"Name of the cloud link.", SerializedName = @"cloudLinkName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("CloudLinkName")] @@ -146,12 +135,12 @@ public partial class UpdateAzVMwareCloudLink_UpdateExpanded : global::System.Man /// Backing field for property. private string _privateCloudName; - /// The name of the private cloud. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private cloud.")] + /// Name of the private cloud + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the private cloud")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private cloud.", + Description = @"Name of the private cloud", SerializedName = @"privateCloudName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -190,12 +179,12 @@ public partial class UpdateAzVMwareCloudLink_UpdateExpanded : global::System.Man /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -522,10 +511,7 @@ public UpdateAzVMwareCloudLink_UpdateExpanded() private void Update_cloudLinkBody() { - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("LinkedCloud"))) - { - this.LinkedCloud = (string)(this.MyInvocation?.BoundParameters["LinkedCloud"]); - } + } /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded.cs index bd0a89ecb662..3d074861a114 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a cloud link in a private cloud + /// Update a CloudLink /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareCloudLink_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a cloud link in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a CloudLink")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -104,17 +104,6 @@ public partial class UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded : global: /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - /// Identifier of the other private cloud participating in the link. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier of the other private cloud participating in the link.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Identifier of the other private cloud participating in the link.", - SerializedName = @"linkedCloud", - PossibleTypes = new [] { typeof(string) })] - public string LinkedCloud { get => _cloudLinkBody.LinkedCloud ?? null; set => _cloudLinkBody.LinkedCloud = value; } - /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -490,10 +479,7 @@ public UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded() private void Update_cloudLinkBody() { - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("LinkedCloud"))) - { - this.LinkedCloud = (string)(this.MyInvocation?.BoundParameters["LinkedCloud"]); - } + } /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded.cs index 05650a53a1eb..47af9d047ce4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a cloud link in a private cloud + /// Update a CloudLink /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a cloud link in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a CloudLink")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -96,17 +96,6 @@ public partial class UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpand /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - /// Identifier of the other private cloud participating in the link. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier of the other private cloud participating in the link.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Identifier of the other private cloud participating in the link.", - SerializedName = @"linkedCloud", - PossibleTypes = new [] { typeof(string) })] - public string LinkedCloud { get => _cloudLinkBody.LinkedCloud ?? null; set => _cloudLinkBody.LinkedCloud = value; } - /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -118,12 +107,12 @@ public partial class UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpand /// Backing field for property. private string _name; - /// Name of the cloud link resource - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud link resource")] + /// Name of the cloud link. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cloud link.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cloud link resource", + Description = @"Name of the cloud link.", SerializedName = @"cloudLinkName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("CloudLinkName")] @@ -506,10 +495,7 @@ public UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded() private void Update_cloudLinkBody() { - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("LinkedCloud"))) - { - this.LinkedCloud = (string)(this.MyInvocation?.BoundParameters["LinkedCloud"]); - } + } /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateExpanded.cs index 5df1d1c44f98..01f806eab8f6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a cluster in a private cloud + /// Update a Cluster /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareCluster_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a cluster in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a Cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareCluster_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -118,12 +118,12 @@ public partial class UpdateAzVMwareCluster_UpdateExpanded : global::System.Manag /// Backing field for property. private string _name; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ClusterName")] @@ -199,15 +199,81 @@ public partial class UpdateAzVMwareCluster_UpdateExpanded : global::System.Manag [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + public int SkuCapacity { get => _clusterUpdateBody.SkuCapacity ?? default(int); set => _clusterUpdateBody.SkuCapacity = value; } + + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the service has different generations of hardware, for the same SKU, then that can be captured here.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + public string SkuFamily { get => _clusterUpdateBody.SkuFamily ?? null; set => _clusterUpdateBody.SkuFamily = value; } + + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the SKU. E.g. P3. It is typically a letter+number code")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + public string SkuName { get => _clusterUpdateBody.SkuName ?? null; set => _clusterUpdateBody.SkuName = value; } + + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + public string SkuSize { get => _clusterUpdateBody.SkuSize ?? null; set => _clusterUpdateBody.SkuSize = value; } + + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + public string SkuTier { get => _clusterUpdateBody.SkuTier ?? null; set => _clusterUpdateBody.SkuTier = value; } + /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityExpanded.cs index 3c3ae9ccff1e..a95c470649e4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a cluster in a private cloud + /// Update a Cluster /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareCluster_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a cluster in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a Cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareCluster_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -164,6 +164,72 @@ public partial class UpdateAzVMwareCluster_UpdateViaIdentityExpanded : global::S [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + public int SkuCapacity { get => _clusterUpdateBody.SkuCapacity ?? default(int); set => _clusterUpdateBody.SkuCapacity = value; } + + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the service has different generations of hardware, for the same SKU, then that can be captured here.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + public string SkuFamily { get => _clusterUpdateBody.SkuFamily ?? null; set => _clusterUpdateBody.SkuFamily = value; } + + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the SKU. E.g. P3. It is typically a letter+number code")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + public string SkuName { get => _clusterUpdateBody.SkuName ?? null; set => _clusterUpdateBody.SkuName = value; } + + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + public string SkuSize { get => _clusterUpdateBody.SkuSize ?? null; set => _clusterUpdateBody.SkuSize = value; } + + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + public string SkuTier { get => _clusterUpdateBody.SkuTier ?? null; set => _clusterUpdateBody.SkuTier = value; } + /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded.cs index d686852e883c..c87e062c57b6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a cluster in a private cloud + /// Update a Cluster /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICluster))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a cluster in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a Cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -118,12 +118,12 @@ public partial class UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded /// Backing field for property. private string _name; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("ClusterName")] @@ -179,6 +179,72 @@ public partial class UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + public int SkuCapacity { get => _clusterUpdateBody.SkuCapacity ?? default(int); set => _clusterUpdateBody.SkuCapacity = value; } + + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the service has different generations of hardware, for the same SKU, then that can be captured here.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + public string SkuFamily { get => _clusterUpdateBody.SkuFamily ?? null; set => _clusterUpdateBody.SkuFamily = value; } + + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the SKU. E.g. P3. It is typically a letter+number code")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + public string SkuName { get => _clusterUpdateBody.SkuName ?? null; set => _clusterUpdateBody.SkuName = value; } + + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + public string SkuSize { get => _clusterUpdateBody.SkuSize ?? null; set => _clusterUpdateBody.SkuSize = value; } + + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + public string SkuTier { get => _clusterUpdateBody.SkuTier ?? null; set => _clusterUpdateBody.SkuTier = value; } + /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateExpanded.cs index a197391aa482..24003198c8ed 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a datastore in a private cloud cluster + /// Update a Datastore /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareDatastore_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a Datastore")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareDatastore_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -71,12 +71,12 @@ public partial class UpdateAzVMwareDatastore_UpdateExpanded : global::System.Man /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -92,42 +92,6 @@ public partial class UpdateAzVMwareDatastore_UpdateExpanded : global::System.Man [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - /// Name of the LUN to be used for datastore - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the LUN to be used for datastore")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of the LUN to be used for datastore", - SerializedName = @"lunName", - PossibleTypes = new [] { typeof(string) })] - public string DiskPoolVolumeLunName { get => _datastoreBody.DiskPoolVolumeLunName ?? null; set => _datastoreBody.DiskPoolVolumeLunName = value; } - - /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN", - SerializedName = @"mountOption", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] - public string DiskPoolVolumeMountOption { get => _datastoreBody.DiskPoolVolumeMountOption ?? null; set => _datastoreBody.DiskPoolVolumeMountOption = value; } - - /// Azure resource ID of the iSCSI target - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Azure resource ID of the iSCSI target")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Azure resource ID of the iSCSI target", - SerializedName = @"targetId", - PossibleTypes = new [] { typeof(string) })] - public string DiskPoolVolumeTargetId { get => _datastoreBody.DiskPoolVolumeTargetId ?? null; set => _datastoreBody.DiskPoolVolumeTargetId = value; } - /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } @@ -157,29 +121,18 @@ public partial class UpdateAzVMwareDatastore_UpdateExpanded : global::System.Man /// Backing field for property. private string _name; - /// Name of the datastore in the private cloud cluster - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore in the private cloud cluster")] + /// Name of the datastore + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the datastore in the private cloud cluster", + Description = @"Name of the datastore", SerializedName = @"datastoreName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("DatastoreName")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] public string Name { get => this._name; set => this._name = value; } - /// Azure resource ID of the NetApp volume - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Azure resource ID of the NetApp volume")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Azure resource ID of the NetApp volume", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - public string NetAppVolumeId { get => _datastoreBody.NetAppVolumeId ?? null; set => _datastoreBody.NetAppVolumeId = value; } - /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue /// asynchronously. @@ -240,12 +193,12 @@ public partial class UpdateAzVMwareDatastore_UpdateExpanded : global::System.Man /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -573,22 +526,7 @@ public UpdateAzVMwareDatastore_UpdateExpanded() private void Update_datastoreBody() { - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("NetAppVolumeId"))) - { - this.NetAppVolumeId = (string)(this.MyInvocation?.BoundParameters["NetAppVolumeId"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("DiskPoolVolumeTargetId"))) - { - this.DiskPoolVolumeTargetId = (string)(this.MyInvocation?.BoundParameters["DiskPoolVolumeTargetId"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("DiskPoolVolumeLunName"))) - { - this.DiskPoolVolumeLunName = (string)(this.MyInvocation?.BoundParameters["DiskPoolVolumeLunName"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("DiskPoolVolumeMountOption"))) - { - this.DiskPoolVolumeMountOption = (string)(this.MyInvocation?.BoundParameters["DiskPoolVolumeMountOption"]); - } + } /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded.cs index 90989d28360d..cab205430680 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a datastore in a private cloud cluster + /// Update a Datastore /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareDatastore_UpdateViaIdentityClusterExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a Datastore")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -86,42 +86,6 @@ public partial class UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded : [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - /// Name of the LUN to be used for datastore - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the LUN to be used for datastore")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of the LUN to be used for datastore", - SerializedName = @"lunName", - PossibleTypes = new [] { typeof(string) })] - public string DiskPoolVolumeLunName { get => _datastoreBody.DiskPoolVolumeLunName ?? null; set => _datastoreBody.DiskPoolVolumeLunName = value; } - - /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN", - SerializedName = @"mountOption", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] - public string DiskPoolVolumeMountOption { get => _datastoreBody.DiskPoolVolumeMountOption ?? null; set => _datastoreBody.DiskPoolVolumeMountOption = value; } - - /// Azure resource ID of the iSCSI target - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Azure resource ID of the iSCSI target")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Azure resource ID of the iSCSI target", - SerializedName = @"targetId", - PossibleTypes = new [] { typeof(string) })] - public string DiskPoolVolumeTargetId { get => _datastoreBody.DiskPoolVolumeTargetId ?? null; set => _datastoreBody.DiskPoolVolumeTargetId = value; } - /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } @@ -151,29 +115,18 @@ public partial class UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded : /// Backing field for property. private string _name; - /// Name of the datastore in the private cloud cluster - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore in the private cloud cluster")] + /// Name of the datastore + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the datastore in the private cloud cluster", + Description = @"Name of the datastore", SerializedName = @"datastoreName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("DatastoreName")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] public string Name { get => this._name; set => this._name = value; } - /// Azure resource ID of the NetApp volume - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Azure resource ID of the NetApp volume")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Azure resource ID of the NetApp volume", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - public string NetAppVolumeId { get => _datastoreBody.NetAppVolumeId ?? null; set => _datastoreBody.NetAppVolumeId = value; } - /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue /// asynchronously. @@ -545,22 +498,7 @@ public UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded() private void Update_datastoreBody() { - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("NetAppVolumeId"))) - { - this.NetAppVolumeId = (string)(this.MyInvocation?.BoundParameters["NetAppVolumeId"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("DiskPoolVolumeTargetId"))) - { - this.DiskPoolVolumeTargetId = (string)(this.MyInvocation?.BoundParameters["DiskPoolVolumeTargetId"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("DiskPoolVolumeLunName"))) - { - this.DiskPoolVolumeLunName = (string)(this.MyInvocation?.BoundParameters["DiskPoolVolumeLunName"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("DiskPoolVolumeMountOption"))) - { - this.DiskPoolVolumeMountOption = (string)(this.MyInvocation?.BoundParameters["DiskPoolVolumeMountOption"]); - } + } /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityExpanded.cs index 680498f8a24c..1a4da3ce73ce 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a datastore in a private cloud cluster + /// Update a Datastore /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareDatastore_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a Datastore")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareDatastore_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -78,42 +78,6 @@ public partial class UpdateAzVMwareDatastore_UpdateViaIdentityExpanded : global: [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - /// Name of the LUN to be used for datastore - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the LUN to be used for datastore")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of the LUN to be used for datastore", - SerializedName = @"lunName", - PossibleTypes = new [] { typeof(string) })] - public string DiskPoolVolumeLunName { get => _datastoreBody.DiskPoolVolumeLunName ?? null; set => _datastoreBody.DiskPoolVolumeLunName = value; } - - /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN", - SerializedName = @"mountOption", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] - public string DiskPoolVolumeMountOption { get => _datastoreBody.DiskPoolVolumeMountOption ?? null; set => _datastoreBody.DiskPoolVolumeMountOption = value; } - - /// Azure resource ID of the iSCSI target - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Azure resource ID of the iSCSI target")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Azure resource ID of the iSCSI target", - SerializedName = @"targetId", - PossibleTypes = new [] { typeof(string) })] - public string DiskPoolVolumeTargetId { get => _datastoreBody.DiskPoolVolumeTargetId ?? null; set => _datastoreBody.DiskPoolVolumeTargetId = value; } - /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } @@ -148,17 +112,6 @@ public partial class UpdateAzVMwareDatastore_UpdateViaIdentityExpanded : global: /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - /// Azure resource ID of the NetApp volume - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Azure resource ID of the NetApp volume")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Azure resource ID of the NetApp volume", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - public string NetAppVolumeId { get => _datastoreBody.NetAppVolumeId ?? null; set => _datastoreBody.NetAppVolumeId = value; } - /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue /// asynchronously. @@ -530,22 +483,7 @@ public UpdateAzVMwareDatastore_UpdateViaIdentityExpanded() private void Update_datastoreBody() { - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("NetAppVolumeId"))) - { - this.NetAppVolumeId = (string)(this.MyInvocation?.BoundParameters["NetAppVolumeId"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("DiskPoolVolumeTargetId"))) - { - this.DiskPoolVolumeTargetId = (string)(this.MyInvocation?.BoundParameters["DiskPoolVolumeTargetId"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("DiskPoolVolumeLunName"))) - { - this.DiskPoolVolumeLunName = (string)(this.MyInvocation?.BoundParameters["DiskPoolVolumeLunName"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("DiskPoolVolumeMountOption"))) - { - this.DiskPoolVolumeMountOption = (string)(this.MyInvocation?.BoundParameters["DiskPoolVolumeMountOption"]); - } + } /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded.cs index 4e9a78303c54..ef811ce3a191 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a datastore in a private cloud cluster + /// Update a Datastore /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a Datastore")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -71,12 +71,12 @@ public partial class UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpand /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -92,42 +92,6 @@ public partial class UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpand [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - /// Name of the LUN to be used for datastore - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the LUN to be used for datastore")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Name of the LUN to be used for datastore", - SerializedName = @"lunName", - PossibleTypes = new [] { typeof(string) })] - public string DiskPoolVolumeLunName { get => _datastoreBody.DiskPoolVolumeLunName ?? null; set => _datastoreBody.DiskPoolVolumeLunName = value; } - - /// - /// Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN", - SerializedName = @"mountOption", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("MOUNT", "ATTACH")] - public string DiskPoolVolumeMountOption { get => _datastoreBody.DiskPoolVolumeMountOption ?? null; set => _datastoreBody.DiskPoolVolumeMountOption = value; } - - /// Azure resource ID of the iSCSI target - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Azure resource ID of the iSCSI target")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Azure resource ID of the iSCSI target", - SerializedName = @"targetId", - PossibleTypes = new [] { typeof(string) })] - public string DiskPoolVolumeTargetId { get => _datastoreBody.DiskPoolVolumeTargetId ?? null; set => _datastoreBody.DiskPoolVolumeTargetId = value; } - /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } @@ -157,29 +121,18 @@ public partial class UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpand /// Backing field for property. private string _name; - /// Name of the datastore in the private cloud cluster - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore in the private cloud cluster")] + /// Name of the datastore + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the datastore")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the datastore in the private cloud cluster", + Description = @"Name of the datastore", SerializedName = @"datastoreName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("DatastoreName")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] public string Name { get => this._name; set => this._name = value; } - /// Azure resource ID of the NetApp volume - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Azure resource ID of the NetApp volume")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Azure resource ID of the NetApp volume", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - public string NetAppVolumeId { get => _datastoreBody.NetAppVolumeId ?? null; set => _datastoreBody.NetAppVolumeId = value; } - /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue /// asynchronously. @@ -557,22 +510,7 @@ public UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded() private void Update_datastoreBody() { - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("NetAppVolumeId"))) - { - this.NetAppVolumeId = (string)(this.MyInvocation?.BoundParameters["NetAppVolumeId"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("DiskPoolVolumeTargetId"))) - { - this.DiskPoolVolumeTargetId = (string)(this.MyInvocation?.BoundParameters["DiskPoolVolumeTargetId"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("DiskPoolVolumeLunName"))) - { - this.DiskPoolVolumeLunName = (string)(this.MyInvocation?.BoundParameters["DiskPoolVolumeLunName"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("DiskPoolVolumeMountOption"))) - { - this.DiskPoolVolumeMountOption = (string)(this.MyInvocation?.BoundParameters["DiskPoolVolumeMountOption"]); - } + } /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateExpanded.cs index 8cf0b2c00186..b2ead76d454f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a global reach connection in a private cloud + /// Update a GlobalReachConnection /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareGlobalReachConnection_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a global reach connection in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a GlobalReachConnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareGlobalReachConnection_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -57,19 +57,6 @@ public partial class UpdateAzVMwareGlobalReachConnection_UpdateExpanded : global [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - /// - /// Authorization key from the peer express route used for the global reach connection - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Authorization key from the peer express route used for the global reach connection")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Authorization key from the peer express route used for the global reach connection", - SerializedName = @"authorizationKey", - PossibleTypes = new [] { typeof(string) })] - public string AuthorizationKey { get => _globalReachConnectionBody.AuthorizationKey ?? null; set => _globalReachConnectionBody.AuthorizationKey = value; } - /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -91,19 +78,6 @@ public partial class UpdateAzVMwareGlobalReachConnection_UpdateExpanded : global [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - /// - /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection", - SerializedName = @"expressRouteId", - PossibleTypes = new [] { typeof(string) })] - public string ExpressRouteId { get => _globalReachConnectionBody.ExpressRouteId ?? null; set => _globalReachConnectionBody.ExpressRouteId = value; } - /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } @@ -133,12 +107,12 @@ public partial class UpdateAzVMwareGlobalReachConnection_UpdateExpanded : global /// Backing field for property. private string _name; - /// Name of the global reach connection in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the global reach connection in the private cloud")] + /// Name of the global reach connection + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the global reach connection")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the global reach connection in the private cloud", + Description = @"Name of the global reach connection", SerializedName = @"globalReachConnectionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("GlobalReachConnectionName")] @@ -153,19 +127,6 @@ public partial class UpdateAzVMwareGlobalReachConnection_UpdateExpanded : global [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// - /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier of the ExpressRoute Circuit to peer with in the global reach connection")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Identifier of the ExpressRoute Circuit to peer with in the global reach connection", - SerializedName = @"peerExpressRouteCircuit", - PossibleTypes = new [] { typeof(string) })] - public string PeerExpressRouteCircuit { get => _globalReachConnectionBody.PeerExpressRouteCircuit ?? null; set => _globalReachConnectionBody.PeerExpressRouteCircuit = value; } - /// /// The instance of the that the remote call will use. /// @@ -174,12 +135,12 @@ public partial class UpdateAzVMwareGlobalReachConnection_UpdateExpanded : global /// Backing field for property. private string _privateCloudName; - /// The name of the private cloud. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the private cloud.")] + /// Name of the private cloud + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the private cloud")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the private cloud.", + Description = @"Name of the private cloud", SerializedName = @"privateCloudName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -218,12 +179,12 @@ public partial class UpdateAzVMwareGlobalReachConnection_UpdateExpanded : global /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -550,18 +511,7 @@ public UpdateAzVMwareGlobalReachConnection_UpdateExpanded() private void Update_globalReachConnectionBody() { - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("AuthorizationKey"))) - { - this.AuthorizationKey = (string)(this.MyInvocation?.BoundParameters["AuthorizationKey"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("PeerExpressRouteCircuit"))) - { - this.PeerExpressRouteCircuit = (string)(this.MyInvocation?.BoundParameters["PeerExpressRouteCircuit"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("ExpressRouteId"))) - { - this.ExpressRouteId = (string)(this.MyInvocation?.BoundParameters["ExpressRouteId"]); - } + } /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded.cs index 949e03af0979..cd68191dc779 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a global reach connection in a private cloud + /// Update a GlobalReachConnection /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareGlobalReachConnection_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a global reach connection in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a GlobalReachConnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -57,19 +57,6 @@ public partial class UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpand [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - /// - /// Authorization key from the peer express route used for the global reach connection - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Authorization key from the peer express route used for the global reach connection")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Authorization key from the peer express route used for the global reach connection", - SerializedName = @"authorizationKey", - PossibleTypes = new [] { typeof(string) })] - public string AuthorizationKey { get => _globalReachConnectionBody.AuthorizationKey ?? null; set => _globalReachConnectionBody.AuthorizationKey = value; } - /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -91,19 +78,6 @@ public partial class UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpand [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - /// - /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection", - SerializedName = @"expressRouteId", - PossibleTypes = new [] { typeof(string) })] - public string ExpressRouteId { get => _globalReachConnectionBody.ExpressRouteId ?? null; set => _globalReachConnectionBody.ExpressRouteId = value; } - /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } @@ -146,19 +120,6 @@ public partial class UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpand [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// - /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier of the ExpressRoute Circuit to peer with in the global reach connection")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Identifier of the ExpressRoute Circuit to peer with in the global reach connection", - SerializedName = @"peerExpressRouteCircuit", - PossibleTypes = new [] { typeof(string) })] - public string PeerExpressRouteCircuit { get => _globalReachConnectionBody.PeerExpressRouteCircuit ?? null; set => _globalReachConnectionBody.PeerExpressRouteCircuit = value; } - /// /// The instance of the that the remote call will use. /// @@ -521,18 +482,7 @@ public UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded() private void Update_globalReachConnectionBody() { - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("AuthorizationKey"))) - { - this.AuthorizationKey = (string)(this.MyInvocation?.BoundParameters["AuthorizationKey"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("PeerExpressRouteCircuit"))) - { - this.PeerExpressRouteCircuit = (string)(this.MyInvocation?.BoundParameters["PeerExpressRouteCircuit"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("ExpressRouteId"))) - { - this.ExpressRouteId = (string)(this.MyInvocation?.BoundParameters["ExpressRouteId"]); - } + } /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded.cs index 8a7b0b4167b4..9472ad4a039b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a global reach connection in a private cloud + /// Update a GlobalReachConnection /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a global reach connection in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a GlobalReachConnection")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -57,19 +57,6 @@ public partial class UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivat [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter AsJob { get; set; } - /// - /// Authorization key from the peer express route used for the global reach connection - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Authorization key from the peer express route used for the global reach connection")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Authorization key from the peer express route used for the global reach connection", - SerializedName = @"authorizationKey", - PossibleTypes = new [] { typeof(string) })] - public string AuthorizationKey { get => _globalReachConnectionBody.AuthorizationKey ?? null; set => _globalReachConnectionBody.AuthorizationKey = value; } - /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] @@ -91,19 +78,6 @@ public partial class UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivat [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - /// - /// The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection", - SerializedName = @"expressRouteId", - PossibleTypes = new [] { typeof(string) })] - public string ExpressRouteId { get => _globalReachConnectionBody.ExpressRouteId ?? null; set => _globalReachConnectionBody.ExpressRouteId = value; } - /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } @@ -133,12 +107,12 @@ public partial class UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivat /// Backing field for property. private string _name; - /// Name of the global reach connection in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the global reach connection in the private cloud")] + /// Name of the global reach connection + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the global reach connection")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the global reach connection in the private cloud", + Description = @"Name of the global reach connection", SerializedName = @"globalReachConnectionName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("GlobalReachConnectionName")] @@ -153,19 +127,6 @@ public partial class UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivat [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// - /// Identifier of the ExpressRoute Circuit to peer with in the global reach connection - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Identifier of the ExpressRoute Circuit to peer with in the global reach connection")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Identifier of the ExpressRoute Circuit to peer with in the global reach connection", - SerializedName = @"peerExpressRouteCircuit", - PossibleTypes = new [] { typeof(string) })] - public string PeerExpressRouteCircuit { get => _globalReachConnectionBody.PeerExpressRouteCircuit ?? null; set => _globalReachConnectionBody.PeerExpressRouteCircuit = value; } - /// /// The instance of the that the remote call will use. /// @@ -534,18 +495,7 @@ public UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded private void Update_globalReachConnectionBody() { - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("AuthorizationKey"))) - { - this.AuthorizationKey = (string)(this.MyInvocation?.BoundParameters["AuthorizationKey"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("PeerExpressRouteCircuit"))) - { - this.PeerExpressRouteCircuit = (string)(this.MyInvocation?.BoundParameters["PeerExpressRouteCircuit"]); - } - if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("ExpressRouteId"))) - { - this.ExpressRouteId = (string)(this.MyInvocation?.BoundParameters["ExpressRouteId"]); - } + } /// diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareIscsiPath_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareIscsiPath_UpdateExpanded.cs new file mode 100644 index 000000000000..78402f61c92e --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareIscsiPath_UpdateExpanded.cs @@ -0,0 +1,600 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; + using System; + + /// Update a IscsiPath + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareIscsiPath_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath))] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a IscsiPath")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] + public partial class UpdateAzVMwareIscsiPath_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// An iSCSI path resource + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPath(); + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.VMware.VMware Client => Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.HttpPipeline Pipeline { get; set; } + + /// Backing field for property. + private string _privateCloudName; + + /// Name of the private cloud + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the private cloud")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the private cloud", + SerializedName = @"privateCloudName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public string PrivateCloudName { get => this._privateCloudName; set => this._privateCloudName = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzVMwareIscsiPath_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareIscsiPath_UpdateExpanded Clone() + { + var clone = new UpdateAzVMwareIscsiPath_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._resourceBody = this._resourceBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.PrivateCloudName = this.PrivateCloudName; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'IscsiPathsCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + _resourceBody = await this.Client.IscsiPathsGetWithResult(SubscriptionId, ResourceGroupName, PrivateCloudName, this, Pipeline); + this.Update_resourceBody(); + await this.Client.IscsiPathsCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, _resourceBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,PrivateCloudName=PrivateCloudName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public UpdateAzVMwareIscsiPath_UpdateExpanded() + { + + } + + private void Update_resourceBody() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareIscsiPath_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareIscsiPath_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..001deb394f79 --- /dev/null +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareIscsiPath_UpdateViaIdentityExpanded.cs @@ -0,0 +1,580 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; + using System; + + /// Update a IscsiPath + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/iscsiPaths/default" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareIscsiPath_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath))] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a IscsiPath")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] + public partial class UpdateAzVMwareIscsiPath_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// An iSCSI path resource + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath _resourceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IscsiPath(); + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.VMware.VMware Client => Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzVMwareIscsiPath_UpdateViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwareIscsiPath_UpdateViaIdentityExpanded Clone() + { + var clone = new UpdateAzVMwareIscsiPath_UpdateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._resourceBody = this._resourceBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'IscsiPathsCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + _resourceBody = await this.Client.IscsiPathsGetViaIdentityWithResult(InputObject.Id, this, Pipeline); + this.Update_resourceBody(); + await this.Client.IscsiPathsCreateOrUpdateViaIdentity(InputObject.Id, _resourceBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.PrivateCloudName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PrivateCloudName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + _resourceBody = await this.Client.IscsiPathsGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, this, Pipeline); + this.Update_resourceBody(); + await this.Client.IscsiPathsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, _resourceBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public UpdateAzVMwareIscsiPath_UpdateViaIdentityExpanded() + { + + } + + private void Update_resourceBody() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IErrorResponse + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + var result = (await response); + if (null != result) + { + if (0 == _responseSize) + { + _firstResponse = result; + _responseSize = 1; + } + else + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); + } + WriteObject(result.AddMultipleTypeNameIntoPSObject()); + _responseSize = 2; + } + } + } + } + } +} \ No newline at end of file diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateExpanded.cs index 3fd380d3970f..33e80a209889 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a placement policy in a private cloud cluster + /// Update a PlacementPolicy /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwarePlacementPolicy_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a placement policy in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a PlacementPolicy")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwarePlacementPolicy_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -95,12 +95,12 @@ public partial class UpdateAzVMwarePlacementPolicy_UpdateExpanded : global::Syst /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -157,14 +157,12 @@ public partial class UpdateAzVMwarePlacementPolicy_UpdateExpanded : global::Syst /// Backing field for property. private string _name; - /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy")] + /// Name of the placement policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the placement policy.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy", + Description = @"Name of the placement policy.", SerializedName = @"placementPolicyName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PlacementPolicyName")] @@ -243,12 +241,12 @@ public partial class UpdateAzVMwarePlacementPolicy_UpdateExpanded : global::Syst /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded.cs index 32acdf168190..c5d1d0df4b3f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a placement policy in a private cloud cluster + /// Update a PlacementPolicy /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a placement policy in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a PlacementPolicy")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -151,14 +151,12 @@ public partial class UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpan /// Backing field for property. private string _name; - /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy")] + /// Name of the placement policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the placement policy.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy", + Description = @"Name of the placement policy.", SerializedName = @"placementPolicyName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PlacementPolicyName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded.cs index c70907e415dd..affdd36f73e5 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a placement policy in a private cloud cluster + /// Update a PlacementPolicy /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwarePlacementPolicy_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a placement policy in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a PlacementPolicy")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded.cs index e7cddb19d7a5..95280069d26b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a placement policy in a private cloud cluster + /// Update a PlacementPolicy /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a placement policy in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a PlacementPolicy")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/placementPolicies/{placementPolicyName}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -95,12 +95,12 @@ public partial class UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloud /// Backing field for property. private string _clusterName; - /// Name of the cluster in the private cloud - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster in the private cloud")] + /// Name of the cluster + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the cluster")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the cluster in the private cloud", + Description = @"Name of the cluster", SerializedName = @"clusterName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -157,14 +157,12 @@ public partial class UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloud /// Backing field for property. private string _name; - /// - /// Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy")] + /// Name of the placement policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the placement policy.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy", + Description = @"Name of the placement policy.", SerializedName = @"placementPolicyName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("PlacementPolicyName")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs index dbf049508f1c..e3903bf3fc15 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a private cloud + /// Update a PrivateCloud /// - /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwarePrivateCloud_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a PrivateCloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}", ApiVersion = "2023-03-01")] public partial class UpdateAzVMwarePrivateCloud_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -43,8 +43,8 @@ public partial class UpdateAzVMwarePrivateCloud_UpdateExpanded : global::System. /// A buffer to record first returned object in response. private object _firstResponse = null; - /// An update to a private cloud resource - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdate _privateCloudUpdateBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdate(); + /// A private cloud resource + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud _privateCloudBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloud(); /// /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. @@ -78,33 +78,9 @@ public partial class UpdateAzVMwarePrivateCloud_UpdateExpanded : global::System. [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - /// Status of customer managed encryption key - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Status of customer managed encryption key")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Status of customer managed encryption key", - SerializedName = @"status", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] - public string EncryptionStatus { get => _privateCloudUpdateBody.EncryptionStatus ?? null; set => _privateCloudUpdateBody.EncryptionStatus = value; } - - /// - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet - /// in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to - /// (A.B.C.D/X). - /// - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X).")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X).", - SerializedName = @"extendedNetworkBlocks", - PossibleTypes = new [] { typeof(string) })] - public string[] ExtendedNetworkBlock { get => _privateCloudUpdateBody.ExtendedNetworkBlock?.ToArray() ?? null /* fixedArrayOf */; set => _privateCloudUpdateBody.ExtendedNetworkBlock = (value != null ? new System.Collections.Generic.List(value) : null); } + /// Decides if enable a system assigned identity for the resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Decides if enable a system assigned identity for the resource.")] + public System.Boolean? EnableSystemAssignedIdentity { get; set; } /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } @@ -121,104 +97,9 @@ public partial class UpdateAzVMwarePrivateCloud_UpdateExpanded : global::System. [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - /// vCenter Single Sign On Identity Sources - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "vCenter Single Sign On Identity Sources")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"vCenter Single Sign On Identity Sources", - SerializedName = @"identitySources", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource) })] - public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource[] IdentitySource { get => _privateCloudUpdateBody.IdentitySource?.ToArray() ?? null /* fixedArrayOf */; set => _privateCloudUpdateBody.IdentitySource = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// - /// The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The - /// type 'None' will remove any identities from the Private Cloud. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Private Cloud.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Private Cloud.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SystemAssigned", "None")] - public string IdentityType { get => _privateCloudUpdateBody.IdentityType ?? null; set => _privateCloudUpdateBody.IdentityType = value; } - - /// Connectivity to internet is enabled or disabled - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Connectivity to internet is enabled or disabled")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Connectivity to internet is enabled or disabled", - SerializedName = @"internet", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] - public string Internet { get => _privateCloudUpdateBody.Internet ?? null; set => _privateCloudUpdateBody.Internet = value; } - /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - /// The name of the key. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the key.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name of the key.", - SerializedName = @"keyName", - PossibleTypes = new [] { typeof(string) })] - public string KeyVaultPropertyKeyName { get => _privateCloudUpdateBody.KeyVaultPropertyKeyName ?? null; set => _privateCloudUpdateBody.KeyVaultPropertyKeyName = value; } - - /// The URL of the vault. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The URL of the vault.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The URL of the vault.", - SerializedName = @"keyVaultUrl", - PossibleTypes = new [] { typeof(string) })] - public string KeyVaultPropertyKeyVaultUrl { get => _privateCloudUpdateBody.KeyVaultPropertyKeyVaultUrl ?? null; set => _privateCloudUpdateBody.KeyVaultPropertyKeyVaultUrl = value; } - - /// The version of the key. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The version of the key.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The version of the key.", - SerializedName = @"keyVersion", - PossibleTypes = new [] { typeof(string) })] - public string KeyVaultPropertyKeyVersion { get => _privateCloudUpdateBody.KeyVaultPropertyKeyVersion ?? null; set => _privateCloudUpdateBody.KeyVaultPropertyKeyVersion = value; } - - /// The hosts - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The hosts")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The hosts", - SerializedName = @"hosts", - PossibleTypes = new [] { typeof(string) })] - public string[] ManagementClusterHost { get => _privateCloudUpdateBody.ManagementClusterHost?.ToArray() ?? null /* fixedArrayOf */; set => _privateCloudUpdateBody.ManagementClusterHost = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// The cluster size - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The cluster size")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The cluster size", - SerializedName = @"clusterSize", - PossibleTypes = new [] { typeof(int) })] - public int ManagementClusterSize { get => _privateCloudUpdateBody.ManagementClusterSize ?? default(int); set => _privateCloudUpdateBody.ManagementClusterSize = value; } - /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -285,15 +166,81 @@ public partial class UpdateAzVMwarePrivateCloud_UpdateExpanded : global::System. [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + public int SkuCapacity { get => _privateCloudBody.SkuCapacity ?? default(int); set => _privateCloudBody.SkuCapacity = value; } + + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the service has different generations of hardware, for the same SKU, then that can be captured here.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + public string SkuFamily { get => _privateCloudBody.SkuFamily ?? null; set => _privateCloudBody.SkuFamily = value; } + + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the SKU. E.g. P3. It is typically a letter+number code")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + public string SkuName { get => _privateCloudBody.SkuName ?? null; set => _privateCloudBody.SkuName = value; } + + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + public string SkuSize { get => _privateCloudBody.SkuSize ?? null; set => _privateCloudBody.SkuSize = value; } + + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + public string SkuTier { get => _privateCloudBody.SkuTier ?? null; set => _privateCloudBody.SkuTier = value; } + /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -304,17 +251,17 @@ public partial class UpdateAzVMwarePrivateCloud_UpdateExpanded : global::System. [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } - /// Resource tags + /// Resource tags. [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Resource tags", + Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags Tag { get => _privateCloudUpdateBody.Tag ?? null /* object */; set => _privateCloudUpdateBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags Tag { get => _privateCloudBody.Tag ?? null /* object */; set => _privateCloudBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what @@ -375,7 +322,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwarePrivateCl clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._privateCloudUpdateBody = this._privateCloudUpdateBody; + clone._privateCloudBody = this._privateCloudBody; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; clone.Name = this.Name; @@ -523,6 +470,29 @@ protected override void EndProcessing() } } + private void PreProcessManagedIdentityParametersWithGetResult() + { + bool supportsSystemAssignedIdentity = (true == this.EnableSystemAssignedIdentity || null == this.EnableSystemAssignedIdentity && true == _privateCloudBody?.IdentityType?.Contains("SystemAssigned")); + bool supportsUserAssignedIdentity = false; + // calculate IdentityType + if ((supportsUserAssignedIdentity && supportsSystemAssignedIdentity)) + { + _privateCloudBody.IdentityType = "SystemAssigned,UserAssigned"; + } + else if ((supportsUserAssignedIdentity && !supportsSystemAssignedIdentity)) + { + _privateCloudBody.IdentityType = "UserAssigned"; + } + else if ((!supportsUserAssignedIdentity && supportsSystemAssignedIdentity)) + { + _privateCloudBody.IdentityType = "SystemAssigned"; + } + else + { + _privateCloudBody.IdentityType = "None"; + } + } + /// Performs execution of the command. protected override void ProcessRecord() { @@ -531,7 +501,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'PrivateCloudsUpdate' operation")) + if (ShouldProcess($"Call remote 'PrivateCloudsCreateOrUpdate' operation")) { if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) { @@ -595,7 +565,10 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.PrivateCloudsUpdate(SubscriptionId, ResourceGroupName, Name, _privateCloudUpdateBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + _privateCloudBody = await this.Client.PrivateCloudsGetWithResult(SubscriptionId, ResourceGroupName, Name, this, Pipeline); + this.PreProcessManagedIdentityParametersWithGetResult(); + this.Update_privateCloudBody(); + await this.Client.PrivateCloudsCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _privateCloudBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) @@ -627,6 +600,34 @@ public UpdateAzVMwarePrivateCloud_UpdateExpanded() } + private void Update_privateCloudBody() + { + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Tag"))) + { + this.Tag = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags)(this.MyInvocation?.BoundParameters["Tag"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("SkuName"))) + { + this.SkuName = (string)(this.MyInvocation?.BoundParameters["SkuName"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("SkuTier"))) + { + this.SkuTier = (string)(this.MyInvocation?.BoundParameters["SkuTier"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("SkuSize"))) + { + this.SkuSize = (string)(this.MyInvocation?.BoundParameters["SkuSize"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("SkuFamily"))) + { + this.SkuFamily = (string)(this.MyInvocation?.BoundParameters["SkuFamily"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("SkuCapacity"))) + { + this.SkuCapacity = (int)(this.MyInvocation?.BoundParameters["SkuCapacity"]); + } + } + /// new protected void WriteObject(object sendToPipeline) { diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs index 35b83db319a8..3b41435a6f11 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs @@ -10,15 +10,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a private cloud + /// Update a PrivateCloud /// - /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}" + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwarePrivateCloud_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a PrivateCloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}", ApiVersion = "2023-03-01")] public partial class UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -43,8 +43,8 @@ public partial class UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded : glob /// A buffer to record first returned object in response. private object _firstResponse = null; - /// An update to a private cloud resource - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudUpdate _privateCloudUpdateBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloudUpdate(); + /// A private cloud resource + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloud _privateCloudBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.PrivateCloud(); /// /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. @@ -78,33 +78,9 @@ public partial class UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded : glob [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Azure)] public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - /// Status of customer managed encryption key - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Status of customer managed encryption key")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Status of customer managed encryption key", - SerializedName = @"status", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] - public string EncryptionStatus { get => _privateCloudUpdateBody.EncryptionStatus ?? null; set => _privateCloudUpdateBody.EncryptionStatus = value; } - - /// - /// Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet - /// in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to - /// (A.B.C.D/X). - /// - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X).")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Array of additional networks noncontiguous with networkBlock. Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. Make sure the CIDR format conforms to (A.B.C.D/X).", - SerializedName = @"extendedNetworkBlocks", - PossibleTypes = new [] { typeof(string) })] - public string[] ExtendedNetworkBlock { get => _privateCloudUpdateBody.ExtendedNetworkBlock?.ToArray() ?? null /* fixedArrayOf */; set => _privateCloudUpdateBody.ExtendedNetworkBlock = (value != null ? new System.Collections.Generic.List(value) : null); } + /// Decides if enable a system assigned identity for the resource. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Decides if enable a system assigned identity for the resource.")] + public System.Boolean? EnableSystemAssignedIdentity { get; set; } /// Accessor for extensibleParameters. public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } @@ -121,33 +97,6 @@ public partial class UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded : glob [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - /// vCenter Single Sign On Identity Sources - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "vCenter Single Sign On Identity Sources")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"vCenter Single Sign On Identity Sources", - SerializedName = @"identitySources", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource) })] - public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource[] IdentitySource { get => _privateCloudUpdateBody.IdentitySource?.ToArray() ?? null /* fixedArrayOf */; set => _privateCloudUpdateBody.IdentitySource = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// - /// The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The - /// type 'None' will remove any identities from the Private Cloud. - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Private Cloud.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity used for the private cloud. The type 'SystemAssigned' refers to an implicitly created identity. The type 'None' will remove any identities from the Private Cloud.", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SystemAssigned", "None")] - public string IdentityType { get => _privateCloudUpdateBody.IdentityType ?? null; set => _privateCloudUpdateBody.IdentityType = value; } - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity _inputObject; @@ -156,77 +105,9 @@ public partial class UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded : glob [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - /// Connectivity to internet is enabled or disabled - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Connectivity to internet is enabled or disabled")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Connectivity to internet is enabled or disabled", - SerializedName = @"internet", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] - public string Internet { get => _privateCloudUpdateBody.Internet ?? null; set => _privateCloudUpdateBody.Internet = value; } - /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - /// The name of the key. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the key.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The name of the key.", - SerializedName = @"keyName", - PossibleTypes = new [] { typeof(string) })] - public string KeyVaultPropertyKeyName { get => _privateCloudUpdateBody.KeyVaultPropertyKeyName ?? null; set => _privateCloudUpdateBody.KeyVaultPropertyKeyName = value; } - - /// The URL of the vault. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The URL of the vault.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The URL of the vault.", - SerializedName = @"keyVaultUrl", - PossibleTypes = new [] { typeof(string) })] - public string KeyVaultPropertyKeyVaultUrl { get => _privateCloudUpdateBody.KeyVaultPropertyKeyVaultUrl ?? null; set => _privateCloudUpdateBody.KeyVaultPropertyKeyVaultUrl = value; } - - /// The version of the key. - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The version of the key.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The version of the key.", - SerializedName = @"keyVersion", - PossibleTypes = new [] { typeof(string) })] - public string KeyVaultPropertyKeyVersion { get => _privateCloudUpdateBody.KeyVaultPropertyKeyVersion ?? null; set => _privateCloudUpdateBody.KeyVaultPropertyKeyVersion = value; } - - /// The hosts - [global::System.Management.Automation.AllowEmptyCollection] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The hosts")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The hosts", - SerializedName = @"hosts", - PossibleTypes = new [] { typeof(string) })] - public string[] ManagementClusterHost { get => _privateCloudUpdateBody.ManagementClusterHost?.ToArray() ?? null /* fixedArrayOf */; set => _privateCloudUpdateBody.ManagementClusterHost = (value != null ? new System.Collections.Generic.List(value) : null); } - - /// The cluster size - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The cluster size")] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The cluster size", - SerializedName = @"clusterSize", - PossibleTypes = new [] { typeof(int) })] - public int ManagementClusterSize { get => _privateCloudUpdateBody.ManagementClusterSize ?? default(int); set => _privateCloudUpdateBody.ManagementClusterSize = value; } - /// /// cancellation delegate. Stops the cmdlet when called. /// @@ -264,17 +145,83 @@ public partial class UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded : glob [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - /// Resource tags + /// + /// If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the + /// resource this may be omitted. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.", + SerializedName = @"capacity", + PossibleTypes = new [] { typeof(int) })] + public int SkuCapacity { get => _privateCloudBody.SkuCapacity ?? default(int); set => _privateCloudBody.SkuCapacity = value; } + + /// + /// If the service has different generations of hardware, for the same SKU, then that can be captured here. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "If the service has different generations of hardware, for the same SKU, then that can be captured here.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"If the service has different generations of hardware, for the same SKU, then that can be captured here.", + SerializedName = @"family", + PossibleTypes = new [] { typeof(string) })] + public string SkuFamily { get => _privateCloudBody.SkuFamily ?? null; set => _privateCloudBody.SkuFamily = value; } + + /// The name of the SKU. E.g. P3. It is typically a letter+number code + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The name of the SKU. E.g. P3. It is typically a letter+number code")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the SKU. E.g. P3. It is typically a letter+number code", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + public string SkuName { get => _privateCloudBody.SkuName ?? null; set => _privateCloudBody.SkuName = value; } + + /// + /// The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. ", + SerializedName = @"size", + PossibleTypes = new [] { typeof(string) })] + public string SkuSize { get => _privateCloudBody.SkuSize ?? null; set => _privateCloudBody.SkuSize = value; } + + /// + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required + /// on a PUT. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.", + SerializedName = @"tier", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + public string SkuTier { get => _privateCloudBody.SkuTier ?? null; set => _privateCloudBody.SkuTier = value; } + + /// Resource tags. [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Resource tags", + Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags Tag { get => _privateCloudUpdateBody.Tag ?? null /* object */; set => _privateCloudUpdateBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags Tag { get => _privateCloudBody.Tag ?? null /* object */; set => _privateCloudBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what @@ -335,7 +282,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets.UpdateAzVMwarePrivateCl clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone._privateCloudUpdateBody = this._privateCloudUpdateBody; + clone._privateCloudBody = this._privateCloudBody; return clone; } @@ -480,6 +427,29 @@ protected override void EndProcessing() } } + private void PreProcessManagedIdentityParametersWithGetResult() + { + bool supportsSystemAssignedIdentity = (true == this.EnableSystemAssignedIdentity || null == this.EnableSystemAssignedIdentity && true == _privateCloudBody?.IdentityType?.Contains("SystemAssigned")); + bool supportsUserAssignedIdentity = false; + // calculate IdentityType + if ((supportsUserAssignedIdentity && supportsSystemAssignedIdentity)) + { + _privateCloudBody.IdentityType = "SystemAssigned,UserAssigned"; + } + else if ((supportsUserAssignedIdentity && !supportsSystemAssignedIdentity)) + { + _privateCloudBody.IdentityType = "UserAssigned"; + } + else if ((!supportsUserAssignedIdentity && supportsSystemAssignedIdentity)) + { + _privateCloudBody.IdentityType = "SystemAssigned"; + } + else + { + _privateCloudBody.IdentityType = "None"; + } + } + /// Performs execution of the command. protected override void ProcessRecord() { @@ -488,7 +458,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'PrivateCloudsUpdate' operation")) + if (ShouldProcess($"Call remote 'PrivateCloudsCreateOrUpdate' operation")) { if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) { @@ -554,7 +524,10 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.PrivateCloudsUpdateViaIdentity(InputObject.Id, _privateCloudUpdateBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + _privateCloudBody = await this.Client.PrivateCloudsGetViaIdentityWithResult(InputObject.Id, this, Pipeline); + this.PreProcessManagedIdentityParametersWithGetResult(); + this.Update_privateCloudBody(); + await this.Client.PrivateCloudsCreateOrUpdateViaIdentity(InputObject.Id, _privateCloudBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -571,7 +544,10 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PrivateCloudName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.PrivateCloudsUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, _privateCloudUpdateBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + _privateCloudBody = await this.Client.PrivateCloudsGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, this, Pipeline); + this.PreProcessManagedIdentityParametersWithGetResult(); + this.Update_privateCloudBody(); + await this.Client.PrivateCloudsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, _privateCloudBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -604,6 +580,34 @@ public UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded() } + private void Update_privateCloudBody() + { + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("Tag"))) + { + this.Tag = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags)(this.MyInvocation?.BoundParameters["Tag"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("SkuName"))) + { + this.SkuName = (string)(this.MyInvocation?.BoundParameters["SkuName"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("SkuTier"))) + { + this.SkuTier = (string)(this.MyInvocation?.BoundParameters["SkuTier"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("SkuSize"))) + { + this.SkuSize = (string)(this.MyInvocation?.BoundParameters["SkuSize"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("SkuFamily"))) + { + this.SkuFamily = (string)(this.MyInvocation?.BoundParameters["SkuFamily"]); + } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("SkuCapacity"))) + { + this.SkuCapacity = (int)(this.MyInvocation?.BoundParameters["SkuCapacity"]); + } + } + /// new protected void WriteObject(object sendToPipeline) { diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded.cs index 5cd91de82661..77bf3176b39a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update dhcp by id in a private cloud workload network. + /// Update a WorkloadNetworkDhcp /// /// [OpenAPI] UpdateDhcp=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkDhcp_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update dhcp by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkDhcp")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded : global:: /// private int _responseSize = 0; - /// NSX DHCP - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp _workloadNetworkDhcpBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcp(); + /// NSX DHCP update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate _workloadNetworkDhcpBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -82,12 +82,12 @@ public partial class UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded : global:: /// Backing field for property. private string _dhcpName; - /// NSX DHCP identifier. Generally the same as the DHCP display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DHCP identifier. Generally the same as the DHCP display name")] + /// The ID of the DHCP configuration + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the DHCP configuration")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DHCP identifier. Generally the same as the DHCP display name", + Description = @"The ID of the DHCP configuration", SerializedName = @"dhcpId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -213,12 +213,12 @@ public partial class UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded : global:: /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded.cs index 5f43f7019752..a29e085bdb41 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update dhcp by id in a private cloud workload network. + /// Update a WorkloadNetworkDhcp /// /// [OpenAPI] UpdateDhcp=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update dhcp by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkDhcp")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded /// private int _responseSize = 0; - /// NSX DHCP - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp _workloadNetworkDhcpBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcp(); + /// NSX DHCP update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate _workloadNetworkDhcpBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded.cs index 8de6aabd6a78..0e21e791ac27 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update dhcp by id in a private cloud workload network. + /// Update a WorkloadNetworkDhcp /// /// [OpenAPI] UpdateDhcp=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update dhcp by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkDhcp")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateC /// private int _responseSize = 0; - /// NSX DHCP - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcp _workloadNetworkDhcpBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcp(); + /// NSX DHCP update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDhcpUpdate _workloadNetworkDhcpBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDhcpUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -82,12 +82,12 @@ public partial class UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateC /// Backing field for property. private string _dhcpName; - /// NSX DHCP identifier. Generally the same as the DHCP display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DHCP identifier. Generally the same as the DHCP display name")] + /// The ID of the DHCP configuration + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the DHCP configuration")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DHCP identifier. Generally the same as the DHCP display name", + Description = @"The ID of the DHCP configuration", SerializedName = @"dhcpId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded.cs index c7e9df8d3f29..72904da63b26 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a DNS service by id in a private cloud workload network. + /// Update a WorkloadNetworkDnsService /// /// [OpenAPI] UpdateDnsService=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkDnsService_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a DNS service by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkDnsService")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded : gl /// private int _responseSize = 0; - /// NSX DNS Service - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService _workloadNetworkDnsServiceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsService(); + /// NSX DNS Service update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate _workloadNetworkDnsServiceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServiceUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -115,14 +115,12 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded : gl /// Backing field for property. private string _dnsServiceName; - /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DNS Service identifier. Generally the same as the DNS Service's display name")] + /// ID of the DNS service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS service.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DNS Service identifier. Generally the same as the DNS Service's display name", + Description = @"ID of the DNS service.", SerializedName = @"dnsServiceId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -249,12 +247,12 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded : gl /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded.cs index 97103c1ad9a9..9594729e5db4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a DNS service by id in a private cloud workload network. + /// Update a WorkloadNetworkDnsService /// /// [OpenAPI] UpdateDnsService=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a DNS service by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkDnsService")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityEx /// private int _responseSize = 0; - /// NSX DNS Service - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService _workloadNetworkDnsServiceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsService(); + /// NSX DNS Service update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate _workloadNetworkDnsServiceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServiceUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded.cs index b1433453b49d..28baac0bad92 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a DNS service by id in a private cloud workload network. + /// Update a WorkloadNetworkDnsService /// /// [OpenAPI] UpdateDnsService=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a DNS service by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkDnsService")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPr /// private int _responseSize = 0; - /// NSX DNS Service - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsService _workloadNetworkDnsServiceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsService(); + /// NSX DNS Service update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsServiceUpdate _workloadNetworkDnsServiceBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsServiceUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -115,14 +115,12 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPr /// Backing field for property. private string _dnsServiceName; - /// - /// NSX DNS Service identifier. Generally the same as the DNS Service's display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DNS Service identifier. Generally the same as the DNS Service's display name")] + /// ID of the DNS service. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS service.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DNS Service identifier. Generally the same as the DNS Service's display name", + Description = @"ID of the DNS service.", SerializedName = @"dnsServiceId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded.cs index ab5a243b278b..d4e2205a4b7a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a DNS zone by id in a private cloud workload network. + /// Update a WorkloadNetworkDnsZone /// /// [OpenAPI] UpdateDnsZone=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkDnsZone_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a DNS zone by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkDnsZone")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded : globa /// private int _responseSize = 0; - /// NSX DNS Zone - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone _workloadNetworkDnsZoneBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZone(); + /// NSX DNS Zone update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate _workloadNetworkDnsZoneBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZoneUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -110,18 +110,18 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded : globa ReadOnly = false, Description = @"Number of DNS Services using the DNS zone.", SerializedName = @"dnsServices", - PossibleTypes = new [] { typeof(long) })] - public long DnsService { get => _workloadNetworkDnsZoneBody.DnsService ?? default(long); set => _workloadNetworkDnsZoneBody.DnsService = value; } + PossibleTypes = new [] { typeof(int) })] + public int DnsService { get => _workloadNetworkDnsZoneBody.DnsService ?? default(int); set => _workloadNetworkDnsZoneBody.DnsService = value; } /// Backing field for property. private string _dnsZoneName; - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DNS Zone identifier. Generally the same as the DNS Zone's display name")] + /// ID of the DNS zone. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS zone.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DNS Zone identifier. Generally the same as the DNS Zone's display name", + Description = @"ID of the DNS zone.", SerializedName = @"dnsZoneId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -247,12 +247,12 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded : globa /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded.cs index 044a472ce812..478e4a015c89 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a DNS zone by id in a private cloud workload network. + /// Update a WorkloadNetworkDnsZone /// /// [OpenAPI] UpdateDnsZone=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a DNS zone by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkDnsZone")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpan /// private int _responseSize = 0; - /// NSX DNS Zone - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone _workloadNetworkDnsZoneBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZone(); + /// NSX DNS Zone update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate _workloadNetworkDnsZoneBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZoneUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -110,8 +110,8 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpan ReadOnly = false, Description = @"Number of DNS Services using the DNS zone.", SerializedName = @"dnsServices", - PossibleTypes = new [] { typeof(long) })] - public long DnsService { get => _workloadNetworkDnsZoneBody.DnsService ?? default(long); set => _workloadNetworkDnsZoneBody.DnsService = value; } + PossibleTypes = new [] { typeof(int) })] + public int DnsService { get => _workloadNetworkDnsZoneBody.DnsService ?? default(int); set => _workloadNetworkDnsZoneBody.DnsService = value; } /// Domain names of the DNS Zone. [global::System.Management.Automation.AllowEmptyCollection] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded.cs index aff8c0ff91c0..b17c110be052 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a DNS zone by id in a private cloud workload network. + /// Update a WorkloadNetworkDnsZone /// /// [OpenAPI] UpdateDnsZone=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a DNS zone by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkDnsZone")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPriva /// private int _responseSize = 0; - /// NSX DNS Zone - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZone _workloadNetworkDnsZoneBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZone(); + /// NSX DNS Zone update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkDnsZoneUpdate _workloadNetworkDnsZoneBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkDnsZoneUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -110,18 +110,18 @@ public partial class UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPriva ReadOnly = false, Description = @"Number of DNS Services using the DNS zone.", SerializedName = @"dnsServices", - PossibleTypes = new [] { typeof(long) })] - public long DnsService { get => _workloadNetworkDnsZoneBody.DnsService ?? default(long); set => _workloadNetworkDnsZoneBody.DnsService = value; } + PossibleTypes = new [] { typeof(int) })] + public int DnsService { get => _workloadNetworkDnsZoneBody.DnsService ?? default(int); set => _workloadNetworkDnsZoneBody.DnsService = value; } /// Backing field for property. private string _dnsZoneName; - /// NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX DNS Zone identifier. Generally the same as the DNS Zone's display name")] + /// ID of the DNS zone. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the DNS zone.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX DNS Zone identifier. Generally the same as the DNS Zone's display name", + Description = @"ID of the DNS zone.", SerializedName = @"dnsZoneId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded.cs index 7e0cce955a02..023b12db69cf 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a port mirroring profile by id in a private cloud workload network. + /// Update a WorkloadNetworkPortMirroring /// /// [OpenAPI] UpdatePortMirroring=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkPortMirroring_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a port mirroring profile by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkPortMirroring")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded : /// private int _responseSize = 0; - /// NSX Port Mirroring - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring _workloadNetworkPortMirroringBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroring(); + /// NSX Port Mirroring update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate _workloadNetworkPortMirroringBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -155,14 +155,12 @@ public partial class UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded : /// Backing field for property. private string _portMirroringName; - /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name")] + /// ID of the NSX port mirroring profile. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the NSX port mirroring profile.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name", + Description = @"ID of the NSX port mirroring profile.", SerializedName = @"portMirroringId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -237,12 +235,12 @@ public partial class UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded : /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded.cs index c0300be65d5e..8714f2c44bf8 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a port mirroring profile by id in a private cloud workload network. + /// Update a WorkloadNetworkPortMirroring /// /// [OpenAPI] UpdatePortMirroring=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a port mirroring profile by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkPortMirroring")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentit /// private int _responseSize = 0; - /// NSX Port Mirroring - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring _workloadNetworkPortMirroringBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroring(); + /// NSX Port Mirroring update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate _workloadNetworkPortMirroringBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded.cs index 00b002e64837..7961394f4d63 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a port mirroring profile by id in a private cloud workload network. + /// Update a WorkloadNetworkPortMirroring /// /// [OpenAPI] UpdatePortMirroring=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a port mirroring profile by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkPortMirroring")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentit /// private int _responseSize = 0; - /// NSX Port Mirroring - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroring _workloadNetworkPortMirroringBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroring(); + /// NSX Port Mirroring update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkPortMirroringUpdate _workloadNetworkPortMirroringBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkPortMirroringUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -155,14 +155,12 @@ public partial class UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentit /// Backing field for property. private string _portMirroringName; - /// - /// NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name - /// - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name")] + /// ID of the NSX port mirroring profile. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the NSX port mirroring profile.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name", + Description = @"ID of the NSX port mirroring profile.", SerializedName = @"portMirroringId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded.cs index d4e6ff3b71bf..b5b373fbba17 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a segment by id in a private cloud workload network. + /// Update a WorkloadNetworkSegment /// /// [OpenAPI] UpdateSegments=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkSegment_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a segment by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkSegment")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded : globa /// private int _responseSize = 0; - /// NSX Segment - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment _workloadNetworkSegmentBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegment(); + /// NSX Segment update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate _workloadNetworkSegmentBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -198,12 +198,12 @@ public partial class UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded : globa /// Backing field for property. private string _segmentName; - /// NSX Segment identifier. Generally the same as the Segment's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Segment identifier. Generally the same as the Segment's display name")] + /// The ID of the NSX Segment + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the NSX Segment")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Segment identifier. Generally the same as the Segment's display name", + Description = @"The ID of the NSX Segment", SerializedName = @"segmentId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] @@ -235,12 +235,12 @@ public partial class UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded : globa /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded.cs index c3903a9e4ddd..a58127fe2d18 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a segment by id in a private cloud workload network. + /// Update a WorkloadNetworkSegment /// /// [OpenAPI] UpdateSegments=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a segment by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkSegment")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpan /// private int _responseSize = 0; - /// NSX Segment - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment _workloadNetworkSegmentBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegment(); + /// NSX Segment update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate _workloadNetworkSegmentBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded.cs index 4acdb7e9bd97..136dc82e39fb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a segment by id in a private cloud workload network. + /// Update a WorkloadNetworkSegment /// /// [OpenAPI] UpdateSegments=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a segment by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkSegment")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPriva /// private int _responseSize = 0; - /// NSX Segment - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegment _workloadNetworkSegmentBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegment(); + /// NSX Segment update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkSegmentUpdate _workloadNetworkSegmentBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkSegmentUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -178,12 +178,12 @@ public partial class UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPriva /// Backing field for property. private string _segmentName; - /// NSX Segment identifier. Generally the same as the Segment's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX Segment identifier. Generally the same as the Segment's display name")] + /// The ID of the NSX Segment + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the NSX Segment")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX Segment identifier. Generally the same as the Segment's display name", + Description = @"The ID of the NSX Segment", SerializedName = @"segmentId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded.cs index 823bb0349fb7..592f75ebf11c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a vm group by id in a private cloud workload network. + /// Update a WorkloadNetworkVMGroup /// /// [OpenAPI] UpdateVMGroup=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkVMGroup_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a vm group by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkVMGroup")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded : globa /// private int _responseSize = 0; - /// NSX VM Group - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup _workloadNetworkVMGroupBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroup(); + /// NSX VM Group update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate _workloadNetworkVMGroupBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -199,12 +199,12 @@ public partial class UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded : globa /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo( @@ -218,12 +218,12 @@ public partial class UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded : globa /// Backing field for property. private string _vMGroupName; - /// NSX VM Group identifier. Generally the same as the VM Group's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX VM Group identifier. Generally the same as the VM Group's display name")] + /// ID of the VM group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the VM group.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX VM Group identifier. Generally the same as the VM Group's display name", + Description = @"ID of the VM group.", SerializedName = @"vmGroupId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded.cs index bd2b7bbb60da..08d2851b400e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a vm group by id in a private cloud workload network. + /// Update a WorkloadNetworkVMGroup /// /// [OpenAPI] UpdateVMGroup=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a vm group by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkVMGroup")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpan /// private int _responseSize = 0; - /// NSX VM Group - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup _workloadNetworkVMGroupBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroup(); + /// NSX VM Group update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate _workloadNetworkVMGroupBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded.cs index c32c83c1ad46..61fd67d6ad63 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded.cs @@ -10,16 +10,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Update a vm group by id in a private cloud workload network. + /// Update a WorkloadNetworkVMGroup /// /// [OpenAPI] UpdateVMGroup=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a vm group by id in a private cloud workload network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a WorkloadNetworkVMGroup")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-03-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", ApiVersion = "2023-09-01")] public partial class UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IContext @@ -50,8 +50,8 @@ public partial class UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPriva /// private int _responseSize = 0; - /// NSX VM Group - private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroup _workloadNetworkVMGroupBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroup(); + /// NSX VM Group update + private Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IWorkloadNetworkVMGroupUpdate _workloadNetworkVMGroupBody = new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.WorkloadNetworkVMGroupUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -179,12 +179,12 @@ public partial class UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPriva /// Backing field for property. private string _vMGroupName; - /// NSX VM Group identifier. Generally the same as the VM Group's display name - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "NSX VM Group identifier. Generally the same as the VM Group's display name")] + /// ID of the VM group. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID of the VM group.")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = true, ReadOnly = false, - Description = @"NSX VM Group identifier. Generally the same as the VM Group's display name", + Description = @"ID of the VM group.", SerializedName = @"vmGroupId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Category(global::Microsoft.Azure.PowerShell.Cmdlets.VMware.ParameterCategory.Path)] diff --git a/src/VMware/VMware.Autorest/help/Az.VMware.md b/src/VMware/VMware.Autorest/help/Az.VMware.md index 397a4fadd728..310c217f042d 100644 --- a/src/VMware/VMware.Autorest/help/Az.VMware.md +++ b/src/VMware/VMware.Autorest/help/Az.VMware.md @@ -15,64 +15,67 @@ Microsoft Azure PowerShell: VMware cmdlets Get an addon by name in a private cloud ### [Get-AzVMwareAuthorization](Get-AzVMwareAuthorization.md) -Get an ExpressRoute Circuit Authorization by name in a private cloud +Get a ExpressRouteAuthorization ### [Get-AzVMwareCloudLink](Get-AzVMwareCloudLink.md) -Get an cloud link by name in a private cloud +Get a CloudLink ### [Get-AzVMwareCluster](Get-AzVMwareCluster.md) -Get a cluster by name in a private cloud +Get a Cluster ### [Get-AzVMwareClusterZone](Get-AzVMwareClusterZone.md) List hosts by zone in a cluster ### [Get-AzVMwareDatastore](Get-AzVMwareDatastore.md) -Get a datastore in a private cloud cluster +Get a Datastore ### [Get-AzVMwareGlobalReachConnection](Get-AzVMwareGlobalReachConnection.md) -Get a global reach connection by name in a private cloud +Get a GlobalReachConnection + +### [Get-AzVMwareIscsiPath](Get-AzVMwareIscsiPath.md) +Get a IscsiPath ### [Get-AzVMwarePlacementPolicy](Get-AzVMwarePlacementPolicy.md) -Get a placement policy by name in a private cloud cluster +Get a PlacementPolicy ### [Get-AzVMwarePrivateCloud](Get-AzVMwarePrivateCloud.md) -Get a private cloud +Get a PrivateCloud ### [Get-AzVMwarePrivateCloudAdminCredential](Get-AzVMwarePrivateCloudAdminCredential.md) List the admin credentials for the private cloud ### [Get-AzVMwareVirtualMachine](Get-AzVMwareVirtualMachine.md) -Get a virtual machine by id in a private cloud cluster +Get a VirtualMachine ### [New-AzVMwareAddon](New-AzVMwareAddon.md) Create or update a addon in a private cloud -### [New-AzVMwareAddonSrmPropertiesObject](New-AzVMwareAddonSrmPropertiesObject.md) -Create a in-memory object for AddonSrmProperties +### [New-AzVMwareAddonSrmPropertyObject](New-AzVMwareAddonSrmPropertyObject.md) +Create an in-memory object for AddonSrmProperties. -### [New-AzVMwareAddonVrPropertiesObject](New-AzVMwareAddonVrPropertiesObject.md) -Create a in-memory object for AddonVrProperties +### [New-AzVMwareAddonVrPropertyObject](New-AzVMwareAddonVrPropertyObject.md) +Create an in-memory object for AddonVrProperties. ### [New-AzVMwareAuthorization](New-AzVMwareAuthorization.md) -Create an ExpressRoute Circuit Authorization in a private cloud +Create a ExpressRouteAuthorization ### [New-AzVMwareCloudLink](New-AzVMwareCloudLink.md) -Create a cloud link in a private cloud +Create a CloudLink ### [New-AzVMwareCluster](New-AzVMwareCluster.md) -Create a cluster in a private cloud +Create a Cluster ### [New-AzVMwareDatastore](New-AzVMwareDatastore.md) -Create a datastore in a private cloud cluster +Create a Datastore ### [New-AzVMwareGlobalReachConnection](New-AzVMwareGlobalReachConnection.md) -Create a global reach connection in a private cloud +Create a GlobalReachConnection -### [New-AzVMwareIdentitySourceObject](New-AzVMwareIdentitySourceObject.md) -Create an in-memory object for IdentitySource. +### [New-AzVMwareIscsiPath](New-AzVMwareIscsiPath.md) +Create a IscsiPath ### [New-AzVMwarePlacementPolicy](New-AzVMwarePlacementPolicy.md) -Create a placement policy in a private cloud cluster +Create a PlacementPolicy ### [New-AzVMwarePrivateCloud](New-AzVMwarePrivateCloud.md) Create a private cloud @@ -84,40 +87,43 @@ Rotate the NSX-T Manager password Rotate the vCenter password ### [New-AzVMwarePSCredentialExecutionParameterObject](New-AzVMwarePSCredentialExecutionParameterObject.md) -Create a in-memory object for PSCredentialExecutionParameter +Create an in-memory object for PSCredentialExecutionParameter. ### [New-AzVMwareScriptSecureStringExecutionParameterObject](New-AzVMwareScriptSecureStringExecutionParameterObject.md) -Create a in-memory object for ScriptSecureStringExecutionParameter +Create an in-memory object for ScriptSecureStringExecutionParameter. ### [New-AzVMwareScriptStringExecutionParameterObject](New-AzVMwareScriptStringExecutionParameterObject.md) -Create a in-memory object for ScriptStringExecutionParameter +Create an in-memory object for ScriptStringExecutionParameter. -### [New-AzVMwareVmHostPlacementPolicyPropertiesObject](New-AzVMwareVmHostPlacementPolicyPropertiesObject.md) +### [New-AzVMwareVmHostPlacementPolicyPropertyObject](New-AzVMwareVmHostPlacementPolicyPropertyObject.md) Create an in-memory object for VmHostPlacementPolicyProperties. -### [New-AzVMwareVMPlacementPolicyPropertiesObject](New-AzVMwareVMPlacementPolicyPropertiesObject.md) +### [New-AzVMwareVMPlacementPolicyPropertyObject](New-AzVMwareVMPlacementPolicyPropertyObject.md) Create an in-memory object for VMPlacementPolicyProperties. ### [Remove-AzVMwareAddon](Remove-AzVMwareAddon.md) Delete a addon in a private cloud ### [Remove-AzVMwareAuthorization](Remove-AzVMwareAuthorization.md) -Delete an ExpressRoute Circuit Authorization in a private cloud +Delete a ExpressRouteAuthorization ### [Remove-AzVMwareCloudLink](Remove-AzVMwareCloudLink.md) -Delete a cloud link in a private cloud +Delete a CloudLink ### [Remove-AzVMwareCluster](Remove-AzVMwareCluster.md) -Delete a cluster in a private cloud +Delete a Cluster ### [Remove-AzVMwareDatastore](Remove-AzVMwareDatastore.md) -Delete a datastore in a private cloud cluster +Delete a Datastore ### [Remove-AzVMwareGlobalReachConnection](Remove-AzVMwareGlobalReachConnection.md) -Delete a global reach connection in a private cloud +Delete a GlobalReachConnection + +### [Remove-AzVMwareIscsiPath](Remove-AzVMwareIscsiPath.md) +Delete a IscsiPath ### [Remove-AzVMwarePlacementPolicy](Remove-AzVMwarePlacementPolicy.md) -Delete a placement policy in a private cloud cluster +Delete a PlacementPolicy ### [Remove-AzVMwarePrivateCloud](Remove-AzVMwarePrivateCloud.md) Delete a private cloud @@ -129,23 +135,26 @@ Return quota for subscription by region Return trial status for subscription by region ### [Update-AzVMwareAuthorization](Update-AzVMwareAuthorization.md) -Update an ExpressRoute Circuit Authorization in a private cloud +Update a ExpressRouteAuthorization ### [Update-AzVMwareCloudLink](Update-AzVMwareCloudLink.md) -Update a cloud link in a private cloud +Update a CloudLink ### [Update-AzVMwareCluster](Update-AzVMwareCluster.md) -Update a cluster in a private cloud +Update a Cluster ### [Update-AzVMwareDatastore](Update-AzVMwareDatastore.md) -Update a datastore in a private cloud cluster +Update a Datastore ### [Update-AzVMwareGlobalReachConnection](Update-AzVMwareGlobalReachConnection.md) -Update a global reach connection in a private cloud +Update a GlobalReachConnection + +### [Update-AzVMwareIscsiPath](Update-AzVMwareIscsiPath.md) +Update a IscsiPath ### [Update-AzVMwarePlacementPolicy](Update-AzVMwarePlacementPolicy.md) -Update a placement policy in a private cloud cluster +Update a PlacementPolicy ### [Update-AzVMwarePrivateCloud](Update-AzVMwarePrivateCloud.md) -Update a private cloud +Update a PrivateCloud diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwareAuthorization.md b/src/VMware/VMware.Autorest/help/Get-AzVMwareAuthorization.md index e4bf3cebbc30..35e6ceeaf74a 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwareAuthorization.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwareAuthorization.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Get-AzVMwareAuthorization ## SYNOPSIS -Get an ExpressRoute Circuit Authorization by name in a private cloud +Get a ExpressRouteAuthorization ## SYNTAX @@ -36,7 +36,7 @@ Get-AzVMwareAuthorization -Name -PrivateCloudInputObject -PrivateCloudInputObject ``` ## DESCRIPTION -Get an cloud link by name in a private cloud +Get a CloudLink ## EXAMPLES @@ -100,7 +100,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the cloud link resource +Name of the cloud link. ```yaml Type: System.String @@ -162,6 +162,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwareCluster.md b/src/VMware/VMware.Autorest/help/Get-AzVMwareCluster.md index 18f83a62de8e..80d44d77d841 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwareCluster.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwareCluster.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Get-AzVMwareCluster ## SYNOPSIS -Get a cluster by name in a private cloud +Get a Cluster ## SYNTAX @@ -36,7 +36,7 @@ Get-AzVMwareCluster -Name -PrivateCloudInputObject [- ``` ## DESCRIPTION -Get a cluster by name in a private cloud +Get a Cluster ## EXAMPLES @@ -100,7 +100,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -162,6 +162,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwareClusterZone.md b/src/VMware/VMware.Autorest/help/Get-AzVMwareClusterZone.md index 27554bbbe935..44296d2ba7b5 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwareClusterZone.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwareClusterZone.md @@ -38,7 +38,7 @@ List hosts by zone in a cluster ## PARAMETERS ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -101,6 +101,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwareDatastore.md b/src/VMware/VMware.Autorest/help/Get-AzVMwareDatastore.md index b8fdf903d9db..5ec33c6bf904 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwareDatastore.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwareDatastore.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Get-AzVMwareDatastore ## SYNOPSIS -Get a datastore in a private cloud cluster +Get a Datastore ## SYNTAX @@ -42,7 +42,7 @@ Get-AzVMwareDatastore -ClusterName -Name -PrivateCloudInputObj ``` ## DESCRIPTION -Get a datastore in a private cloud cluster +Get a Datastore ## EXAMPLES @@ -91,7 +91,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -137,7 +137,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the datastore in the private cloud cluster +Name of the datastore ```yaml Type: System.String @@ -199,6 +199,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwareGlobalReachConnection.md b/src/VMware/VMware.Autorest/help/Get-AzVMwareGlobalReachConnection.md index 609655d71cc4..ac3e5c3bb2a1 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwareGlobalReachConnection.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Get-AzVMwareGlobalReachConnection ## SYNOPSIS -Get a global reach connection by name in a private cloud +Get a GlobalReachConnection ## SYNTAX @@ -37,7 +37,7 @@ Get-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzVMwareIscsiPath -InputObject [-DefaultProfile ] [] +``` + +### List +``` +Get-AzVMwareIscsiPath -PrivateCloudName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get a IscsiPath + +## EXAMPLES + +### Example 1: Get a IscsiPath +```powershell +Get-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/i + scsiPaths/default +Name : default +NetworkBlock : 192.168.0.0/24 +ProvisioningState : Succeeded +ResourceGroupName : group1 +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : Microsoft.AVS/privateClouds/iscsiPaths +``` + +Get a IscsiPath + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -PrivateCloudName +Name of the private cloud + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + +## NOTES + +## RELATED LINKS + diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwarePlacementPolicy.md b/src/VMware/VMware.Autorest/help/Get-AzVMwarePlacementPolicy.md index f575f83cd132..7f0e5441587b 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwarePlacementPolicy.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Get-AzVMwarePlacementPolicy ## SYNOPSIS -Get a placement policy by name in a private cloud cluster +Get a PlacementPolicy ## SYNTAX @@ -42,7 +42,7 @@ Get-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudIn ``` ## DESCRIPTION -Get a placement policy by name in a private cloud cluster +Get a PlacementPolicy ## EXAMPLES @@ -91,7 +91,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -137,7 +137,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy +Name of the placement policy. ```yaml Type: System.String @@ -199,6 +199,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwarePrivateCloud.md b/src/VMware/VMware.Autorest/help/Get-AzVMwarePrivateCloud.md index c38c2f7592a6..bd0057dd4cfd 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwarePrivateCloud.md @@ -8,11 +8,11 @@ schema: 2.0.0 # Get-AzVMwarePrivateCloud ## SYNOPSIS -Get a private cloud +Get a PrivateCloud ## SYNTAX -### List1 (Default) +### List (Default) ``` Get-AzVMwarePrivateCloud [-SubscriptionId ] [-DefaultProfile ] [] ``` @@ -28,14 +28,14 @@ Get-AzVMwarePrivateCloud -Name -ResourceGroupName [-Subscripti Get-AzVMwarePrivateCloud -InputObject [-DefaultProfile ] [] ``` -### List +### List1 ``` Get-AzVMwarePrivateCloud -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] ``` ## DESCRIPTION -Get a private cloud +Get a PrivateCloud ## EXAMPLES @@ -132,7 +132,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: Get, List1 Aliases: Required: True @@ -144,6 +144,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwarePrivateCloudAdminCredential.md b/src/VMware/VMware.Autorest/help/Get-AzVMwarePrivateCloudAdminCredential.md index f34230bb077f..7b86653d0308 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwarePrivateCloudAdminCredential.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwarePrivateCloudAdminCredential.md @@ -86,6 +86,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware.Autorest/help/Get-AzVMwareVirtualMachine.md b/src/VMware/VMware.Autorest/help/Get-AzVMwareVirtualMachine.md index e3e3f10ad9e5..0f0e695b5c68 100644 --- a/src/VMware/VMware.Autorest/help/Get-AzVMwareVirtualMachine.md +++ b/src/VMware/VMware.Autorest/help/Get-AzVMwareVirtualMachine.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Get-AzVMwareVirtualMachine ## SYNOPSIS -Get a virtual machine by id in a private cloud cluster +Get a VirtualMachine ## SYNTAX @@ -42,7 +42,7 @@ Get-AzVMwareVirtualMachine -ClusterName -Id -PrivateCloudInput ``` ## DESCRIPTION -Get a virtual machine by id in a private cloud cluster +Get a VirtualMachine ## EXAMPLES @@ -91,7 +91,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -122,7 +122,7 @@ Accept wildcard characters: False ``` ### -Id -Virtual Machine identifier +ID of the virtual machine. ```yaml Type: System.String @@ -199,6 +199,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareAddon.md b/src/VMware/VMware.Autorest/help/New-AzVMwareAddon.md index c1247e910bd5..3cafc792f580 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareAddon.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareAddon.md @@ -25,7 +25,7 @@ Create or update a addon in a private cloud ### Example 1: Create an addon in a private cloud ```powershell -$data = New-AzVMwareAddonVrPropertiesObject -VrsCount 2 +$data = New-AzVMwareAddonVrPropertyObject -VrsCount 2 New-AzVMwareAddon -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -Property $data ``` diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareAddonSrmPropertiesObject.md b/src/VMware/VMware.Autorest/help/New-AzVMwareAddonSrmPropertyObject.md similarity index 74% rename from src/VMware/VMware.Autorest/help/New-AzVMwareAddonSrmPropertiesObject.md rename to src/VMware/VMware.Autorest/help/New-AzVMwareAddonSrmPropertyObject.md index e248caef4409..acd25cdcd408 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareAddonSrmPropertiesObject.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareAddonSrmPropertyObject.md @@ -1,29 +1,29 @@ --- external help file: Module Name: Az.VMware -online version: https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareAddonSrmPropertiesObject +online version: https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwareaddonsrmpropertyobject schema: 2.0.0 --- -# New-AzVMwareAddonSrmPropertiesObject +# New-AzVMwareAddonSrmPropertyObject ## SYNOPSIS -Create a in-memory object for AddonSrmProperties +Create an in-memory object for AddonSrmProperties. ## SYNTAX ``` -New-AzVMwareAddonSrmPropertiesObject -LicenseKey [] +New-AzVMwareAddonSrmPropertyObject [-LicenseKey ] [] ``` ## DESCRIPTION -Create a in-memory object for AddonSrmProperties +Create an in-memory object for AddonSrmProperties. ## EXAMPLES ### Example 1: Create a local SRM object for the Addon Property parameter ```powershell -New-AzVMwareAddonSrmPropertiesObject -LicenseKey "YourLicenseKeyValue" +New-AzVMwareAddonSrmPropertyObject -LicenseKey "YourLicenseKeyValue" ``` ```output @@ -44,7 +44,7 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareAddonVrPropertiesObject.md b/src/VMware/VMware.Autorest/help/New-AzVMwareAddonVrPropertyObject.md similarity index 75% rename from src/VMware/VMware.Autorest/help/New-AzVMwareAddonVrPropertiesObject.md rename to src/VMware/VMware.Autorest/help/New-AzVMwareAddonVrPropertyObject.md index 34d8978cd7c8..f9e7524efdb7 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareAddonVrPropertiesObject.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareAddonVrPropertyObject.md @@ -1,29 +1,29 @@ --- external help file: Module Name: Az.VMware -online version: https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareAddonVrPropertiesObject +online version: https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwareaddonvrpropertyobject schema: 2.0.0 --- -# New-AzVMwareAddonVrPropertiesObject +# New-AzVMwareAddonVrPropertyObject ## SYNOPSIS -Create a in-memory object for AddonVrProperties +Create an in-memory object for AddonVrProperties. ## SYNTAX ``` -New-AzVMwareAddonVrPropertiesObject -VrsCount [] +New-AzVMwareAddonVrPropertyObject -VrsCount [] ``` ## DESCRIPTION -Create a in-memory object for AddonVrProperties +Create an in-memory object for AddonVrProperties. ## EXAMPLES ### Example 1: Create a local VR object for the Addon Property parameter ```powershell -New-AzVMwareAddonVrPropertiesObject -VrsCount 2 +New-AzVMwareAddonVrPropertyObject -VrsCount 2 ``` ```output diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareAuthorization.md b/src/VMware/VMware.Autorest/help/New-AzVMwareAuthorization.md index 907ab122a206..71dd1fac6007 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareAuthorization.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareAuthorization.md @@ -8,31 +8,31 @@ schema: 2.0.0 # New-AzVMwareAuthorization ## SYNOPSIS -Create an ExpressRoute Circuit Authorization in a private cloud +Create a ExpressRouteAuthorization ## SYNTAX ### CreateExpanded (Default) ``` New-AzVMwareAuthorization -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-SubscriptionId ] [-ExpressRouteId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ### CreateViaIdentityExpanded ``` -New-AzVMwareAuthorization -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] +New-AzVMwareAuthorization -InputObject [-ExpressRouteId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### CreateViaIdentityPrivateCloudExpanded ``` -New-AzVMwareAuthorization -Name -PrivateCloudInputObject +New-AzVMwareAuthorization -Name -PrivateCloudInputObject [-ExpressRouteId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Create an ExpressRoute Circuit Authorization in a private cloud +Create a ExpressRouteAuthorization ## EXAMPLES @@ -82,6 +82,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ExpressRouteId +The ID of the ExpressRoute Circuit + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter @@ -98,7 +113,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the ExpressRoute Circuit Authorization in the private cloud +Name of the ExpressRoute Circuit Authorization ```yaml Type: System.String @@ -143,7 +158,7 @@ Accept wildcard characters: False ``` ### -PrivateCloudName -The name of the private cloud. +Name of the private cloud ```yaml Type: System.String @@ -175,6 +190,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareCloudLink.md b/src/VMware/VMware.Autorest/help/New-AzVMwareCloudLink.md index 4104fd01252e..30c8f115b639 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareCloudLink.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareCloudLink.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzVMwareCloudLink ## SYNOPSIS -Create a cloud link in a private cloud +Create a CloudLink ## SYNTAX @@ -32,7 +32,7 @@ New-AzVMwareCloudLink -Name -PrivateCloudInputObject ``` ## DESCRIPTION -Create a cloud link in a private cloud +Create a CloudLink ## EXAMPLES @@ -113,7 +113,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the cloud link resource +Name of the cloud link. ```yaml Type: System.String @@ -158,7 +158,7 @@ Accept wildcard characters: False ``` ### -PrivateCloudName -The name of the private cloud. +Name of the private cloud ```yaml Type: System.String @@ -190,6 +190,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareCluster.md b/src/VMware/VMware.Autorest/help/New-AzVMwareCluster.md index da5d8fe20a50..63bc4d1c6e57 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareCluster.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareCluster.md @@ -8,33 +8,36 @@ schema: 2.0.0 # New-AzVMwareCluster ## SYNOPSIS -Create a cluster in a private cloud +Create a Cluster ## SYNTAX ### CreateExpanded (Default) ``` New-AzVMwareCluster -Name -PrivateCloudName -ResourceGroupName -SkuName - [-SubscriptionId ] [-ClusterSize ] [-PropertiesHost ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-ClusterSize ] [-PropertiesHost ] [-SkuCapacity ] + [-SkuFamily ] [-SkuSize ] [-SkuTier ] [-VsanDatastoreName ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### CreateViaIdentityExpanded ``` New-AzVMwareCluster -InputObject -SkuName [-ClusterSize ] - [-PropertiesHost ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-PropertiesHost ] [-SkuCapacity ] [-SkuFamily ] [-SkuSize ] + [-SkuTier ] [-VsanDatastoreName ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] ``` ### CreateViaIdentityPrivateCloudExpanded ``` New-AzVMwareCluster -Name -PrivateCloudInputObject -SkuName - [-ClusterSize ] [-PropertiesHost ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] + [-ClusterSize ] [-PropertiesHost ] [-SkuCapacity ] [-SkuFamily ] + [-SkuSize ] [-SkuTier ] [-VsanDatastoreName ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Create a cluster in a private cloud +Create a Cluster ## EXAMPLES @@ -115,7 +118,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -160,7 +163,7 @@ Accept wildcard characters: False ``` ### -PrivateCloudName -The name of the private cloud. +Name of the private cloud ```yaml Type: System.String @@ -205,8 +208,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SkuCapacity +If the SKU supports scale out/in then the capacity integer should be included. +If scale out/in is not possible for the resource this may be omitted. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuFamily +If the service has different generations of hardware, for the same SKU, then that can be captured here. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SkuName The name of the SKU. +E.g. +P3. +It is typically a letter+number code ```yaml Type: System.String @@ -220,8 +257,40 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SkuSize +The SKU size. +When the name field is the combination of tier and some other value, this would be the standalone code. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuTier +This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -235,6 +304,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -VsanDatastoreName +Name of the vsan datastore associated with the cluster + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareDatastore.md b/src/VMware/VMware.Autorest/help/New-AzVMwareDatastore.md index 55fd83acfa65..5601fbfc9e91 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareDatastore.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareDatastore.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzVMwareDatastore ## SYNOPSIS -Create a datastore in a private cloud cluster +Create a Datastore ## SYNTAX @@ -16,34 +16,37 @@ Create a datastore in a private cloud cluster ``` New-AzVMwareDatastore -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DiskPoolVolumeLunName ] - [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-ElasticSanVolumeTargetId ] + [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ### CreateViaIdentityClusterExpanded ``` New-AzVMwareDatastore -ClusterInputObject -Name [-DiskPoolVolumeLunName ] - [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-ElasticSanVolumeTargetId ] + [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ### CreateViaIdentityExpanded ``` New-AzVMwareDatastore -InputObject [-DiskPoolVolumeLunName ] - [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-ElasticSanVolumeTargetId ] + [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ### CreateViaIdentityPrivateCloudExpanded ``` New-AzVMwareDatastore -ClusterName -Name -PrivateCloudInputObject [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] - [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-ElasticSanVolumeTargetId ] [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Create a datastore in a private cloud cluster +Create a Datastore ## EXAMPLES @@ -93,7 +96,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -139,7 +142,7 @@ Accept wildcard characters: False ``` ### -DiskPoolVolumeMountOption -Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN +Mode that describes whether the LUN has to be mounted as a datastore orattached as a LUN ```yaml Type: System.String @@ -168,6 +171,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ElasticSanVolumeTargetId +Azure resource ID of the Elastic SAN Volume + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter @@ -184,7 +202,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the datastore in the private cloud cluster +Name of the datastore ```yaml Type: System.String @@ -276,6 +294,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareGlobalReachConnection.md b/src/VMware/VMware.Autorest/help/New-AzVMwareGlobalReachConnection.md index 853f471ec098..12579b058bfe 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareGlobalReachConnection.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzVMwareGlobalReachConnection ## SYNOPSIS -Create a global reach connection in a private cloud +Create a GlobalReachConnection ## SYNTAX @@ -35,7 +35,7 @@ New-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject ] [-BaseGroupDn ] [-BaseUserDn ] - [-Domain ] [-Name ] [-Password ] [-PrimaryServer ] - [-SecondaryServer ] [-Ssl ] [-Username ] [] -``` - -## DESCRIPTION -Create an in-memory object for IdentitySource. - -## EXAMPLES - -### Example 1: Create an in-memory object for IdentitySource -```powershell -New-AzVMwareIdentitySourceObject -Alias test -``` - -```output -Alias : test -BaseGroupDn : -BaseUserDn : -Domain : -Name : -Password : -PrimaryServer : -SecondaryServer : -Ssl : -Username : -``` - -Create an in-memory object for IdentitySource - -## PARAMETERS - -### -Alias -The domain's NetBIOS name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -BaseGroupDn -The base distinguished name for groups. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -BaseUserDn -The base distinguished name for users. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Domain -The domain's dns name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Name -The name of the identity source. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Password -The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -PrimaryServer -Primary server URL. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SecondaryServer -Secondary server URL. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Ssl -Protect LDAP communication using SSL certificate (LDAPS). - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Username -The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IdentitySource - -## NOTES - -## RELATED LINKS - diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareIscsiPath.md b/src/VMware/VMware.Autorest/help/New-AzVMwareIscsiPath.md new file mode 100644 index 000000000000..60c31dc9f245 --- /dev/null +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareIscsiPath.md @@ -0,0 +1,225 @@ +--- +external help file: +Module Name: Az.VMware +online version: https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareiscsipath +schema: 2.0.0 +--- + +# New-AzVMwareIscsiPath + +## SYNOPSIS +Create a IscsiPath + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzVMwareIscsiPath -PrivateCloudName -ResourceGroupName [-SubscriptionId ] + [-NetworkBlock ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaIdentityExpanded +``` +New-AzVMwareIscsiPath -InputObject [-NetworkBlock ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Create a IscsiPath + +## EXAMPLES + +### Example 1: Create a IscsiPath +```powershell +New-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/iscsiPaths/default +Name : default +NetworkBlock : 192.168.0.0/24 +ProvisioningState : Succeeded +ResourceGroupName : group1 +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : Microsoft.AVS/privateClouds/iscsiPaths +``` + +Create a IscsiPath + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity +Parameter Sets: CreateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NetworkBlock +CIDR Block for iSCSI path. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PrivateCloudName +Name of the private cloud + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + +## NOTES + +## RELATED LINKS + diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwarePSCredentialExecutionParameterObject.md b/src/VMware/VMware.Autorest/help/New-AzVMwarePSCredentialExecutionParameterObject.md index cf04b455cd2a..790f84796c61 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwarePSCredentialExecutionParameterObject.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwarePSCredentialExecutionParameterObject.md @@ -1,36 +1,37 @@ --- external help file: Module Name: Az.VMware -online version: https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwarePSCredentialExecutionParameterObject +online version: https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarepscredentialexecutionparameterobject schema: 2.0.0 --- # New-AzVMwarePSCredentialExecutionParameterObject ## SYNOPSIS -Create a in-memory object for PSCredentialExecutionParameter +Create an in-memory object for PSCredentialExecutionParameter. ## SYNTAX ``` -New-AzVMwarePSCredentialExecutionParameterObject -Name [-Password ] [-Username ] - [] +New-AzVMwarePSCredentialExecutionParameterObject -Name [-Password ] + [-Username ] [] ``` ## DESCRIPTION -Create a in-memory object for PSCredentialExecutionParameter +Create an in-memory object for PSCredentialExecutionParameter. ## EXAMPLES ### Example 1: Create a local PS Credential Execution object ```powershell -New-AzVMwarePSCredentialExecutionParameterObject -Name azps_test_credentialvalue -Password "passwordValue" -Username "usernameValue" +$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +New-AzVMwarePSCredentialExecutionParameterObject -Name azps_test_credentialvalue -Password $mypwd -Username "usernameValue" ``` ```output -Name Password Type Username ----- -------- ---- -------- -azps_test_credentialvalue passwordValue Credential usernameValue +Name Password Type Username +---- -------- ---- -------- +azps_test_credentialvalue System.Security.SecureString Credential usernameValue ``` Create a local PS Credential Execution object @@ -56,7 +57,7 @@ Accept wildcard characters: False password for login. ```yaml -Type: System.String +Type: System.Security.SecureString Parameter Sets: (All) Aliases: diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwarePlacementPolicy.md b/src/VMware/VMware.Autorest/help/New-AzVMwarePlacementPolicy.md index a6ccf512948c..202be534f214 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwarePlacementPolicy.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzVMwarePlacementPolicy ## SYNOPSIS -Create a placement policy in a private cloud cluster +Create a PlacementPolicy ## SYNTAX @@ -40,13 +40,13 @@ New-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudIn ``` ## DESCRIPTION -Create a placement policy in a private cloud cluster +Create a PlacementPolicy ## EXAMPLES ### Example 1: Create or update a placement policy in a private cloud cluster ```powershell -$abc = New-AzVMwareVMPlacementPolicyPropertiesObject -AffinityType 'Affinity' -Type 'VmVm' -VMMember @{"test"="test"} +$abc = New-AzVMwareVMPlacementPolicyPropertyObject -AffinityType 'Affinity' -VMMember @{"test"="test"} New-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 -Property $abc ``` @@ -60,7 +60,7 @@ Create or update a placement policy in a private cloud cluster ### Example 2: Create or update a placement policy in a private cloud cluster ```powershell -$abc = New-AzVMwareVmHostPlacementPolicyPropertiesObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -Type 'VmHost' -VMMember @{"test"="test"} +$abc = New-AzVMwareVmHostPlacementPolicyPropertyObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -VMMember @{"test"="test"} New-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 -Property $abc ``` @@ -105,7 +105,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -151,7 +151,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy +Name of the placement policy. ```yaml Type: System.String @@ -211,7 +211,7 @@ Accept wildcard characters: False ``` ### -Property -placement policy properties +The resource-specific properties for this resource. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties @@ -243,6 +243,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwarePrivateCloudNsxtPassword.md b/src/VMware/VMware.Autorest/help/New-AzVMwarePrivateCloudNsxtPassword.md index 5022bc2361ae..9d5f18ad4b76 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwarePrivateCloudNsxtPassword.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwarePrivateCloudNsxtPassword.md @@ -152,6 +152,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwarePrivateCloudVcenterPassword.md b/src/VMware/VMware.Autorest/help/New-AzVMwarePrivateCloudVcenterPassword.md index 966c4c446a5d..c95594b9b881 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwarePrivateCloudVcenterPassword.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwarePrivateCloudVcenterPassword.md @@ -152,6 +152,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareScriptSecureStringExecutionParameterObject.md b/src/VMware/VMware.Autorest/help/New-AzVMwareScriptSecureStringExecutionParameterObject.md index 34dec74b2f80..fcd7d16aef43 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareScriptSecureStringExecutionParameterObject.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareScriptSecureStringExecutionParameterObject.md @@ -1,36 +1,38 @@ --- external help file: Module Name: Az.VMware -online version: https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareScriptSecureStringExecutionParameterObject +online version: https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarescriptsecurestringexecutionparameterobject schema: 2.0.0 --- # New-AzVMwareScriptSecureStringExecutionParameterObject ## SYNOPSIS -Create a in-memory object for ScriptSecureStringExecutionParameter +Create an in-memory object for ScriptSecureStringExecutionParameter. ## SYNTAX ``` -New-AzVMwareScriptSecureStringExecutionParameterObject -Name [-SecureValue ] +New-AzVMwareScriptSecureStringExecutionParameterObject -Name [-SecureValue ] [] ``` ## DESCRIPTION -Create a in-memory object for ScriptSecureStringExecutionParameter +Create an in-memory object for ScriptSecureStringExecutionParameter. ## EXAMPLES ### Example 1: Create a local Script Secure String Execution object ```powershell -New-AzVMwareScriptSecureStringExecutionParameterObject -Name azps_test_securevalue -SecureValue "passwordValue" +$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +New-AzVMwareScriptSecureStringExecutionParameterObject -Name azps_test_securevalue -SecureValue $mypwd ``` ```output -Name SecureValue Type ----- ----------- ---- -azps_test_securevalue passwordValue SecureValue + +Name SecureValue Type +---- ----------- ---- +azps_test_securevalue System.Security.SecureString SecureValue ``` Create a local Script Secure String Execution object @@ -56,7 +58,7 @@ Accept wildcard characters: False A secure value for the passed parameter, not to be stored in logs. ```yaml -Type: System.String +Type: System.Security.SecureString Parameter Sets: (All) Aliases: diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareScriptStringExecutionParameterObject.md b/src/VMware/VMware.Autorest/help/New-AzVMwareScriptStringExecutionParameterObject.md index 69a742473130..74000fa1889a 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareScriptStringExecutionParameterObject.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareScriptStringExecutionParameterObject.md @@ -1,14 +1,14 @@ --- external help file: Module Name: Az.VMware -online version: https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareScriptStringExecutionParameterObject +online version: https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarescriptstringexecutionparameterobject schema: 2.0.0 --- # New-AzVMwareScriptStringExecutionParameterObject ## SYNOPSIS -Create a in-memory object for ScriptStringExecutionParameter +Create an in-memory object for ScriptStringExecutionParameter. ## SYNTAX @@ -17,7 +17,7 @@ New-AzVMwareScriptStringExecutionParameterObject -Name [-Value ``` ## DESCRIPTION -Create a in-memory object for ScriptStringExecutionParameter +Create an in-memory object for ScriptStringExecutionParameter. ## EXAMPLES @@ -27,9 +27,9 @@ New-AzVMwareScriptStringExecutionParameterObject -Name azps_test_value -Value "p ``` ```output -Name Value ----- ----------- -azps_test_value passwordValue +Name Type Value +---- ---- ----- +azps_test_value Value passwordValue ``` Create a local Script String Execution object diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareVMPlacementPolicyPropertiesObject.md b/src/VMware/VMware.Autorest/help/New-AzVMwareVMPlacementPolicyPropertyObject.md similarity index 77% rename from src/VMware/VMware.Autorest/help/New-AzVMwareVMPlacementPolicyPropertiesObject.md rename to src/VMware/VMware.Autorest/help/New-AzVMwareVMPlacementPolicyPropertyObject.md index 621dd82066cf..697beb8f9b41 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareVMPlacementPolicyPropertiesObject.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareVMPlacementPolicyPropertyObject.md @@ -1,11 +1,11 @@ --- external help file: Module Name: Az.VMware -online version: https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareVMPlacementPolicyPropertiesObject +online version: https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarevmplacementpolicypropertyobject schema: 2.0.0 --- -# New-AzVMwareVMPlacementPolicyPropertiesObject +# New-AzVMwareVMPlacementPolicyPropertyObject ## SYNOPSIS Create an in-memory object for VMPlacementPolicyProperties. @@ -13,7 +13,7 @@ Create an in-memory object for VMPlacementPolicyProperties. ## SYNTAX ``` -New-AzVMwareVMPlacementPolicyPropertiesObject -AffinityType -Type -VMMember +New-AzVMwareVMPlacementPolicyPropertyObject -AffinityType -VMMember [-DisplayName ] [-State ] [] ``` @@ -24,7 +24,7 @@ Create an in-memory object for VMPlacementPolicyProperties. ### Example 1: Create an in-memory object for VMPlacementPolicyProperties. ```powershell - New-AzVMwareVMPlacementPolicyPropertiesObject -AffinityType 'Affinity' -Type 'VmVm' -VMMember @{"test"="test"} + New-AzVMwareVMPlacementPolicyPropertyObject -AffinityType 'Affinity' -VMMember @{"test"="test"} ``` ```output @@ -85,21 +85,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Type -placement policy type. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -VMMember Virtual machine members list. diff --git a/src/VMware/VMware.Autorest/help/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md b/src/VMware/VMware.Autorest/help/New-AzVMwareVmHostPlacementPolicyPropertyObject.md similarity index 73% rename from src/VMware/VMware.Autorest/help/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md rename to src/VMware/VMware.Autorest/help/New-AzVMwareVmHostPlacementPolicyPropertyObject.md index f513782ca553..1f609654ee5e 100644 --- a/src/VMware/VMware.Autorest/help/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md +++ b/src/VMware/VMware.Autorest/help/New-AzVMwareVmHostPlacementPolicyPropertyObject.md @@ -1,11 +1,11 @@ --- external help file: Module Name: Az.VMware -online version: https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareVmHostPlacementPolicyPropertiesObject +online version: https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarevmhostplacementpolicypropertyobject schema: 2.0.0 --- -# New-AzVMwareVmHostPlacementPolicyPropertiesObject +# New-AzVMwareVmHostPlacementPolicyPropertyObject ## SYNOPSIS Create an in-memory object for VmHostPlacementPolicyProperties. @@ -13,8 +13,9 @@ Create an in-memory object for VmHostPlacementPolicyProperties. ## SYNTAX ``` -New-AzVMwareVmHostPlacementPolicyPropertiesObject -AffinityType -HostMember -Type - -VMMember [-DisplayName ] [-State ] [] +New-AzVMwareVmHostPlacementPolicyPropertyObject -AffinityType -HostMember + -VMMember [-AffinityStrength ] [-AzureHybridBenefitType ] [-DisplayName ] + [-State ] [] ``` ## DESCRIPTION @@ -24,7 +25,7 @@ Create an in-memory object for VmHostPlacementPolicyProperties. ### Example 1: Create an in-memory object for VmHostPlacementPolicyProperties. ```powershell -New-AzVMwareVmHostPlacementPolicyPropertiesObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -Type 'VmHost' -VMMember @{"test"="test"} +New-AzVMwareVmHostPlacementPolicyPropertyObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -VMMember @{"test"="test"} ``` ```output @@ -43,6 +44,21 @@ Create an in-memory object for VmHostPlacementPolicyProperties. ## PARAMETERS +### -AffinityStrength +vm-host placement policy affinity strength (should/must). + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -AffinityType placement policy affinity type. @@ -58,8 +74,8 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DisplayName -Display name of the placement policy. +### -AzureHybridBenefitType +placement policy azure hybrid benefit opt-in type. ```yaml Type: System.String @@ -73,45 +89,45 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -HostMember -Host members list. +### -DisplayName +Display name of the placement policy. ```yaml -Type: System.String[] +Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -State -Whether the placement policy is enabled or disabled. +### -HostMember +Host members list. ```yaml -Type: System.String +Type: System.String[] Parameter Sets: (All) Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -Type -placement policy type. +### -State +Whether the placement policy is enabled or disabled. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False diff --git a/src/VMware/VMware.Autorest/help/Remove-AzVMwareAuthorization.md b/src/VMware/VMware.Autorest/help/Remove-AzVMwareAuthorization.md index 3dff467fd951..e9789a8a3e13 100644 --- a/src/VMware/VMware.Autorest/help/Remove-AzVMwareAuthorization.md +++ b/src/VMware/VMware.Autorest/help/Remove-AzVMwareAuthorization.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Remove-AzVMwareAuthorization ## SYNOPSIS -Delete an ExpressRoute Circuit Authorization in a private cloud +Delete a ExpressRouteAuthorization ## SYNTAX @@ -32,7 +32,7 @@ Remove-AzVMwareAuthorization -Name -PrivateCloudInputObject -PrivateCloudInputObject -PrivateCloudInputObject ``` ## DESCRIPTION -Delete a cluster in a private cloud +Delete a Cluster ## EXAMPLES @@ -101,7 +101,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -193,6 +193,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware.Autorest/help/Remove-AzVMwareDatastore.md b/src/VMware/VMware.Autorest/help/Remove-AzVMwareDatastore.md index 13591ae8e700..e58c51264dc0 100644 --- a/src/VMware/VMware.Autorest/help/Remove-AzVMwareDatastore.md +++ b/src/VMware/VMware.Autorest/help/Remove-AzVMwareDatastore.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Remove-AzVMwareDatastore ## SYNOPSIS -Delete a datastore in a private cloud cluster +Delete a Datastore ## SYNTAX @@ -38,7 +38,7 @@ Remove-AzVMwareDatastore -ClusterName -Name -PrivateCloudInput ``` ## DESCRIPTION -Delete a datastore in a private cloud cluster +Delete a Datastore ## EXAMPLES @@ -89,7 +89,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -135,7 +135,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the datastore in the private cloud cluster +Name of the datastore ```yaml Type: System.String @@ -227,6 +227,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware.Autorest/help/Remove-AzVMwareGlobalReachConnection.md b/src/VMware/VMware.Autorest/help/Remove-AzVMwareGlobalReachConnection.md index 68fe7c49795a..969bddbdd918 100644 --- a/src/VMware/VMware.Autorest/help/Remove-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware.Autorest/help/Remove-AzVMwareGlobalReachConnection.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Remove-AzVMwareGlobalReachConnection ## SYNOPSIS -Delete a global reach connection in a private cloud +Delete a GlobalReachConnection ## SYNTAX @@ -32,7 +32,7 @@ Remove-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzVMwareIscsiPath -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete a IscsiPath + +## EXAMPLES + +### Example 1: Delete a IscsiPath in a private cloud +```powershell +Remove-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group +``` + +Delete a IscsiPath in a private cloud + +### Example 2: Delete a datastore in a private cloud cluster. +```powershell +Get-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group | Remove-AzVMwareIscsiPath +``` + +Delete a IscsiPath in a private cloud + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PrivateCloudName +Name of the private cloud + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/VMware/VMware.Autorest/help/Remove-AzVMwarePlacementPolicy.md b/src/VMware/VMware.Autorest/help/Remove-AzVMwarePlacementPolicy.md index 83372ce1d69b..2d9129016a9f 100644 --- a/src/VMware/VMware.Autorest/help/Remove-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware.Autorest/help/Remove-AzVMwarePlacementPolicy.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Remove-AzVMwarePlacementPolicy ## SYNOPSIS -Delete a placement policy in a private cloud cluster +Delete a PlacementPolicy ## SYNTAX @@ -38,7 +38,7 @@ Remove-AzVMwarePlacementPolicy -ClusterName -Name -PrivateClou ``` ## DESCRIPTION -Delete a placement policy in a private cloud cluster +Delete a PlacementPolicy ## EXAMPLES @@ -91,7 +91,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -137,7 +137,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy +Name of the placement policy. ```yaml Type: System.String @@ -229,6 +229,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware.Autorest/help/Test-AzVMwareLocationQuotaAvailability.md b/src/VMware/VMware.Autorest/help/Test-AzVMwareLocationQuotaAvailability.md index e554fcddc8db..43b8a6934a8a 100644 --- a/src/VMware/VMware.Autorest/help/Test-AzVMwareLocationQuotaAvailability.md +++ b/src/VMware/VMware.Autorest/help/Test-AzVMwareLocationQuotaAvailability.md @@ -54,7 +54,7 @@ Accept wildcard characters: False ``` ### -Location -Azure region +The name of the Azure region. ```yaml Type: System.String @@ -70,6 +70,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware.Autorest/help/Test-AzVMwareLocationTrialAvailability.md b/src/VMware/VMware.Autorest/help/Test-AzVMwareLocationTrialAvailability.md index 44b8eaaae4e6..d481001cd71b 100644 --- a/src/VMware/VMware.Autorest/help/Test-AzVMwareLocationTrialAvailability.md +++ b/src/VMware/VMware.Autorest/help/Test-AzVMwareLocationTrialAvailability.md @@ -13,8 +13,9 @@ Return trial status for subscription by region ## SYNTAX ``` -Test-AzVMwareLocationTrialAvailability -Location [-SubscriptionId ] [-Name ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Test-AzVMwareLocationTrialAvailability -Location [-SubscriptionId ] [-Capacity ] + [-Family ] [-Name ] [-Size ] [-Tier ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] ``` ## DESCRIPTION @@ -37,6 +38,22 @@ Check trial availability ## PARAMETERS +### -Capacity +If the SKU supports scale out/in then the capacity integer should be included. +If scale out/in is not possible for the resource this may be omitted. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -53,8 +70,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Family +If the service has different generations of hardware, for the same SKU, then that can be captured here. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Location -Azure region +The name of the Azure region. ```yaml Type: System.String @@ -70,6 +102,25 @@ Accept wildcard characters: False ### -Name The name of the SKU. +E.g. +P3. +It is typically a letter+number code + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Size +The SKU size. +When the name field is the combination of tier and some other value, this would be the standalone code. ```yaml Type: System.String @@ -85,6 +136,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -98,6 +150,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Tier +This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/VMware/VMware.Autorest/help/Update-AzVMwareAuthorization.md b/src/VMware/VMware.Autorest/help/Update-AzVMwareAuthorization.md index 049bb6271980..3949868410b0 100644 --- a/src/VMware/VMware.Autorest/help/Update-AzVMwareAuthorization.md +++ b/src/VMware/VMware.Autorest/help/Update-AzVMwareAuthorization.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzVMwareAuthorization ## SYNOPSIS -Update an ExpressRoute Circuit Authorization in a private cloud +Update a ExpressRouteAuthorization ## SYNTAX @@ -32,7 +32,7 @@ Update-AzVMwareAuthorization -Name -PrivateCloudInputObject -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-LinkedCloud ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzVMwareCloudLink -InputObject [-LinkedCloud ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +Update-AzVMwareCloudLink -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` -Update-AzVMwareCloudLink -Name -PrivateCloudInputObject [-LinkedCloud ] +Update-AzVMwareCloudLink -Name -PrivateCloudInputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Update a cloud link in a private cloud +Update a CloudLink ## EXAMPLES ### Example 1: Update a cloud link in a private cloud ```powershell -Update-AzVMwareCloudLink -Name azps_test_cloudlink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -LinkedCloud "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group2/providers/Microsoft.AVS/privateClouds/azps_test_cloud2/" +Update-AzVMwareCloudLink -Name azps_test_cloudlink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group ``` ```output @@ -97,23 +97,8 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -LinkedCloud -Identifier of the other private cloud participating in the link. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Name -Name of the cloud link resource +Name of the cloud link. ```yaml Type: System.String @@ -158,7 +143,7 @@ Accept wildcard characters: False ``` ### -PrivateCloudName -The name of the private cloud. +Name of the private cloud ```yaml Type: System.String @@ -190,6 +175,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware.Autorest/help/Update-AzVMwareCluster.md b/src/VMware/VMware.Autorest/help/Update-AzVMwareCluster.md index 12b1fa1e1b1d..52a310769e6a 100644 --- a/src/VMware/VMware.Autorest/help/Update-AzVMwareCluster.md +++ b/src/VMware/VMware.Autorest/help/Update-AzVMwareCluster.md @@ -8,32 +8,35 @@ schema: 2.0.0 # Update-AzVMwareCluster ## SYNOPSIS -Update a cluster in a private cloud +Update a Cluster ## SYNTAX ### UpdateExpanded (Default) ``` Update-AzVMwareCluster -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-ClusterSize ] [-PropertiesHost ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-ClusterSize ] [-PropertiesHost ] [-SkuCapacity ] + [-SkuFamily ] [-SkuName ] [-SkuSize ] [-SkuTier ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzVMwareCluster -InputObject [-ClusterSize ] [-PropertiesHost ] + [-SkuCapacity ] [-SkuFamily ] [-SkuName ] [-SkuSize ] [-SkuTier ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` Update-AzVMwareCluster -Name -PrivateCloudInputObject [-ClusterSize ] - [-PropertiesHost ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [-PropertiesHost ] [-SkuCapacity ] [-SkuFamily ] [-SkuName ] + [-SkuSize ] [-SkuTier ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Update a cluster in a private cloud +Update a Cluster ## EXAMPLES @@ -127,7 +130,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -217,8 +220,89 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SkuCapacity +If the SKU supports scale out/in then the capacity integer should be included. +If scale out/in is not possible for the resource this may be omitted. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuFamily +If the service has different generations of hardware, for the same SKU, then that can be captured here. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuName +The name of the SKU. +E.g. +P3. +It is typically a letter+number code + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuSize +The SKU size. +When the name field is the combination of tier and some other value, this would be the standalone code. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuTier +This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware.Autorest/help/Update-AzVMwareDatastore.md b/src/VMware/VMware.Autorest/help/Update-AzVMwareDatastore.md index d9f33bdc82e5..426ea8d9ceca 100644 --- a/src/VMware/VMware.Autorest/help/Update-AzVMwareDatastore.md +++ b/src/VMware/VMware.Autorest/help/Update-AzVMwareDatastore.md @@ -8,49 +8,43 @@ schema: 2.0.0 # Update-AzVMwareDatastore ## SYNOPSIS -Update a datastore in a private cloud cluster +Update a Datastore ## SYNTAX ### UpdateExpanded (Default) ``` Update-AzVMwareDatastore -ClusterName -Name -PrivateCloudName - -ResourceGroupName [-SubscriptionId ] [-DiskPoolVolumeLunName ] - [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityClusterExpanded ``` -Update-AzVMwareDatastore -ClusterInputObject -Name - [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] - [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] +Update-AzVMwareDatastore -ClusterInputObject -Name [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzVMwareDatastore -InputObject [-DiskPoolVolumeLunName ] - [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +Update-AzVMwareDatastore -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` Update-AzVMwareDatastore -ClusterName -Name -PrivateCloudInputObject - [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] - [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Update a datastore in a private cloud cluster +Update a Datastore ## EXAMPLES ### Example 1: Update a datastore in a private cloud cluster. ```powershell -Update-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -NetAppVolumeId "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/azps_test_group/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1" +Update-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group ``` ```output @@ -94,7 +88,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -124,51 +118,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DiskPoolVolumeLunName -Name of the LUN to be used for datastore - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DiskPoolVolumeMountOption -Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DiskPoolVolumeTargetId -Azure resource ID of the iSCSI target - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -InputObject Identity Parameter @@ -185,7 +134,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the datastore in the private cloud cluster +Name of the datastore ```yaml Type: System.String @@ -199,21 +148,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -NetAppVolumeId -Azure resource ID of the NetApp volume - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -NoWait Run the command asynchronously @@ -277,6 +211,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware.Autorest/help/Update-AzVMwareGlobalReachConnection.md b/src/VMware/VMware.Autorest/help/Update-AzVMwareGlobalReachConnection.md index c09f0a3e33e4..858585fff342 100644 --- a/src/VMware/VMware.Autorest/help/Update-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware.Autorest/help/Update-AzVMwareGlobalReachConnection.md @@ -8,34 +8,31 @@ schema: 2.0.0 # Update-AzVMwareGlobalReachConnection ## SYNOPSIS -Update a global reach connection in a private cloud +Update a GlobalReachConnection ## SYNTAX ### UpdateExpanded (Default) ``` Update-AzVMwareGlobalReachConnection -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-AuthorizationKey ] [-ExpressRouteId ] - [-PeerExpressRouteCircuit ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzVMwareGlobalReachConnection -InputObject [-AuthorizationKey ] - [-ExpressRouteId ] [-PeerExpressRouteCircuit ] [-DefaultProfile ] [-AsJob] +Update-AzVMwareGlobalReachConnection -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` Update-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject - [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteCircuit ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Update a global reach connection in a private cloud +Update a GlobalReachConnection ## EXAMPLES @@ -69,21 +66,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -AuthorizationKey -Authorization key from the peer express route used for the global reach connection - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -100,21 +82,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ExpressRouteId -The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -InputObject Identity Parameter @@ -131,7 +98,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the global reach connection in the private cloud +Name of the global reach connection ```yaml Type: System.String @@ -160,21 +127,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -PeerExpressRouteCircuit -Identifier of the ExpressRoute Circuit to peer with in the global reach connection - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -PrivateCloudInputObject Identity Parameter @@ -191,7 +143,7 @@ Accept wildcard characters: False ``` ### -PrivateCloudName -The name of the private cloud. +Name of the private cloud ```yaml Type: System.String @@ -223,6 +175,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware.Autorest/help/Update-AzVMwareIscsiPath.md b/src/VMware/VMware.Autorest/help/Update-AzVMwareIscsiPath.md new file mode 100644 index 000000000000..64cda93570b2 --- /dev/null +++ b/src/VMware/VMware.Autorest/help/Update-AzVMwareIscsiPath.md @@ -0,0 +1,209 @@ +--- +external help file: +Module Name: Az.VMware +online version: https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareiscsipath +schema: 2.0.0 +--- + +# Update-AzVMwareIscsiPath + +## SYNOPSIS +Update a IscsiPath + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzVMwareIscsiPath -PrivateCloudName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzVMwareIscsiPath -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Update a IscsiPath + +## EXAMPLES + +### Example 1: Update a IscsiPath +```powershell +Update-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/iscsiPaths/default +Name : default +NetworkBlock : 192.168.0.0/24 +ProvisioningState : Succeeded +ResourceGroupName : group1 +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : Microsoft.AVS/privateClouds/iscsiPaths +``` + +Update a IscsiPath + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PrivateCloudName +Name of the private cloud + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + +## NOTES + +## RELATED LINKS + diff --git a/src/VMware/VMware.Autorest/help/Update-AzVMwarePlacementPolicy.md b/src/VMware/VMware.Autorest/help/Update-AzVMwarePlacementPolicy.md index dd7f7b3d4176..1faf05d7963e 100644 --- a/src/VMware/VMware.Autorest/help/Update-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware.Autorest/help/Update-AzVMwarePlacementPolicy.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzVMwarePlacementPolicy ## SYNOPSIS -Update a placement policy in a private cloud cluster +Update a PlacementPolicy ## SYNTAX @@ -44,7 +44,7 @@ Update-AzVMwarePlacementPolicy -ClusterName -Name -PrivateClou ``` ## DESCRIPTION -Update a placement policy in a private cloud cluster +Update a PlacementPolicy ## EXAMPLES @@ -137,7 +137,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -198,7 +198,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy +Name of the placement policy. ```yaml Type: System.String @@ -290,6 +290,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware.Autorest/help/Update-AzVMwarePrivateCloud.md b/src/VMware/VMware.Autorest/help/Update-AzVMwarePrivateCloud.md index 9c375827c3c2..a26f8132f4d0 100644 --- a/src/VMware/VMware.Autorest/help/Update-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware.Autorest/help/Update-AzVMwarePrivateCloud.md @@ -8,37 +8,33 @@ schema: 2.0.0 # Update-AzVMwarePrivateCloud ## SYNOPSIS -Update a private cloud +Update a PrivateCloud ## SYNTAX ### UpdateExpanded (Default) ``` Update-AzVMwarePrivateCloud -Name -ResourceGroupName [-SubscriptionId ] - [-EncryptionStatus ] [-ExtendedNetworkBlock ] [-IdentitySource ] - [-IdentityType ] [-Internet ] [-KeyVaultPropertyKeyName ] - [-KeyVaultPropertyKeyVaultUrl ] [-KeyVaultPropertyKeyVersion ] - [-ManagementClusterHost ] [-ManagementClusterSize ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-EnableSystemAssignedIdentity ] [-SkuCapacity ] [-SkuFamily ] [-SkuName ] + [-SkuSize ] [-SkuTier ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzVMwarePrivateCloud -InputObject [-EncryptionStatus ] - [-ExtendedNetworkBlock ] [-IdentitySource ] [-IdentityType ] - [-Internet ] [-KeyVaultPropertyKeyName ] [-KeyVaultPropertyKeyVaultUrl ] - [-KeyVaultPropertyKeyVersion ] [-ManagementClusterHost ] [-ManagementClusterSize ] +Update-AzVMwarePrivateCloud -InputObject [-EnableSystemAssignedIdentity ] + [-SkuCapacity ] [-SkuFamily ] [-SkuName ] [-SkuSize ] [-SkuTier ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Update a private cloud +Update a PrivateCloud ## EXAMPLES ### Example 1: Update size of private cloud by name ```powershell -Update-AzVMwarePrivateCloud -Name azps_test_cloud -ResourceGroupName azps_test_group -ManagementClusterSize 4 +Update-AzVMwarePrivateCloud -Name azps_test_cloud -ResourceGroupName azps_test_group ``` ```output @@ -51,7 +47,7 @@ Update size of private cloud by name ### Example 2: Update size of private cloud ```powershell -Get-AzVMwarePrivateCloud -ResourceGroupName azps_test_group -Name azps_test_cloud | Update-AzVMwarePrivateCloud -ManagementClusterSize 4 +Get-AzVMwarePrivateCloud -ResourceGroupName azps_test_group -Name azps_test_cloud | Update-AzVMwarePrivateCloud ``` ```output @@ -95,60 +91,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -EncryptionStatus -Status of customer managed encryption key +### -EnableSystemAssignedIdentity +Decides if enable a system assigned identity for the resource. ```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ExtendedNetworkBlock -Array of additional networks noncontiguous with networkBlock. -Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. -Make sure the CIDR format conforms to (A.B.C.D/X). - -```yaml -Type: System.String[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -IdentitySource -vCenter Single Sign On Identity Sources - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -IdentityType -The type of identity used for the private cloud. -The type 'SystemAssigned' refers to an implicitly created identity. -The type 'None' will remove any identities from the Private Cloud. - -```yaml -Type: System.String +Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] Parameter Sets: (All) Aliases: @@ -174,26 +121,26 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -Internet -Connectivity to internet is enabled or disabled +### -Name +Name of the private cloud ```yaml Type: System.String -Parameter Sets: (All) -Aliases: +Parameter Sets: UpdateExpanded +Aliases: PrivateCloudName -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -KeyVaultPropertyKeyName -The name of the key. +### -NoWait +Run the command asynchronously ```yaml -Type: System.String +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: @@ -204,26 +151,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -KeyVaultPropertyKeyVaultUrl -The URL of the vault. +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -KeyVaultPropertyKeyVersion -The version of the key. +### -SkuCapacity +If the SKU supports scale out/in then the capacity integer should be included. +If scale out/in is not possible for the resource this may be omitted. ```yaml -Type: System.String +Type: System.Int32 Parameter Sets: (All) Aliases: @@ -234,11 +183,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ManagementClusterHost -The hosts +### -SkuFamily +If the service has different generations of hardware, for the same SKU, then that can be captured here. ```yaml -Type: System.String[] +Type: System.String Parameter Sets: (All) Aliases: @@ -249,11 +198,14 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ManagementClusterSize -The cluster size +### -SkuName +The name of the SKU. +E.g. +P3. +It is typically a letter+number code ```yaml -Type: System.Int32 +Type: System.String Parameter Sets: (All) Aliases: @@ -264,26 +216,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Name -Name of the private cloud +### -SkuSize +The SKU size. +When the name field is the combination of tier and some other value, this would be the standalone code. ```yaml Type: System.String -Parameter Sets: UpdateExpanded -Aliases: PrivateCloudName - -Required: True -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -NoWait -Run the command asynchronously - -```yaml -Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: @@ -294,16 +232,15 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceGroupName -The name of the resource group. -The name is case insensitive. +### -SkuTier +This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -312,6 +249,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -326,7 +264,7 @@ Accept wildcard characters: False ``` ### -Tag -Resource tags +Resource tags. ```yaml Type: System.Collections.Hashtable diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareAddon.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareAddon.ps1 index 99b833816106..9121f4ec07fc 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareAddon.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareAddon.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get an addon by name in a private cloud +Get a Addon .Description -Get an addon by name in a private cloud +Get a Addon .Example Get-AzVMwareAddon -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareaddon #> @@ -100,7 +98,7 @@ param( [Alias('AddonName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the addon for the private cloud + # Name of the addon. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -124,6 +122,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareOperation.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareOperation.ps1 index c297743bffc0..656df6cab06c 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareOperation.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareOperation.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Lists all of the available operations +List the operations for the provider .Description -Lists all of the available operations +List the operations for the provider .Example {{ Add code here }} .Example diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptCmdlet.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptCmdlet.ps1 index e15e3c2a65cc..9526e3f25381 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptCmdlet.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptCmdlet.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Return information about a script cmdlet resource in a specific package on a private cloud +Get a ScriptCmdlet .Description -Return information about a script cmdlet resource in a specific package on a private cloud +Get a ScriptCmdlet .Example {{ Add code here }} .Example @@ -34,88 +34,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. SCRIPTPACKAGEINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwarescriptcmdlet #> @@ -129,7 +126,7 @@ param( [Alias('ScriptCmdletName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the script cmdlet resource in the script package in the private cloud + # Name of the script cmdlet. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -152,7 +149,7 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the script package in the private cloud + # Name of the script package. ${ScriptPackageName}, [Parameter(ParameterSetName='Get')] @@ -161,6 +158,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptExecution.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptExecution.ps1 index c0fdb2c9c577..ec7476930c12 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptExecution.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptExecution.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get an script execution by name in a private cloud +Get a ScriptExecution .Description -Get an script execution by name in a private cloud +Get a ScriptExecution .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwarescriptexecution #> @@ -100,7 +98,7 @@ param( [Alias('ScriptExecutionName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the user-invoked script execution resource + # Name of the script cmdlet. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -124,6 +122,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptExecutionLog.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptExecutionLog.ps1 index e5f7bf331f66..091a92303eca 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptExecutionLog.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptExecutionLog.ps1 @@ -36,60 +36,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwarescriptexecutionlog #> @@ -114,7 +112,7 @@ param( [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the user-invoked script execution resource + # Name of the script cmdlet. ${ScriptExecutionName}, [Parameter(ParameterSetName='Get')] @@ -122,6 +120,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptPackage.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptPackage.ps1 index 38912927a5d4..985da26339a4 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptPackage.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareScriptPackage.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a script package available to run on a private cloud +Get a ScriptPackage .Description -Get a script package available to run on a private cloud +Get a ScriptPackage .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwarescriptpackage #> @@ -100,7 +98,7 @@ param( [Alias('ScriptPackageName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the script package in the private cloud + # Name of the script package. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -124,6 +122,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetwork.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetwork.ps1 index da4069052745..1b98181fdd45 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetwork.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetwork.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a private cloud workload network. +Get a WorkloadNetwork .Description -Get a private cloud workload network. +Get a WorkloadNetwork .Example {{ Add code here }} .Example @@ -34,32 +34,31 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetwork #> @@ -88,6 +87,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDhcp.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDhcp.ps1 index 8279b5db996b..ed6d3bb6b421 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDhcp.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDhcp.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get dhcp by id in a private cloud workload network. +Get a WorkloadNetworkDhcp .Description -Get dhcp by id in a private cloud workload network. +Get a WorkloadNetworkDhcp .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. DHCPCONFIGURATIONINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworkdhcp #> @@ -98,8 +96,7 @@ param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DHCP identifier. - # Generally the same as the DHCP display name + # The ID of the DHCP configuration ${DhcpName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -124,6 +121,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDnsService.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDnsService.ps1 index 0a3429ba9a62..a9a765b02819 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDnsService.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDnsService.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a DNS service by id in a private cloud workload network. +Get a WorkloadNetworkDnsService .Description -Get a DNS service by id in a private cloud workload network. +Get a WorkloadNetworkDnsService .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworkdnsservice #> @@ -99,8 +97,7 @@ param( [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DNS Service identifier. - # Generally the same as the DNS Service's display name + # ID of the DNS service. ${DnsServiceName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -124,6 +121,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDnsZone.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDnsZone.ps1 index 44a86b564cd8..63672b024268 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDnsZone.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkDnsZone.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a DNS zone by id in a private cloud workload network. +Get a WorkloadNetworkDnsZone .Description -Get a DNS zone by id in a private cloud workload network. +Get a WorkloadNetworkDnsZone .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworkdnszone #> @@ -99,8 +97,7 @@ param( [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DNS Zone identifier. - # Generally the same as the DNS Zone's display name + # ID of the DNS zone. ${DnsZoneName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -124,6 +121,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkGateway.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkGateway.ps1 index de98ec2e5b1f..997a31c40b2e 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkGateway.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkGateway.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a gateway by id in a private cloud workload network. +Get a WorkloadNetworkGateway .Description -Get a gateway by id in a private cloud workload network. +Get a WorkloadNetworkGateway .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworkgateway #> @@ -99,8 +97,7 @@ param( [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Gateway identifier. - # Generally the same as the Gateway's display name + # The ID of the NSX Gateway ${GatewayName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -124,6 +121,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkPortMirroring.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkPortMirroring.ps1 index b4f3ec628e3d..27ee73744bd9 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkPortMirroring.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkPortMirroring.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a port mirroring profile by id in a private cloud workload network. +Get a WorkloadNetworkPortMirroring .Description -Get a port mirroring profile by id in a private cloud workload network. +Get a WorkloadNetworkPortMirroring .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworkportmirroring #> @@ -99,8 +97,7 @@ param( [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Port Mirroring identifier. - # Generally the same as the Port Mirroring display name + # ID of the NSX port mirroring profile. ${PortMirroringName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -124,6 +121,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkPublicIP.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkPublicIP.ps1 index 513735274427..01bdbdad6b64 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkPublicIP.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkPublicIP.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a Public IP Block by id in a private cloud workload network. +Get a WorkloadNetworkPublicIP .Description -Get a Public IP Block by id in a private cloud workload network. +Get a WorkloadNetworkPublicIP .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworkpublicip #> @@ -106,8 +104,7 @@ param( [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Public IP Block identifier. - # Generally the same as the Public IP Block's display name + # ID of the DNS zone. ${PublicIPName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -124,6 +121,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkSegment.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkSegment.ps1 index b0e3951719d3..93cbff6dc209 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkSegment.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkSegment.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a segment by id in a private cloud workload network. +Get a WorkloadNetworkSegment .Description -Get a segment by id in a private cloud workload network. +Get a WorkloadNetworkSegment .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworksegment #> @@ -114,8 +112,7 @@ param( [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Segment identifier. - # Generally the same as the Segment's display name + # The ID of the NSX Segment ${SegmentName}, [Parameter(ParameterSetName='Get')] @@ -124,6 +121,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkVM.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkVM.ps1 index 7aa1ade6b8d0..dcdc82f0ba34 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkVM.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkVM.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a virtual machine by id in a private cloud workload network. +Get a WorkloadNetworkVirtualMachine .Description -Get a virtual machine by id in a private cloud workload network. +Get a WorkloadNetworkVirtualMachine .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworkvm #> @@ -116,13 +114,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Virtual Machine identifier + # ID of the virtual machine. ${VirtualMachineId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkVMGroup.ps1 b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkVMGroup.ps1 index 889fa5863e11..718811589f40 100644 --- a/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkVMGroup.ps1 +++ b/src/VMware/VMware.Autorest/internal/Get-AzVMwareWorkloadNetworkVMGroup.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get a vm group by id in a private cloud workload network. +Get a WorkloadNetworkVMGroup .Description -Get a vm group by id in a private cloud workload network. +Get a WorkloadNetworkVMGroup .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworkvmgroup #> @@ -116,14 +114,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX VM Group identifier. - # Generally the same as the VM Group's display name + # ID of the VM group. ${VMGroupName}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Lock-AzVMwareVirtualMachineMovement.ps1 b/src/VMware/VMware.Autorest/internal/Lock-AzVMwareVirtualMachineMovement.ps1 index 6ab43ac45303..9ca5c92cf78d 100644 --- a/src/VMware/VMware.Autorest/internal/Lock-AzVMwareVirtualMachineMovement.ps1 +++ b/src/VMware/VMware.Autorest/internal/Lock-AzVMwareVirtualMachineMovement.ps1 @@ -34,88 +34,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/lock-azvmwarevirtualmachinemovement #> @@ -127,7 +124,7 @@ param( [Parameter(ParameterSetName='RestrictViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='RestrictExpanded', Mandatory)] @@ -148,6 +145,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='RestrictExpanded', Mandatory)] @@ -155,7 +153,7 @@ param( [Parameter(ParameterSetName='RestrictViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Virtual Machine identifier + # ID of the virtual machine. ${VirtualMachineId}, [Parameter(ParameterSetName='RestrictViaIdentityClusterExpanded', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareAddon.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareAddon.ps1 index 0e910d784ddb..56c6eb698087 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareAddon.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareAddon.ps1 @@ -16,11 +16,11 @@ <# .Synopsis -Create a addon in a private cloud +Create a Addon .Description -Create a addon in a private cloud +Create a Addon .Example -$data = New-AzVMwareAddonVrPropertiesObject -VrsCount 2 +$data = New-AzVMwareAddonVrPropertyObject -VrsCount 2 New-AzVMwareAddon -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -Property $data .Inputs @@ -33,63 +33,61 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. -PROPERTY : The properties of an addon resource - AddonType : The type of private cloud addon +PROPERTY : The resource-specific properties for this resource. + AddonType : Addon type .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareaddon #> @@ -102,13 +100,13 @@ param( [Alias('AddonName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the addon for the private cloud + # Name of the addon. ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -123,6 +121,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -140,7 +139,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties] - # The properties of an addon resource + # The resource-specific properties for this resource. ${Property}, [Parameter()] diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwarePrivateCloud.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwarePrivateCloud.ps1 index a9709e54cd6d..db3c31b5bb35 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwarePrivateCloud.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwarePrivateCloud.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a private cloud +Create a PrivateCloud .Description -Create a private cloud +Create a PrivateCloud .Example New-AzVMwarePrivateCloud -Name azps_test_cloud -ResourceGroupName azps_test_group -NetworkBlock 192.168.48.0/22 -Sku av36 -ManagementClusterSize 3 -Location australiaeast @@ -35,11 +35,11 @@ IDENTITYSOURCE : vCenter Single Sign On Identity Sources [BaseUserDn ]: The base distinguished name for users [Domain ]: The domain's dns name [Name ]: The name of the identity source - [Password ]: The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. + [Password ]: The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. [PrimaryServer ]: Primary server URL [SecondaryServer ]: Secondary server URL [Ssl ]: Protect LDAP communication using SSL certificate (LDAPS) - [Username ]: The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group + [Username ]: The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareprivatecloud #> @@ -66,12 +66,22 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] # The name of the SKU. + # E.g. + # P3. + # It is typically a letter+number code ${SkuName}, [Parameter()] @@ -93,6 +103,19 @@ param( # The primary availability zone for the private cloud ${AvailabilityZone}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Public", "Private")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The type of DNS zone to use. + ${DnsZoneType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Decides if enable a system assigned identity for the resource. + ${EnableSystemAssignedIdentity}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] @@ -105,8 +128,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String[]] # Array of additional networks noncontiguous with networkBlock. - # Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. - # Make sure the CIDR format conforms to (A.B.C.D/X). + # Networks must beunique and non-overlapping across VNet in your subscription, on-premise, andthis privateCloud networkBlock attribute. + # Make sure the CIDR format conforms to(A.B.C.D/X). ${ExtendedNetworkBlock}, [Parameter()] @@ -116,15 +139,6 @@ param( # vCenter Single Sign On Identity Sources ${IdentitySource}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SystemAssigned", "None")] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The type of identity used for the private cloud. - # The type 'SystemAssigned' refers to an implicitly created identity. - # The type 'None' will remove any identities from the Private Cloud. - ${IdentityType}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] @@ -150,12 +164,6 @@ param( # The version of the key. ${KeyVaultPropertyKeyVersion}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Resource location - ${Location}, - [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] @@ -172,29 +180,68 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # The block of addresses should be unique across VNet in your subscription as well as on-premise. - # Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22 - ${NetworkBlock}, + # Name of the vsan datastore associated with the cluster + ${ManagementClusterVsanDatastoreName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] + # The block of addresses should be unique across VNet in your subscription aswell as on-premise. + # Make sure the CIDR format is conformed to (A.B.C.D/X) whereA,B,C,D are between 0 and 255, and X is between 0 and 22 + ${NetworkBlock}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.Security.SecureString] # Optionally, set the NSX-T Manager password when the private cloud is created ${NsxtPassword}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags]))] + [System.Int32] + # If the SKU supports scale out/in then the capacity integer should be included. + # If scale out/in is not possible for the resource this may be omitted. + ${SkuCapacity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # If the service has different generations of hardware, for the same SKU, then that can be captured here. + ${SkuFamily}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The SKU size. + # When the name field is the combination of tier and some other value, this would be the standalone code. + ${SkuSize}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + ${SkuTier}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags]))] [System.Collections.Hashtable] - # Resource tags + # Resource tags. ${Tag}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] + [System.Security.SecureString] # Optionally, set the vCenter admin password when the private cloud is created ${VcenterPassword}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # Azure resource ID of the virtual network + ${VirtualNetworkId}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareScriptExecution.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareScriptExecution.ps1 index e22ffcdb547c..fa8a9d5fe72e 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareScriptExecution.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareScriptExecution.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a script execution in a private cloud +Create a ScriptExecution .Description -Create a script execution in a private cloud +Create a ScriptExecution .Example {{ Add code here }} .Example @@ -33,69 +33,67 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -HIDDENPARAMETER : Parameters that will be hidden/not visible to ARM, such as passwords and credentials +HIDDENPARAMETER : Parameters that will be hidden/not visible to ARM, such as passwords andcredentials Name : The parameter name - Type : The type of execution parameter + Type : script execution parameter type INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PARAMETER : Parameters the script will accept Name : The parameter name - Type : The type of execution parameter + Type : script execution parameter type PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwarescriptexecution #> @@ -108,13 +106,13 @@ param( [Alias('ScriptExecutionName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the user-invoked script execution resource + # Name of the script cmdlet. ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -129,6 +127,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -146,14 +145,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # Error message if the script was able to run, but if the script itself had errors or powershell threw an exception + # Error message if the script was able to run, but if the script itself haderrors or powershell threw an exception ${FailureReason}, [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameter[]] - # Parameters that will be hidden/not visible to ARM, such as passwords and credentials + # Parameters that will be hidden/not visible to ARM, such as passwords andcredentials ${HiddenParameter}, [Parameter()] diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDhcp.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDhcp.ps1 index deff86ebdb28..541ca88a0939 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDhcp.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDhcp.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create dhcp by id in a private cloud workload network. +Create a WorkloadNetworkDhcp .Description -Create dhcp by id in a private cloud workload network. +Create a WorkloadNetworkDhcp .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareworkloadnetworkdhcp #> @@ -99,8 +97,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DHCP identifier. - # Generally the same as the DHCP display name + # The ID of the DHCP configuration ${DhcpName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDnsService.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDnsService.ps1 index 84958c5eab13..74fd46ce1aef 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDnsService.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDnsService.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a DNS service by id in a private cloud workload network. +Create a WorkloadNetworkDnsService .Description -Create a DNS service by id in a private cloud workload network. +Create a WorkloadNetworkDnsService .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareworkloadnetworkdnsservice #> @@ -99,8 +97,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DNS Service identifier. - # Generally the same as the DNS Service's display name + # ID of the DNS service. ${DnsServiceName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDnsZone.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDnsZone.ps1 index 970c0c4a0b5f..48d9147954cd 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDnsZone.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkDnsZone.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a DNS zone by id in a private cloud workload network. +Create a WorkloadNetworkDnsZone .Description -Create a DNS zone by id in a private cloud workload network. +Create a WorkloadNetworkDnsZone .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareworkloadnetworkdnszone #> @@ -99,8 +97,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DNS Zone identifier. - # Generally the same as the DNS Zone's display name + # ID of the DNS zone. ${DnsZoneName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -150,7 +148,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.Int64] + [System.Int32] # Number of DNS Services using the DNS zone. ${DnsService}, diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkPortMirroring.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkPortMirroring.ps1 index 7cfb21179f63..9e6c9154b391 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkPortMirroring.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkPortMirroring.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a port mirroring profile by id in a private cloud workload network. +Create a WorkloadNetworkPortMirroring .Description -Create a port mirroring profile by id in a private cloud workload network. +Create a WorkloadNetworkPortMirroring .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareworkloadnetworkportmirroring #> @@ -99,8 +97,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Port Mirroring identifier. - # Generally the same as the Port Mirroring display name + # ID of the NSX port mirroring profile. ${PortMirroringName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkPublicIP.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkPublicIP.ps1 index dd2c65e5ff41..37af4e29d950 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkPublicIP.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkPublicIP.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a Public IP Block by id in a private cloud workload network. +Create a WorkloadNetworkPublicIP .Description -Create a Public IP Block by id in a private cloud workload network. +Create a WorkloadNetworkPublicIP .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareworkloadnetworkpublicip #> @@ -105,8 +103,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Public IP Block identifier. - # Generally the same as the Public IP Block's display name + # ID of the DNS zone. ${PublicIPName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkSegment.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkSegment.ps1 index 8f582f47ad83..322440f13e95 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkSegment.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkSegment.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a segment by id in a private cloud workload network. +Create a WorkloadNetworkSegment .Description -Create a segment by id in a private cloud workload network. +Create a WorkloadNetworkSegment .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareworkloadnetworksegment #> @@ -112,8 +110,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Segment identifier. - # Generally the same as the Segment's display name + # The ID of the NSX Segment ${SegmentName}, [Parameter(ParameterSetName='CreateExpanded')] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkVMGroup.ps1 b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkVMGroup.ps1 index 9bde5f2f3924..b66f6a33d768 100644 --- a/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkVMGroup.ps1 +++ b/src/VMware/VMware.Autorest/internal/New-AzVMwareWorkloadNetworkVMGroup.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a vm group by id in a private cloud workload network. +Create a WorkloadNetworkVMGroup .Description -Create a vm group by id in a private cloud workload network. +Create a WorkloadNetworkVMGroup .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareworkloadnetworkvmgroup #> @@ -113,14 +111,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX VM Group identifier. - # Generally the same as the VM Group's display name + # ID of the VM group. ${VMGroupName}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/ProxyCmdletDefinitions.ps1 b/src/VMware/VMware.Autorest/internal/ProxyCmdletDefinitions.ps1 index 7e9971543d40..69bf2168d2d6 100644 --- a/src/VMware/VMware.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/src/VMware/VMware.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Get an addon by name in a private cloud +Get a Addon .Description -Get an addon by name in a private cloud +Get a Addon .Example Get-AzVMwareAddon -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareaddon #> @@ -100,7 +98,7 @@ param( [Alias('AddonName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the addon for the private cloud + # Name of the addon. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -124,6 +122,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -243,9 +242,9 @@ end { <# .Synopsis -Lists all of the available operations +List the operations for the provider .Description -Lists all of the available operations +List the operations for the provider .Example {{ Add code here }} .Example @@ -353,9 +352,9 @@ end { <# .Synopsis -Return information about a script cmdlet resource in a specific package on a private cloud +Get a ScriptCmdlet .Description -Return information about a script cmdlet resource in a specific package on a private cloud +Get a ScriptCmdlet .Example {{ Add code here }} .Example @@ -371,88 +370,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. SCRIPTPACKAGEINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwarescriptcmdlet #> @@ -466,7 +462,7 @@ param( [Alias('ScriptCmdletName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the script cmdlet resource in the script package in the private cloud + # Name of the script cmdlet. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -489,7 +485,7 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the script package in the private cloud + # Name of the script package. ${ScriptPackageName}, [Parameter(ParameterSetName='Get')] @@ -498,6 +494,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -644,60 +641,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwarescriptexecutionlog #> @@ -722,7 +717,7 @@ param( [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the user-invoked script execution resource + # Name of the script cmdlet. ${ScriptExecutionName}, [Parameter(ParameterSetName='Get')] @@ -730,6 +725,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -857,9 +853,9 @@ end { <# .Synopsis -Get an script execution by name in a private cloud +Get a ScriptExecution .Description -Get an script execution by name in a private cloud +Get a ScriptExecution .Example {{ Add code here }} .Example @@ -875,60 +871,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwarescriptexecution #> @@ -941,7 +935,7 @@ param( [Alias('ScriptExecutionName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the user-invoked script execution resource + # Name of the script cmdlet. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -965,6 +959,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -1084,9 +1079,9 @@ end { <# .Synopsis -Get a script package available to run on a private cloud +Get a ScriptPackage .Description -Get a script package available to run on a private cloud +Get a ScriptPackage .Example {{ Add code here }} .Example @@ -1102,60 +1097,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwarescriptpackage #> @@ -1168,7 +1161,7 @@ param( [Alias('ScriptPackageName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the script package in the private cloud + # Name of the script package. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -1192,6 +1185,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -1311,9 +1305,9 @@ end { <# .Synopsis -Get dhcp by id in a private cloud workload network. +Get a WorkloadNetworkDhcp .Description -Get dhcp by id in a private cloud workload network. +Get a WorkloadNetworkDhcp .Example {{ Add code here }} .Example @@ -1329,60 +1323,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. DHCPCONFIGURATIONINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworkdhcp #> @@ -1393,8 +1385,7 @@ param( [Parameter(ParameterSetName='Get', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DHCP identifier. - # Generally the same as the DHCP display name + # The ID of the DHCP configuration ${DhcpName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -1419,6 +1410,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -1538,9 +1530,9 @@ end { <# .Synopsis -Get a DNS service by id in a private cloud workload network. +Get a WorkloadNetworkDnsService .Description -Get a DNS service by id in a private cloud workload network. +Get a WorkloadNetworkDnsService .Example {{ Add code here }} .Example @@ -1556,60 +1548,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworkdnsservice #> @@ -1621,8 +1611,7 @@ param( [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DNS Service identifier. - # Generally the same as the DNS Service's display name + # ID of the DNS service. ${DnsServiceName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -1646,6 +1635,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -1765,9 +1755,9 @@ end { <# .Synopsis -Get a DNS zone by id in a private cloud workload network. +Get a WorkloadNetworkDnsZone .Description -Get a DNS zone by id in a private cloud workload network. +Get a WorkloadNetworkDnsZone .Example {{ Add code here }} .Example @@ -1783,60 +1773,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworkdnszone #> @@ -1848,8 +1836,7 @@ param( [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DNS Zone identifier. - # Generally the same as the DNS Zone's display name + # ID of the DNS zone. ${DnsZoneName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -1873,6 +1860,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -1992,9 +1980,9 @@ end { <# .Synopsis -Get a gateway by id in a private cloud workload network. +Get a WorkloadNetworkGateway .Description -Get a gateway by id in a private cloud workload network. +Get a WorkloadNetworkGateway .Example {{ Add code here }} .Example @@ -2010,60 +1998,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworkgateway #> @@ -2075,8 +2061,7 @@ param( [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Gateway identifier. - # Generally the same as the Gateway's display name + # The ID of the NSX Gateway ${GatewayName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -2100,6 +2085,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -2219,9 +2205,9 @@ end { <# .Synopsis -Get a port mirroring profile by id in a private cloud workload network. +Get a WorkloadNetworkPortMirroring .Description -Get a port mirroring profile by id in a private cloud workload network. +Get a WorkloadNetworkPortMirroring .Example {{ Add code here }} .Example @@ -2237,60 +2223,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworkportmirroring #> @@ -2302,8 +2286,7 @@ param( [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Port Mirroring identifier. - # Generally the same as the Port Mirroring display name + # ID of the NSX port mirroring profile. ${PortMirroringName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -2327,6 +2310,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -2446,9 +2430,9 @@ end { <# .Synopsis -Get a Public IP Block by id in a private cloud workload network. +Get a WorkloadNetworkPublicIP .Description -Get a Public IP Block by id in a private cloud workload network. +Get a WorkloadNetworkPublicIP .Example {{ Add code here }} .Example @@ -2464,60 +2448,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworkpublicip #> @@ -2536,8 +2518,7 @@ param( [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Public IP Block identifier. - # Generally the same as the Public IP Block's display name + # ID of the DNS zone. ${PublicIPName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -2554,6 +2535,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -2673,9 +2655,9 @@ end { <# .Synopsis -Get a segment by id in a private cloud workload network. +Get a WorkloadNetworkSegment .Description -Get a segment by id in a private cloud workload network. +Get a WorkloadNetworkSegment .Example {{ Add code here }} .Example @@ -2691,60 +2673,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworksegment #> @@ -2771,8 +2751,7 @@ param( [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Segment identifier. - # Generally the same as the Segment's display name + # The ID of the NSX Segment ${SegmentName}, [Parameter(ParameterSetName='Get')] @@ -2781,6 +2760,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -2900,9 +2880,9 @@ end { <# .Synopsis -Get a vm group by id in a private cloud workload network. +Get a WorkloadNetworkVMGroup .Description -Get a vm group by id in a private cloud workload network. +Get a WorkloadNetworkVMGroup .Example {{ Add code here }} .Example @@ -2918,60 +2898,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworkvmgroup #> @@ -3000,14 +2978,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX VM Group identifier. - # Generally the same as the VM Group's display name + # ID of the VM group. ${VMGroupName}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -3127,9 +3105,9 @@ end { <# .Synopsis -Get a virtual machine by id in a private cloud workload network. +Get a WorkloadNetworkVirtualMachine .Description -Get a virtual machine by id in a private cloud workload network. +Get a WorkloadNetworkVirtualMachine .Example {{ Add code here }} .Example @@ -3145,60 +3123,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetworkvm #> @@ -3227,13 +3203,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Virtual Machine identifier + # ID of the virtual machine. ${VirtualMachineId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -3353,9 +3330,9 @@ end { <# .Synopsis -Get a private cloud workload network. +Get a WorkloadNetwork .Description -Get a private cloud workload network. +Get a WorkloadNetwork .Example {{ Add code here }} .Example @@ -3371,32 +3348,31 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareworkloadnetwork #> @@ -3425,6 +3401,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -3555,88 +3532,85 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CLUSTERINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/lock-azvmwarevirtualmachinemovement #> @@ -3648,7 +3622,7 @@ param( [Parameter(ParameterSetName='RestrictViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the cluster in the private cloud + # Name of the cluster ${ClusterName}, [Parameter(ParameterSetName='RestrictExpanded', Mandatory)] @@ -3669,6 +3643,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='RestrictExpanded', Mandatory)] @@ -3676,7 +3651,7 @@ param( [Parameter(ParameterSetName='RestrictViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Virtual Machine identifier + # ID of the virtual machine. ${VirtualMachineId}, [Parameter(ParameterSetName='RestrictViaIdentityClusterExpanded', Mandatory, ValueFromPipeline)] @@ -3821,11 +3796,11 @@ end { <# .Synopsis -Create a addon in a private cloud +Create a Addon .Description -Create a addon in a private cloud +Create a Addon .Example -$data = New-AzVMwareAddonVrPropertiesObject -VrsCount 2 +$data = New-AzVMwareAddonVrPropertyObject -VrsCount 2 New-AzVMwareAddon -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -Property $data .Inputs @@ -3838,63 +3813,61 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud - -PROPERTY : The properties of an addon resource - AddonType : The type of private cloud addon + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. + +PROPERTY : The resource-specific properties for this resource. + AddonType : Addon type .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareaddon #> @@ -3907,13 +3880,13 @@ param( [Alias('AddonName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the addon for the private cloud + # Name of the addon. ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -3928,6 +3901,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -3945,7 +3919,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IAddonProperties] - # The properties of an addon resource + # The resource-specific properties for this resource. ${Property}, [Parameter()] @@ -4064,9 +4038,9 @@ end { <# .Synopsis -Create a private cloud +Create a PrivateCloud .Description -Create a private cloud +Create a PrivateCloud .Example New-AzVMwarePrivateCloud -Name azps_test_cloud -ResourceGroupName azps_test_group -NetworkBlock 192.168.48.0/22 -Sku av36 -ManagementClusterSize 3 -Location australiaeast @@ -4083,11 +4057,11 @@ IDENTITYSOURCE : vCenter Single Sign On Identity Sources [BaseUserDn ]: The base distinguished name for users [Domain ]: The domain's dns name [Name ]: The name of the identity source - [Password ]: The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. + [Password ]: The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. [PrimaryServer ]: Primary server URL [SecondaryServer ]: Secondary server URL [Ssl ]: Protect LDAP communication using SSL certificate (LDAPS) - [Username ]: The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group + [Username ]: The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareprivatecloud #> @@ -4114,12 +4088,22 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] # The name of the SKU. + # E.g. + # P3. + # It is typically a letter+number code ${SkuName}, [Parameter()] @@ -4141,6 +4125,19 @@ param( # The primary availability zone for the private cloud ${AvailabilityZone}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Public", "Private")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The type of DNS zone to use. + ${DnsZoneType}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.Management.Automation.SwitchParameter] + # Decides if enable a system assigned identity for the resource. + ${EnableSystemAssignedIdentity}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] @@ -4153,8 +4150,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String[]] # Array of additional networks noncontiguous with networkBlock. - # Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. - # Make sure the CIDR format conforms to (A.B.C.D/X). + # Networks must beunique and non-overlapping across VNet in your subscription, on-premise, andthis privateCloud networkBlock attribute. + # Make sure the CIDR format conforms to(A.B.C.D/X). ${ExtendedNetworkBlock}, [Parameter()] @@ -4164,15 +4161,6 @@ param( # vCenter Single Sign On Identity Sources ${IdentitySource}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("SystemAssigned", "None")] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # The type of identity used for the private cloud. - # The type 'SystemAssigned' refers to an implicitly created identity. - # The type 'None' will remove any identities from the Private Cloud. - ${IdentityType}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] @@ -4198,12 +4186,6 @@ param( # The version of the key. ${KeyVaultPropertyKeyVersion}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] - # Resource location - ${Location}, - [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] @@ -4220,29 +4202,68 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # The block of addresses should be unique across VNet in your subscription as well as on-premise. - # Make sure the CIDR format is conformed to (A.B.C.D/X) where A,B,C,D are between 0 and 255, and X is between 0 and 22 - ${NetworkBlock}, + # Name of the vsan datastore associated with the cluster + ${ManagementClusterVsanDatastoreName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] + # The block of addresses should be unique across VNet in your subscription aswell as on-premise. + # Make sure the CIDR format is conformed to (A.B.C.D/X) whereA,B,C,D are between 0 and 255, and X is between 0 and 22 + ${NetworkBlock}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.Security.SecureString] # Optionally, set the NSX-T Manager password when the private cloud is created ${NsxtPassword}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IResourceTags]))] + [System.Int32] + # If the SKU supports scale out/in then the capacity integer should be included. + # If scale out/in is not possible for the resource this may be omitted. + ${SkuCapacity}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # If the service has different generations of hardware, for the same SKU, then that can be captured here. + ${SkuFamily}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The SKU size. + # When the name field is the combination of tier and some other value, this would be the standalone code. + ${SkuSize}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Free", "Basic", "Standard", "Premium")] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + ${SkuTier}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ITrackedResourceTags]))] [System.Collections.Hashtable] - # Resource tags + # Resource tags. ${Tag}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.String] + [System.Security.SecureString] # Optionally, set the vCenter admin password when the private cloud is created ${VcenterPassword}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # Azure resource ID of the virtual network + ${VirtualNetworkId}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -4357,9 +4378,9 @@ end { <# .Synopsis -Create a script execution in a private cloud +Create a ScriptExecution .Description -Create a script execution in a private cloud +Create a ScriptExecution .Example {{ Add code here }} .Example @@ -4374,69 +4395,67 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -HIDDENPARAMETER : Parameters that will be hidden/not visible to ARM, such as passwords and credentials +HIDDENPARAMETER : Parameters that will be hidden/not visible to ARM, such as passwords andcredentials Name : The parameter name - Type : The type of execution parameter + Type : script execution parameter type INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PARAMETER : Parameters the script will accept Name : The parameter name - Type : The type of execution parameter + Type : script execution parameter type PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwarescriptexecution #> @@ -4449,13 +4468,13 @@ param( [Alias('ScriptExecutionName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the user-invoked script execution resource + # Name of the script cmdlet. ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # The name of the private cloud. + # Name of the private cloud ${PrivateCloudName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -4470,6 +4489,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -4487,14 +4507,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] - # Error message if the script was able to run, but if the script itself had errors or powershell threw an exception + # Error message if the script was able to run, but if the script itself haderrors or powershell threw an exception ${FailureReason}, [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptExecutionParameter[]] - # Parameters that will be hidden/not visible to ARM, such as passwords and credentials + # Parameters that will be hidden/not visible to ARM, such as passwords andcredentials ${HiddenParameter}, [Parameter()] @@ -4653,9 +4673,9 @@ end { <# .Synopsis -Create dhcp by id in a private cloud workload network. +Create a WorkloadNetworkDhcp .Description -Create dhcp by id in a private cloud workload network. +Create a WorkloadNetworkDhcp .Example {{ Add code here }} .Example @@ -4671,60 +4691,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareworkloadnetworkdhcp #> @@ -4736,8 +4754,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DHCP identifier. - # Generally the same as the DHCP display name + # The ID of the DHCP configuration ${DhcpName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -4758,6 +4775,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -4907,9 +4925,9 @@ end { <# .Synopsis -Create a DNS service by id in a private cloud workload network. +Create a WorkloadNetworkDnsService .Description -Create a DNS service by id in a private cloud workload network. +Create a WorkloadNetworkDnsService .Example {{ Add code here }} .Example @@ -4925,60 +4943,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareworkloadnetworkdnsservice #> @@ -4990,8 +5006,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DNS Service identifier. - # Generally the same as the DNS Service's display name + # ID of the DNS service. ${DnsServiceName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -5012,6 +5027,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -5180,9 +5196,9 @@ end { <# .Synopsis -Create a DNS zone by id in a private cloud workload network. +Create a WorkloadNetworkDnsZone .Description -Create a DNS zone by id in a private cloud workload network. +Create a WorkloadNetworkDnsZone .Example {{ Add code here }} .Example @@ -5198,60 +5214,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareworkloadnetworkdnszone #> @@ -5263,8 +5277,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DNS Zone identifier. - # Generally the same as the DNS Zone's display name + # ID of the DNS zone. ${DnsZoneName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -5285,6 +5298,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -5314,7 +5328,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.Int64] + [System.Int32] # Number of DNS Services using the DNS zone. ${DnsService}, @@ -5453,9 +5467,9 @@ end { <# .Synopsis -Create a port mirroring profile by id in a private cloud workload network. +Create a WorkloadNetworkPortMirroring .Description -Create a port mirroring profile by id in a private cloud workload network. +Create a WorkloadNetworkPortMirroring .Example {{ Add code here }} .Example @@ -5471,60 +5485,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareworkloadnetworkportmirroring #> @@ -5536,8 +5548,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Port Mirroring identifier. - # Generally the same as the Port Mirroring display name + # ID of the NSX port mirroring profile. ${PortMirroringName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -5558,6 +5569,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -5719,9 +5731,9 @@ end { <# .Synopsis -Create a Public IP Block by id in a private cloud workload network. +Create a WorkloadNetworkPublicIP .Description -Create a Public IP Block by id in a private cloud workload network. +Create a WorkloadNetworkPublicIP .Example {{ Add code here }} .Example @@ -5737,60 +5749,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareworkloadnetworkpublicip #> @@ -5808,8 +5818,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Public IP Block identifier. - # Generally the same as the Public IP Block's display name + # ID of the DNS zone. ${PublicIPName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] @@ -5824,6 +5833,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -5966,9 +5976,9 @@ end { <# .Synopsis -Create a segment by id in a private cloud workload network. +Create a WorkloadNetworkSegment .Description -Create a segment by id in a private cloud workload network. +Create a WorkloadNetworkSegment .Example {{ Add code here }} .Example @@ -5984,60 +5994,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareworkloadnetworksegment #> @@ -6062,8 +6070,7 @@ param( [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Segment identifier. - # Generally the same as the Segment's display name + # The ID of the NSX Segment ${SegmentName}, [Parameter(ParameterSetName='CreateExpanded')] @@ -6071,6 +6078,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -6232,9 +6240,9 @@ end { <# .Synopsis -Create a vm group by id in a private cloud workload network. +Create a WorkloadNetworkVMGroup .Description -Create a vm group by id in a private cloud workload network. +Create a WorkloadNetworkVMGroup .Example {{ Add code here }} .Example @@ -6250,60 +6258,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareworkloadnetworkvmgroup #> @@ -6329,14 +6335,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX VM Group identifier. - # Generally the same as the VM Group's display name + # ID of the VM group. ${VMGroupName}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -6486,9 +6492,9 @@ end { <# .Synopsis -Delete a addon in a private cloud +Delete a Addon .Description -Delete a addon in a private cloud +Delete a Addon .Example Remove-AzVMwareAddon -AddonType vr -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group @@ -6506,60 +6512,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareaddon #> @@ -6572,7 +6576,7 @@ param( [Alias('AddonName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the addon for the private cloud + # Name of the addon. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -6593,6 +6597,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -6729,9 +6734,9 @@ end { <# .Synopsis -Delete a private cloud +Delete a PrivateCloud .Description -Delete a private cloud +Delete a PrivateCloud .Example Remove-AzVMwarePrivateCloud -ResourceGroupName azps_test_group -Name azps_test_cloud @@ -6749,32 +6754,31 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareprivatecloud #> @@ -6801,6 +6805,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -6930,9 +6935,9 @@ end { <# .Synopsis -Cancel a ScriptExecution in a private cloud +Delete a ScriptExecution .Description -Cancel a ScriptExecution in a private cloud +Delete a ScriptExecution .Example {{ Add code here }} .Example @@ -6948,60 +6953,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwarescriptexecution #> @@ -7014,7 +7017,7 @@ param( [Alias('ScriptExecutionName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the user-invoked script execution resource + # Name of the script cmdlet. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -7035,6 +7038,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -7171,9 +7175,9 @@ end { <# .Synopsis -Delete dhcp by id in a private cloud workload network. +Delete a WorkloadNetworkDhcp .Description -Delete dhcp by id in a private cloud workload network. +Delete a WorkloadNetworkDhcp .Example {{ Add code here }} .Example @@ -7189,60 +7193,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareworkloadnetworkdhcp #> @@ -7254,8 +7256,7 @@ param( [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DHCP identifier. - # Generally the same as the DHCP display name + # The ID of the DHCP configuration ${DhcpName}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -7276,6 +7277,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -7412,9 +7414,9 @@ end { <# .Synopsis -Delete a DNS service by id in a private cloud workload network. +Delete a WorkloadNetworkDnsService .Description -Delete a DNS service by id in a private cloud workload network. +Delete a WorkloadNetworkDnsService .Example {{ Add code here }} .Example @@ -7430,60 +7432,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. DNSSERVICEINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareworkloadnetworkdnsservice #> @@ -7494,8 +7494,7 @@ param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DNS Service identifier. - # Generally the same as the DNS Service's display name + # ID of the DNS service. ${DnsServiceName}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -7517,6 +7516,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -7653,9 +7653,9 @@ end { <# .Synopsis -Delete a DNS zone by id in a private cloud workload network. +Delete a WorkloadNetworkDnsZone .Description -Delete a DNS zone by id in a private cloud workload network. +Delete a WorkloadNetworkDnsZone .Example {{ Add code here }} .Example @@ -7671,60 +7671,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. DNSZONEINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareworkloadnetworkdnszone #> @@ -7735,8 +7733,7 @@ param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DNS Zone identifier. - # Generally the same as the DNS Zone's display name + # ID of the DNS zone. ${DnsZoneName}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -7758,6 +7755,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -7894,9 +7892,9 @@ end { <# .Synopsis -Delete a port mirroring profile by id in a private cloud workload network. +Delete a WorkloadNetworkPortMirroring .Description -Delete a port mirroring profile by id in a private cloud workload network. +Delete a WorkloadNetworkPortMirroring .Example {{ Add code here }} .Example @@ -7912,60 +7910,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PORTMIRRORINGPROFILEINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareworkloadnetworkportmirroring #> @@ -7976,8 +7972,7 @@ param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Port Mirroring identifier. - # Generally the same as the Port Mirroring display name + # ID of the NSX port mirroring profile. ${PortMirroringName}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -7999,6 +7994,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -8135,9 +8131,9 @@ end { <# .Synopsis -Delete a Public IP Block by id in a private cloud workload network. +Delete a WorkloadNetworkPublicIP .Description -Delete a Public IP Block by id in a private cloud workload network. +Delete a WorkloadNetworkPublicIP .Example {{ Add code here }} .Example @@ -8153,60 +8149,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PUBLICIPINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareworkloadnetworkpublicip #> @@ -8224,8 +8218,7 @@ param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Public IP Block identifier. - # Generally the same as the Public IP Block's display name + # ID of the DNS zone. ${PublicIPName}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -8240,6 +8233,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -8376,9 +8370,9 @@ end { <# .Synopsis -Delete a segment by id in a private cloud workload network. +Delete a WorkloadNetworkSegment .Description -Delete a segment by id in a private cloud workload network. +Delete a WorkloadNetworkSegment .Example {{ Add code here }} .Example @@ -8394,60 +8388,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareworkloadnetworksegment #> @@ -8472,8 +8464,7 @@ param( [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Segment identifier. - # Generally the same as the Segment's display name + # The ID of the NSX Segment ${SegmentName}, [Parameter(ParameterSetName='Delete')] @@ -8481,6 +8472,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -8617,9 +8609,9 @@ end { <# .Synopsis -Delete a vm group by id in a private cloud workload network. +Delete a WorkloadNetworkVMGroup .Description -Delete a vm group by id in a private cloud workload network. +Delete a WorkloadNetworkVMGroup .Example {{ Add code here }} .Example @@ -8635,60 +8627,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. VMGROUPINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareworkloadnetworkvmgroup #> @@ -8715,13 +8705,13 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX VM Group identifier. - # Generally the same as the VM Group's display name + # ID of the VM group. ${VMGroupName}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -8858,9 +8848,9 @@ end { <# .Synopsis -Update dhcp by id in a private cloud workload network. +Update a WorkloadNetworkDhcp .Description -Update dhcp by id in a private cloud workload network. +Update a WorkloadNetworkDhcp .Example {{ Add code here }} .Example @@ -8876,60 +8866,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareworkloadnetworkdhcp #> @@ -8941,8 +8929,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DHCP identifier. - # Generally the same as the DHCP display name + # The ID of the DHCP configuration ${DhcpName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -8963,6 +8950,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -9112,9 +9100,9 @@ end { <# .Synopsis -Update a DNS service by id in a private cloud workload network. +Update a WorkloadNetworkDnsService .Description -Update a DNS service by id in a private cloud workload network. +Update a WorkloadNetworkDnsService .Example {{ Add code here }} .Example @@ -9130,60 +9118,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareworkloadnetworkdnsservice #> @@ -9195,8 +9181,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DNS Service identifier. - # Generally the same as the DNS Service's display name + # ID of the DNS service. ${DnsServiceName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -9217,6 +9202,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -9385,9 +9371,9 @@ end { <# .Synopsis -Update a DNS zone by id in a private cloud workload network. +Update a WorkloadNetworkDnsZone .Description -Update a DNS zone by id in a private cloud workload network. +Update a WorkloadNetworkDnsZone .Example {{ Add code here }} .Example @@ -9403,60 +9389,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareworkloadnetworkdnszone #> @@ -9468,8 +9452,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DNS Zone identifier. - # Generally the same as the DNS Zone's display name + # ID of the DNS zone. ${DnsZoneName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -9490,6 +9473,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -9519,7 +9503,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.Int64] + [System.Int32] # Number of DNS Services using the DNS zone. ${DnsService}, @@ -9658,9 +9642,9 @@ end { <# .Synopsis -Update a port mirroring profile by id in a private cloud workload network. +Update a WorkloadNetworkPortMirroring .Description -Update a port mirroring profile by id in a private cloud workload network. +Update a WorkloadNetworkPortMirroring .Example {{ Add code here }} .Example @@ -9676,60 +9660,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareworkloadnetworkportmirroring #> @@ -9741,8 +9723,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Port Mirroring identifier. - # Generally the same as the Port Mirroring display name + # ID of the NSX port mirroring profile. ${PortMirroringName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -9763,6 +9744,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -9924,9 +9906,9 @@ end { <# .Synopsis -Update a segment by id in a private cloud workload network. +Update a WorkloadNetworkSegment .Description -Update a segment by id in a private cloud workload network. +Update a WorkloadNetworkSegment .Example {{ Add code here }} .Example @@ -9942,60 +9924,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareworkloadnetworksegment #> @@ -10020,8 +10000,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Segment identifier. - # Generally the same as the Segment's display name + # The ID of the NSX Segment ${SegmentName}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -10029,6 +10008,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -10190,9 +10170,9 @@ end { <# .Synopsis -Update a vm group by id in a private cloud workload network. +Update a WorkloadNetworkVMGroup .Description -Update a vm group by id in a private cloud workload network. +Update a WorkloadNetworkVMGroup .Example {{ Add code here }} .Example @@ -10208,60 +10188,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareworkloadnetworkvmgroup #> @@ -10287,14 +10265,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX VM Group identifier. - # Generally the same as the VM Group's display name + # ID of the VM group. ${VMGroupName}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareAddon.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareAddon.ps1 index d4d5bf6f796a..c146670f2d57 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareAddon.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareAddon.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Delete a addon in a private cloud +Delete a Addon .Description -Delete a addon in a private cloud +Delete a Addon .Example Remove-AzVMwareAddon -AddonType vr -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group @@ -36,60 +36,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareaddon #> @@ -102,7 +100,7 @@ param( [Alias('AddonName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the addon for the private cloud + # Name of the addon. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -123,6 +121,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwarePrivateCloud.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwarePrivateCloud.ps1 index 678249604cbe..0162689d514f 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwarePrivateCloud.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwarePrivateCloud.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Delete a private cloud +Delete a PrivateCloud .Description -Delete a private cloud +Delete a PrivateCloud .Example Remove-AzVMwarePrivateCloud -ResourceGroupName azps_test_group -Name azps_test_cloud @@ -36,32 +36,31 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareprivatecloud #> @@ -88,6 +87,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareScriptExecution.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareScriptExecution.ps1 index 746cb19c158d..e4372a96adc4 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareScriptExecution.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareScriptExecution.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Cancel a ScriptExecution in a private cloud +Delete a ScriptExecution .Description -Cancel a ScriptExecution in a private cloud +Delete a ScriptExecution .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwarescriptexecution #> @@ -100,7 +98,7 @@ param( [Alias('ScriptExecutionName')] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # Name of the user-invoked script execution resource + # Name of the script cmdlet. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -121,6 +119,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDhcp.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDhcp.ps1 index 31ceb36abc22..f07d5f650c5b 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDhcp.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDhcp.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Delete dhcp by id in a private cloud workload network. +Delete a WorkloadNetworkDhcp .Description -Delete dhcp by id in a private cloud workload network. +Delete a WorkloadNetworkDhcp .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareworkloadnetworkdhcp #> @@ -99,8 +97,7 @@ param( [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DHCP identifier. - # Generally the same as the DHCP display name + # The ID of the DHCP configuration ${DhcpName}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDnsService.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDnsService.ps1 index b856dccb961f..3d32fe858d2e 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDnsService.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDnsService.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Delete a DNS service by id in a private cloud workload network. +Delete a WorkloadNetworkDnsService .Description -Delete a DNS service by id in a private cloud workload network. +Delete a WorkloadNetworkDnsService .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. DNSSERVICEINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareworkloadnetworkdnsservice #> @@ -98,8 +96,7 @@ param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DNS Service identifier. - # Generally the same as the DNS Service's display name + # ID of the DNS service. ${DnsServiceName}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDnsZone.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDnsZone.ps1 index 89efd5eebb6a..222db9990384 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDnsZone.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkDnsZone.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Delete a DNS zone by id in a private cloud workload network. +Delete a WorkloadNetworkDnsZone .Description -Delete a DNS zone by id in a private cloud workload network. +Delete a WorkloadNetworkDnsZone .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. DNSZONEINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareworkloadnetworkdnszone #> @@ -98,8 +96,7 @@ param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DNS Zone identifier. - # Generally the same as the DNS Zone's display name + # ID of the DNS zone. ${DnsZoneName}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkPortMirroring.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkPortMirroring.ps1 index 19f1e4505d03..75ff04d7d2ad 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkPortMirroring.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkPortMirroring.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Delete a port mirroring profile by id in a private cloud workload network. +Delete a WorkloadNetworkPortMirroring .Description -Delete a port mirroring profile by id in a private cloud workload network. +Delete a WorkloadNetworkPortMirroring .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PORTMIRRORINGPROFILEINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareworkloadnetworkportmirroring #> @@ -98,8 +96,7 @@ param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Port Mirroring identifier. - # Generally the same as the Port Mirroring display name + # ID of the NSX port mirroring profile. ${PortMirroringName}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkPublicIP.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkPublicIP.ps1 index 2f5ef1773a2a..d4e777fdf7e5 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkPublicIP.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkPublicIP.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Delete a Public IP Block by id in a private cloud workload network. +Delete a WorkloadNetworkPublicIP .Description -Delete a Public IP Block by id in a private cloud workload network. +Delete a WorkloadNetworkPublicIP .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PUBLICIPINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareworkloadnetworkpublicip #> @@ -105,8 +103,7 @@ param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Public IP Block identifier. - # Generally the same as the Public IP Block's display name + # ID of the DNS zone. ${PublicIPName}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkSegment.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkSegment.ps1 index 7cc6135dfd4b..d98da4f58f54 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkSegment.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkSegment.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Delete a segment by id in a private cloud workload network. +Delete a WorkloadNetworkSegment .Description -Delete a segment by id in a private cloud workload network. +Delete a WorkloadNetworkSegment .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareworkloadnetworksegment #> @@ -112,8 +110,7 @@ param( [Parameter(ParameterSetName='DeleteViaIdentityPrivateCloud', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Segment identifier. - # Generally the same as the Segment's display name + # The ID of the NSX Segment ${SegmentName}, [Parameter(ParameterSetName='Delete')] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkVMGroup.ps1 b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkVMGroup.ps1 index b5352aaa45aa..fd3ced5a927e 100644 --- a/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkVMGroup.ps1 +++ b/src/VMware/VMware.Autorest/internal/Remove-AzVMwareWorkloadNetworkVMGroup.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Delete a vm group by id in a private cloud workload network. +Delete a WorkloadNetworkVMGroup .Description -Delete a vm group by id in a private cloud workload network. +Delete a WorkloadNetworkVMGroup .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. VMGROUPINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareworkloadnetworkvmgroup #> @@ -114,13 +112,13 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX VM Group identifier. - # Generally the same as the VM Group's display name + # ID of the VM group. ${VMGroupName}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDhcp.ps1 b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDhcp.ps1 index 11426d3a5868..dad594e00500 100644 --- a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDhcp.ps1 +++ b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDhcp.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Update dhcp by id in a private cloud workload network. +Update a WorkloadNetworkDhcp .Description -Update dhcp by id in a private cloud workload network. +Update a WorkloadNetworkDhcp .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareworkloadnetworkdhcp #> @@ -99,8 +97,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DHCP identifier. - # Generally the same as the DHCP display name + # The ID of the DHCP configuration ${DhcpName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDnsService.ps1 b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDnsService.ps1 index 74867998fa79..088274969393 100644 --- a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDnsService.ps1 +++ b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDnsService.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Update a DNS service by id in a private cloud workload network. +Update a WorkloadNetworkDnsService .Description -Update a DNS service by id in a private cloud workload network. +Update a WorkloadNetworkDnsService .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareworkloadnetworkdnsservice #> @@ -99,8 +97,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DNS Service identifier. - # Generally the same as the DNS Service's display name + # ID of the DNS service. ${DnsServiceName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDnsZone.ps1 b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDnsZone.ps1 index 874fe51f3981..c8b1d6af9186 100644 --- a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDnsZone.ps1 +++ b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkDnsZone.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Update a DNS zone by id in a private cloud workload network. +Update a WorkloadNetworkDnsZone .Description -Update a DNS zone by id in a private cloud workload network. +Update a WorkloadNetworkDnsZone .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareworkloadnetworkdnszone #> @@ -99,8 +97,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX DNS Zone identifier. - # Generally the same as the DNS Zone's display name + # ID of the DNS zone. ${DnsZoneName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -150,7 +148,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] - [System.Int64] + [System.Int32] # Number of DNS Services using the DNS zone. ${DnsService}, diff --git a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkPortMirroring.ps1 b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkPortMirroring.ps1 index bbac1be0cdf6..7645fde41f49 100644 --- a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkPortMirroring.ps1 +++ b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkPortMirroring.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Update a port mirroring profile by id in a private cloud workload network. +Update a WorkloadNetworkPortMirroring .Description -Update a port mirroring profile by id in a private cloud workload network. +Update a WorkloadNetworkPortMirroring .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareworkloadnetworkportmirroring #> @@ -99,8 +97,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Port Mirroring identifier. - # Generally the same as the Port Mirroring display name + # ID of the NSX port mirroring profile. ${PortMirroringName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkSegment.ps1 b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkSegment.ps1 index 43cd5f9b1e4f..ae030dd4f8d5 100644 --- a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkSegment.ps1 +++ b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkSegment.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Update a segment by id in a private cloud workload network. +Update a WorkloadNetworkSegment .Description -Update a segment by id in a private cloud workload network. +Update a WorkloadNetworkSegment .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareworkloadnetworksegment #> @@ -112,8 +110,7 @@ param( [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX Segment identifier. - # Generally the same as the Segment's display name + # The ID of the NSX Segment ${SegmentName}, [Parameter(ParameterSetName='UpdateExpanded')] @@ -121,6 +118,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkVMGroup.ps1 b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkVMGroup.ps1 index 4374f849a952..fcf8969611d4 100644 --- a/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkVMGroup.ps1 +++ b/src/VMware/VMware.Autorest/internal/Update-AzVMwareWorkloadNetworkVMGroup.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Update a vm group by id in a private cloud workload network. +Update a WorkloadNetworkVMGroup .Description -Update a vm group by id in a private cloud workload network. +Update a WorkloadNetworkVMGroup .Example {{ Add code here }} .Example @@ -34,60 +34,58 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. PRIVATECLOUDINPUTOBJECT : Identity Parameter - [AddonName ]: Name of the addon for the private cloud - [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization in the private cloud - [CloudLinkName ]: Name of the cloud link resource - [ClusterName ]: Name of the cluster in the private cloud - [DatastoreName ]: Name of the datastore in the private cloud cluster - [DhcpId ]: NSX DHCP identifier. Generally the same as the DHCP display name - [DnsServiceId ]: NSX DNS Service identifier. Generally the same as the DNS Service's display name - [DnsZoneId ]: NSX DNS Zone identifier. Generally the same as the DNS Zone's display name - [GatewayId ]: NSX Gateway identifier. Generally the same as the Gateway's display name - [GlobalReachConnectionName ]: Name of the global reach connection in the private cloud - [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site in the private cloud + [AddonName ]: Name of the addon. + [AuthorizationName ]: Name of the ExpressRoute Circuit Authorization + [CloudLinkName ]: Name of the cloud link. + [ClusterName ]: Name of the cluster + [DatastoreName ]: Name of the datastore + [DhcpId ]: The ID of the DHCP configuration + [DnsServiceId ]: ID of the DNS service. + [DnsZoneId ]: ID of the DNS zone. + [GatewayId ]: The ID of the NSX Gateway + [GlobalReachConnectionName ]: Name of the global reach connection + [HcxEnterpriseSiteName ]: Name of the HCX Enterprise Site [Id ]: Resource identity path - [Location ]: Azure region - [PlacementPolicyName ]: Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy - [PortMirroringId ]: NSX Port Mirroring identifier. Generally the same as the Port Mirroring display name + [Location ]: The name of the Azure region. + [PlacementPolicyName ]: Name of the placement policy. + [PortMirroringId ]: ID of the NSX port mirroring profile. [PrivateCloudName ]: Name of the private cloud - [PublicIPId ]: NSX Public IP Block identifier. Generally the same as the Public IP Block's display name + [PublicIPId ]: ID of the DNS zone. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [ScriptCmdletName ]: Name of the script cmdlet resource in the script package in the private cloud - [ScriptExecutionName ]: Name of the user-invoked script execution resource - [ScriptPackageName ]: Name of the script package in the private cloud - [SegmentId ]: NSX Segment identifier. Generally the same as the Segment's display name - [SubscriptionId ]: The ID of the target subscription. - [VMGroupId ]: NSX VM Group identifier. Generally the same as the VM Group's display name - [VirtualMachineId ]: Virtual Machine identifier - [WorkloadNetworkName ]: Name for the workload network in the private cloud + [ScriptCmdletName ]: Name of the script cmdlet. + [ScriptExecutionName ]: Name of the script cmdlet. + [ScriptPackageName ]: Name of the script package. + [SegmentId ]: The ID of the NSX Segment + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VMGroupId ]: ID of the VM group. + [VirtualMachineId ]: ID of the virtual machine. .Link https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareworkloadnetworkvmgroup #> @@ -113,14 +111,14 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Parameter(ParameterSetName='UpdateViaIdentityPrivateCloudExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Path')] [System.String] - # NSX VM Group identifier. - # Generally the same as the VM Group's display name + # ID of the VM group. ${VMGroupName}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] diff --git a/src/VMware/VMware.Autorest/test/AzVMwareAddon.Recording.json b/src/VMware/VMware.Autorest/test/AzVMwareAddon.Recording.json index 6e3d30fdf418..0dd7a9f7affd 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwareAddon.Recording.json +++ b/src/VMware/VMware.Autorest/test/AzVMwareAddon.Recording.json @@ -1,8 +1,8 @@ { - "AzVMwareAddon+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/addons/SRM?api-version=2023-03-01+1": { + "AzVMwareAddon+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/addons/SRM?api-version=2023-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/addons/SRM?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/addons/SRM?api-version=2023-09-01", "Content": "{\r\n \"properties\": {\r\n \"addonType\": \"SRM\",\r\n \"licenseKey\": \"YourLicenseKeyValue\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -16,30 +16,30 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:00:50 GMT" ] + "Date": [ "Mon, 27 May 2024 06:58:18 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "312" ] + "Content-Length": [ "411" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm\",\"name\":\"srm\",\"type\":\"Microsoft.AVS/privateClouds/addons\",\"properties\":{\"addonType\":\"SRM\",\"provisioningState\":\"Succeeded\",\"licenseKey\":\"41915178-A8FF-4A4D-B683-6D735AF5E3F5\"}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc\",\"name\":\"arc\",\"type\":\"Microsoft.AVS/privateClouds/addons\",\"properties\":{\"addonType\":\"Arc\",\"provisioningState\":\"Succeeded\",\"vCenter\":\"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter\"}}", "isContentBase64": false } }, - "AzVMwareAddon+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/addons/SRM?api-version=2023-03-01+2": { + "AzVMwareAddon+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/addons/SRM?api-version=2023-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/addons/SRM?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/addons/SRM?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "e945a9be-0ccb-4a46-b2c7-96c3875de8c9" ], + "x-ms-client-request-id": [ "3d48c545-4f8b-46e6-ab7d-11b6841c3f9e" ], "CommandName": [ "Az.VMware.internal\\New-AzVMwareAddon" ], "FullCommandName": [ "New-AzVMwareAddon_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -48,7 +48,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:01:21 GMT" ] + "Date": [ "Mon, 27 May 2024 06:58:48 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -58,20 +58,20 @@ "isContentBase64": false } }, - "AzVMwareAddon+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/addons/SRM?api-version=2023-03-01+3": { + "AzVMwareAddon+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/addons/SRM?api-version=2023-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/addons/SRM?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/addons/SRM?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "e945a9be-0ccb-4a46-b2c7-96c3875de8c9" ], + "x-ms-client-request-id": [ "3d48c545-4f8b-46e6-ab7d-11b6841c3f9e" ], "CommandName": [ "Az.VMware.internal\\New-AzVMwareAddon" ], "FullCommandName": [ "New-AzVMwareAddon_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -80,7 +80,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:01:21 GMT" ] + "Date": [ "Mon, 27 May 2024 06:58:48 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -90,19 +90,19 @@ "isContentBase64": false } }, - "AzVMwareAddon+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/addons?api-version=2023-03-01+4": { + "AzVMwareAddon+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/addons?api-version=2023-09-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/addons?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/addons?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "8e2cee77-8838-4c22-a58d-b12038072280" ], + "x-ms-client-request-id": [ "c2f540f9-3218-44e8-890c-183740d68531" ], "CommandName": [ "Az.VMware.internal\\Get-AzVMwareAddon" ], "FullCommandName": [ "Get-AzVMwareAddon_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -112,7 +112,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:01:21 GMT" ] + "Date": [ "Mon, 27 May 2024 06:58:48 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -122,19 +122,19 @@ "isContentBase64": false } }, - "AzVMwareAddon+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/addons/vr?api-version=2023-03-01+1": { + "AzVMwareAddon+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/addons/vr?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/addons/vr?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/addons/vr?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "c30ed3ac-951b-41b5-8524-d84c3c7a3c64" ], + "x-ms-client-request-id": [ "5f659d4b-49fa-438b-84e5-390bd3470250" ], "CommandName": [ "Az.VMware.internal\\Get-AzVMwareAddon" ], "FullCommandName": [ "Get-AzVMwareAddon_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -144,7 +144,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:01:21 GMT" ] + "Date": [ "Mon, 27 May 2024 06:58:48 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -154,10 +154,10 @@ "isContentBase64": false } }, - "AzVMwareAddon+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/addons/SRM?api-version=2023-03-01+1": { + "AzVMwareAddon+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/addons/SRM?api-version=2023-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/addons/SRM?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/addons/SRM?api-version=2023-09-01", "Content": "{\r\n \"properties\": {\r\n \"addonType\": \"SRM\",\r\n \"licenseKey\": \"YourLicenseKeyValue\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -171,30 +171,30 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:01:21 GMT" ] + "Date": [ "Mon, 27 May 2024 06:58:48 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "312" ] + "Content-Length": [ "411" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/srm\",\"name\":\"srm\",\"type\":\"Microsoft.AVS/privateClouds/addons\",\"properties\":{\"addonType\":\"SRM\",\"provisioningState\":\"Succeeded\",\"licenseKey\":\"41915178-A8FF-4A4D-B683-6D735AF5E3F5\"}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/addons/arc\",\"name\":\"arc\",\"type\":\"Microsoft.AVS/privateClouds/addons\",\"properties\":{\"addonType\":\"Arc\",\"provisioningState\":\"Succeeded\",\"vCenter\":\"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg_test/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vcenter\"}}", "isContentBase64": false } }, - "AzVMwareAddon+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/addons/SRM?api-version=2023-03-01+2": { + "AzVMwareAddon+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/addons/SRM?api-version=2023-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/addons/SRM?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/addons/SRM?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "cda76a16-d27f-498a-b991-b320d3046ba1" ], + "x-ms-client-request-id": [ "3fbe1ed8-8af6-4a93-b1f4-2239df9ed09d" ], "CommandName": [ "Az.VMware.internal\\New-AzVMwareAddon" ], "FullCommandName": [ "New-AzVMwareAddon_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -203,7 +203,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:01:51 GMT" ] + "Date": [ "Mon, 27 May 2024 06:59:19 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -213,20 +213,20 @@ "isContentBase64": false } }, - "AzVMwareAddon+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/addons/SRM?api-version=2023-03-01+3": { + "AzVMwareAddon+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/addons/SRM?api-version=2023-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/addons/SRM?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/addons/SRM?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "cda76a16-d27f-498a-b991-b320d3046ba1" ], + "x-ms-client-request-id": [ "3fbe1ed8-8af6-4a93-b1f4-2239df9ed09d" ], "CommandName": [ "Az.VMware.internal\\New-AzVMwareAddon" ], "FullCommandName": [ "New-AzVMwareAddon_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -235,7 +235,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:01:51 GMT" ] + "Date": [ "Mon, 27 May 2024 06:59:19 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -245,19 +245,19 @@ "isContentBase64": false } }, - "AzVMwareAddon+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/addons/vr?api-version=2023-03-01+1": { + "AzVMwareAddon+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/addons/vr?api-version=2023-09-01+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/addons/vr?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/addons/vr?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "9" ], - "x-ms-client-request-id": [ "1fc92227-f3c0-472d-adf9-b16d5b2c639a" ], + "x-ms-client-request-id": [ "25cb4cea-37c8-4a92-8979-ddb69ccd1cf3" ], "CommandName": [ "Az.VMware.internal\\Remove-AzVMwareAddon" ], "FullCommandName": [ "Remove-AzVMwareAddon_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -267,7 +267,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:01:51 GMT" ] + "Date": [ "Mon, 27 May 2024 06:59:19 GMT" ] }, "ContentHeaders": { "Content-Length": [ "0" ] diff --git a/src/VMware/VMware.Autorest/test/AzVMwareAddon.Tests.ps1 b/src/VMware/VMware.Autorest/test/AzVMwareAddon.Tests.ps1 index 2e4985465100..38f0f92ac3ad 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwareAddon.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/AzVMwareAddon.Tests.ps1 @@ -14,7 +14,7 @@ while(-not $mockingPath) { Describe 'AzVMwareAddon' { It 'List' { { - $config = New-AzVMwareAddonSrmPropertiesObject -LicenseKey "YourLicenseKeyValue" + $config = New-AzVMwareAddonSrmPropertyObject -LicenseKey "YourLicenseKeyValue" $config = New-AzVMwareAddon -PrivateCloudName $env.privateCloudName1 -ResourceGroupName $env.resourceGroup1 -Property $config $config.Name | Should -Be "SRM" @@ -32,7 +32,7 @@ Describe 'AzVMwareAddon' { It 'CreateExpanded' { { - $config = New-AzVMwareAddonSrmPropertiesObject -LicenseKey "YourLicenseKeyValue" + $config = New-AzVMwareAddonSrmPropertyObject -LicenseKey "YourLicenseKeyValue" $config = New-AzVMwareAddon -PrivateCloudName $env.privateCloudName2 -ResourceGroupName $env.resourceGroup2 -Property $config $config.Name | Should -Be "SRM" } | Should -Not -Throw diff --git a/src/VMware/VMware.Autorest/test/AzVMwareAddonSrmPropertiesObject.Tests.ps1 b/src/VMware/VMware.Autorest/test/AzVMwareAddonSrmPropertyObject.Tests.ps1 similarity index 78% rename from src/VMware/VMware.Autorest/test/AzVMwareAddonSrmPropertiesObject.Tests.ps1 rename to src/VMware/VMware.Autorest/test/AzVMwareAddonSrmPropertyObject.Tests.ps1 index a8f94e6835fc..e03365ede62a 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwareAddonSrmPropertiesObject.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/AzVMwareAddonSrmPropertyObject.Tests.ps1 @@ -3,7 +3,7 @@ if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) -$TestRecordingFile = Join-Path $PSScriptRoot 'AzVMwareAddonSrmPropertiesObject.Recording.json' +$TestRecordingFile = Join-Path $PSScriptRoot 'AzVMwareAddonSrmPropertyObject.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -11,10 +11,10 @@ while(-not $mockingPath) { } . ($mockingPath | Select-Object -First 1).FullName -Describe 'AzVMwareAddonSrmPropertiesObject' { +Describe 'AzVMwareAddonSrmPropertyObject' { It 'CreateExpanded' { { - $config = New-AzVMwareAddonSrmPropertiesObject -LicenseKey "YourLicenseKeyValue" + $config = New-AzVMwareAddonSrmPropertyObject -LicenseKey "YourLicenseKeyValue" $config.AddonType | Should -Be "SRM" } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/AzVMwareAddonVrPropertiesObject.Tests.ps1 b/src/VMware/VMware.Autorest/test/AzVMwareAddonVrPropertyObject.Tests.ps1 similarity index 81% rename from src/VMware/VMware.Autorest/test/AzVMwareAddonVrPropertiesObject.Tests.ps1 rename to src/VMware/VMware.Autorest/test/AzVMwareAddonVrPropertyObject.Tests.ps1 index 6d12568b2267..3370e2041cc3 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwareAddonVrPropertiesObject.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/AzVMwareAddonVrPropertyObject.Tests.ps1 @@ -3,7 +3,7 @@ if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) -$TestRecordingFile = Join-Path $PSScriptRoot 'AzVMwareAddonVrPropertiesObject.Recording.json' +$TestRecordingFile = Join-Path $PSScriptRoot 'AzVMwareAddonVrPropertyObject.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -11,10 +11,10 @@ while(-not $mockingPath) { } . ($mockingPath | Select-Object -First 1).FullName -Describe 'AzVMwareAddonVrPropertiesObject' { +Describe 'AzVMwareAddonVrPropertyObject' { It 'CreateExpanded' { { - $config = New-AzVMwareAddonVrPropertiesObject -VrsCount 2 + $config = New-AzVMwareAddonVrPropertyObject -VrsCount 2 $config.AddonType | Should -Be "VR" } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/AzVMwareAuthorization.Recording.json b/src/VMware/VMware.Autorest/test/AzVMwareAuthorization.Recording.json index 539372e036cb..d4768c957e4a 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwareAuthorization.Recording.json +++ b/src/VMware/VMware.Autorest/test/AzVMwareAuthorization.Recording.json @@ -1,8 +1,8 @@ { - "AzVMwareAuthorization+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/authorizations/authorization1?api-version=2023-03-01+1": { + "AzVMwareAuthorization+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/authorizations/authorization1?api-version=2023-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/authorizations/authorization1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/authorizations/authorization1?api-version=2023-09-01", "Content": "{\r\n}", "isContentBase64": false, "Headers": { @@ -16,7 +16,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:01:52 GMT" ] + "Date": [ "Mon, 27 May 2024 06:59:20 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -26,20 +26,20 @@ "isContentBase64": false } }, - "AzVMwareAuthorization+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/authorizations/authorization1?api-version=2023-03-01+2": { + "AzVMwareAuthorization+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/authorizations/authorization1?api-version=2023-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/authorizations/authorization1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/authorizations/authorization1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "11" ], - "x-ms-client-request-id": [ "17cc8c6b-a606-479b-9ab0-640b401c7d8b" ], + "x-ms-client-request-id": [ "695a6678-63cb-47fd-b87e-1234dd2d65ba" ], "CommandName": [ "New-AzVMwareAuthorization" ], "FullCommandName": [ "New-AzVMwareAuthorization_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -48,7 +48,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:02:23 GMT" ] + "Date": [ "Mon, 27 May 2024 06:59:50 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -58,20 +58,20 @@ "isContentBase64": false } }, - "AzVMwareAuthorization+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/authorizations/authorization1?api-version=2023-03-01+3": { + "AzVMwareAuthorization+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/authorizations/authorization1?api-version=2023-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/authorizations/authorization1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/authorizations/authorization1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "17cc8c6b-a606-479b-9ab0-640b401c7d8b" ], + "x-ms-client-request-id": [ "695a6678-63cb-47fd-b87e-1234dd2d65ba" ], "CommandName": [ "New-AzVMwareAuthorization" ], "FullCommandName": [ "New-AzVMwareAuthorization_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -80,7 +80,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:02:23 GMT" ] + "Date": [ "Mon, 27 May 2024 06:59:50 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -90,19 +90,19 @@ "isContentBase64": false } }, - "AzVMwareAuthorization+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/authorizations?api-version=2023-03-01+4": { + "AzVMwareAuthorization+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/authorizations?api-version=2023-09-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/authorizations?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/authorizations?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "24fc2b5d-3fdf-4ea4-9c62-31a5dc2cf40a" ], + "x-ms-client-request-id": [ "a25f6f3f-7d1c-49d3-bab2-1e12089da8d7" ], "CommandName": [ "Get-AzVMwareAuthorization" ], "FullCommandName": [ "Get-AzVMwareAuthorization_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -112,7 +112,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:02:23 GMT" ] + "Date": [ "Mon, 27 May 2024 06:59:50 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -122,19 +122,19 @@ "isContentBase64": false } }, - "AzVMwareAuthorization+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/authorizations/authorization1?api-version=2023-03-01+1": { + "AzVMwareAuthorization+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/authorizations/authorization1?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/authorizations/authorization1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/authorizations/authorization1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "32256120-169f-404a-8de2-88b6018814b9" ], + "x-ms-client-request-id": [ "cc8f3741-ab36-4bd2-af51-3672b5f39746" ], "CommandName": [ "Get-AzVMwareAuthorization" ], "FullCommandName": [ "Get-AzVMwareAuthorization_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -144,7 +144,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:02:23 GMT" ] + "Date": [ "Mon, 27 May 2024 06:59:50 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -154,10 +154,10 @@ "isContentBase64": false } }, - "AzVMwareAuthorization+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudaoz1/authorizations/authorization1?api-version=2023-03-01+1": { + "AzVMwareAuthorization+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudkojn/authorizations/authorization1?api-version=2023-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudaoz1/authorizations/authorization1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudkojn/authorizations/authorization1?api-version=2023-09-01", "Content": "{\r\n}", "isContentBase64": false, "Headers": { @@ -171,7 +171,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:02:23 GMT" ] + "Date": [ "Mon, 27 May 2024 06:59:50 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -181,20 +181,20 @@ "isContentBase64": false } }, - "AzVMwareAuthorization+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudaoz1/authorizations/authorization1?api-version=2023-03-01+2": { + "AzVMwareAuthorization+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudkojn/authorizations/authorization1?api-version=2023-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudaoz1/authorizations/authorization1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudkojn/authorizations/authorization1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "16" ], - "x-ms-client-request-id": [ "e64e184b-e247-4732-b001-222da1b5f373" ], + "x-ms-client-request-id": [ "f6a33965-4606-436b-be08-ddf4871c69fd" ], "CommandName": [ "New-AzVMwareAuthorization" ], "FullCommandName": [ "New-AzVMwareAuthorization_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -203,7 +203,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:02:53 GMT" ] + "Date": [ "Mon, 27 May 2024 07:00:21 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -213,20 +213,20 @@ "isContentBase64": false } }, - "AzVMwareAuthorization+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudaoz1/authorizations/authorization1?api-version=2023-03-01+3": { + "AzVMwareAuthorization+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudkojn/authorizations/authorization1?api-version=2023-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudaoz1/authorizations/authorization1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudkojn/authorizations/authorization1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "17" ], - "x-ms-client-request-id": [ "e64e184b-e247-4732-b001-222da1b5f373" ], + "x-ms-client-request-id": [ "f6a33965-4606-436b-be08-ddf4871c69fd" ], "CommandName": [ "New-AzVMwareAuthorization" ], "FullCommandName": [ "New-AzVMwareAuthorization_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -235,7 +235,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:02:53 GMT" ] + "Date": [ "Mon, 27 May 2024 07:00:21 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -245,19 +245,19 @@ "isContentBase64": false } }, - "AzVMwareAuthorization+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/authorizations/2hlsk5?api-version=2023-03-01+1": { + "AzVMwareAuthorization+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/authorizations/26fqx9?api-version=2023-09-01+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/authorizations/2hlsk5?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/authorizations/26fqx9?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "18" ], - "x-ms-client-request-id": [ "5a53dd0a-5fb8-4a34-ad70-8f789ad7ee2a" ], + "x-ms-client-request-id": [ "7a61b8b4-1503-49af-bbf5-bb10b1c25d76" ], "CommandName": [ "Remove-AzVMwareAuthorization" ], "FullCommandName": [ "Remove-AzVMwareAuthorization_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -267,7 +267,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:02:53 GMT" ] + "Date": [ "Mon, 27 May 2024 07:00:21 GMT" ] }, "ContentHeaders": { "Content-Length": [ "0" ] diff --git a/src/VMware/VMware.Autorest/test/AzVMwareCloudLink.Recording.json b/src/VMware/VMware.Autorest/test/AzVMwareCloudLink.Recording.json index 0c9808560af8..037d949795a4 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwareCloudLink.Recording.json +++ b/src/VMware/VMware.Autorest/test/AzVMwareCloudLink.Recording.json @@ -1,9 +1,9 @@ { - "AzVMwareCloudLink+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/cloudLinks/cloudLink1?api-version=2023-03-01+1": { + "AzVMwareCloudLink+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/cloudLinks/cloudLink1?api-version=2023-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/cloudLinks/cloudLink1?api-version=2023-03-01", - "Content": "{\r\n \"properties\": {\r\n \"linkedCloud\": \"/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/cloudLinks/cloudLink1?api-version=2023-09-01", + "Content": "{\r\n \"properties\": {\r\n \"linkedCloud\": \"/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -16,7 +16,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:02:53 GMT" ] + "Date": [ "Mon, 27 May 2024 07:00:21 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -26,20 +26,20 @@ "isContentBase64": false } }, - "AzVMwareCloudLink+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/cloudLinks/cloudLink1?api-version=2023-03-01+2": { + "AzVMwareCloudLink+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/cloudLinks/cloudLink1?api-version=2023-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/cloudLinks/cloudLink1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/cloudLinks/cloudLink1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "20" ], - "x-ms-client-request-id": [ "0925e6f9-bd79-48a0-ad19-54f1d5a2c77c" ], + "x-ms-client-request-id": [ "b80dc7ca-8e3d-46f3-9e1c-5a476420760e" ], "CommandName": [ "New-AzVMwareCloudLink" ], "FullCommandName": [ "New-AzVMwareCloudLink_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -48,7 +48,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:03:24 GMT" ] + "Date": [ "Mon, 27 May 2024 07:00:51 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -58,19 +58,19 @@ "isContentBase64": false } }, - "AzVMwareCloudLink+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/cloudLinks?api-version=2023-03-01+3": { + "AzVMwareCloudLink+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/cloudLinks?api-version=2023-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/cloudLinks?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/cloudLinks?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "21" ], - "x-ms-client-request-id": [ "01d54536-2324-4643-9d27-335b4ddb345f" ], + "x-ms-client-request-id": [ "6a4d6a4b-c974-481f-b580-1c30376e771d" ], "CommandName": [ "Get-AzVMwareCloudLink" ], "FullCommandName": [ "Get-AzVMwareCloudLink_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -80,7 +80,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:03:24 GMT" ] + "Date": [ "Mon, 27 May 2024 07:00:51 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -90,19 +90,19 @@ "isContentBase64": false } }, - "AzVMwareCloudLink+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/cloudLinks/cloudLink1?api-version=2023-03-01+1": { + "AzVMwareCloudLink+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/cloudLinks/cloudLink1?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/cloudLinks/cloudLink1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/cloudLinks/cloudLink1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "22" ], - "x-ms-client-request-id": [ "8e4a6d5c-9340-4529-9976-257d3503469a" ], + "x-ms-client-request-id": [ "225e58e3-f0f8-4c4c-b511-edc01ec5b94d" ], "CommandName": [ "Get-AzVMwareCloudLink" ], "FullCommandName": [ "Get-AzVMwareCloudLink_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -112,7 +112,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:03:24 GMT" ] + "Date": [ "Mon, 27 May 2024 07:00:51 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -122,11 +122,11 @@ "isContentBase64": false } }, - "AzVMwareCloudLink+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/cloudLinks/2hlsk5?api-version=2023-03-01+1": { + "AzVMwareCloudLink+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/cloudLinks/26fqx9?api-version=2023-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/cloudLinks/2hlsk5?api-version=2023-03-01", - "Content": "{\r\n \"properties\": {\r\n \"linkedCloud\": \"/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/cloudLinks/26fqx9?api-version=2023-09-01", + "Content": "{\r\n \"properties\": {\r\n \"linkedCloud\": \"/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -139,7 +139,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:03:24 GMT" ] + "Date": [ "Mon, 27 May 2024 07:00:51 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -149,20 +149,20 @@ "isContentBase64": false } }, - "AzVMwareCloudLink+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/cloudLinks/2hlsk5?api-version=2023-03-01+2": { + "AzVMwareCloudLink+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/cloudLinks/26fqx9?api-version=2023-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/cloudLinks/2hlsk5?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/cloudLinks/26fqx9?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "24" ], - "x-ms-client-request-id": [ "84f8b3c7-31cb-42e5-96da-1ae658aadcc9" ], + "x-ms-client-request-id": [ "b1b4a895-4cef-4cf6-b2e4-81122edae86d" ], "CommandName": [ "New-AzVMwareCloudLink" ], "FullCommandName": [ "New-AzVMwareCloudLink_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -171,7 +171,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:03:54 GMT" ] + "Date": [ "Mon, 27 May 2024 07:01:22 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -181,19 +181,19 @@ "isContentBase64": false } }, - "AzVMwareCloudLink+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/cloudLinks/2hlsk5?api-version=2023-03-01+1": { + "AzVMwareCloudLink+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/cloudLinks/26fqx9?api-version=2023-09-01+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/cloudLinks/2hlsk5?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/cloudLinks/26fqx9?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "25" ], - "x-ms-client-request-id": [ "e8e99875-25e1-485b-a581-75682700d9d2" ], + "x-ms-client-request-id": [ "b1a40e69-01c4-4632-9b67-7fe4f1dd2210" ], "CommandName": [ "Remove-AzVMwareCloudLink" ], "FullCommandName": [ "Remove-AzVMwareCloudLink_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -203,7 +203,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:03:54 GMT" ] + "Date": [ "Mon, 27 May 2024 07:01:22 GMT" ] }, "ContentHeaders": { "Content-Length": [ "0" ] diff --git a/src/VMware/VMware.Autorest/test/AzVMwareCluster.Recording.json b/src/VMware/VMware.Autorest/test/AzVMwareCluster.Recording.json index 62b461cdea28..102dbccd0208 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwareCluster.Recording.json +++ b/src/VMware/VMware.Autorest/test/AzVMwareCluster.Recording.json @@ -1,9 +1,9 @@ { - "AzVMwareCluster+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t?api-version=2023-03-01+1": { + "AzVMwareCluster+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq?api-version=2023-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t?api-version=2023-03-01", - "Content": "{\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"properties\": {\r\n \"clusterSize\": 3\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq?api-version=2023-09-01", + "Content": "{\r\n \"properties\": {\r\n \"clusterSize\": 3\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -16,30 +16,30 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:03:54 GMT" ] + "Date": [ "Mon, 27 May 2024 07:01:22 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "412" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"sku\":{\"name\":\"AV20\"},\"properties\":{\"clusterSize\":3,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"properties\":{\"clusterSize\":3,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\"]},\"sku\":{\"name\":\"AV20\"}}", "isContentBase64": false } }, - "AzVMwareCluster+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t?api-version=2023-03-01+2": { + "AzVMwareCluster+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq?api-version=2023-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "27" ], - "x-ms-client-request-id": [ "8d7c5088-8204-49c9-8b22-44b6b23508ae" ], + "x-ms-client-request-id": [ "723f72aa-487d-4154-bee9-c14e5271ab37" ], "CommandName": [ "New-AzVMwareCluster" ], "FullCommandName": [ "New-AzVMwareCluster_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -48,30 +48,30 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:04:25 GMT" ] + "Date": [ "Mon, 27 May 2024 07:01:53 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "448" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"sku\":{\"name\":\"AV20\"},\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]},\"sku\":{\"name\":\"AV20\"}}", "isContentBase64": false } }, - "AzVMwareCluster+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t?api-version=2023-03-01+3": { + "AzVMwareCluster+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq?api-version=2023-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "28" ], - "x-ms-client-request-id": [ "8d7c5088-8204-49c9-8b22-44b6b23508ae" ], + "x-ms-client-request-id": [ "723f72aa-487d-4154-bee9-c14e5271ab37" ], "CommandName": [ "New-AzVMwareCluster" ], "FullCommandName": [ "New-AzVMwareCluster_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -80,29 +80,29 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:04:25 GMT" ] + "Date": [ "Mon, 27 May 2024 07:01:53 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "448" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"sku\":{\"name\":\"AV20\"},\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]},\"sku\":{\"name\":\"AV20\"}}", "isContentBase64": false } }, - "AzVMwareCluster+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters?api-version=2023-03-01+4": { + "AzVMwareCluster+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters?api-version=2023-09-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "29" ], - "x-ms-client-request-id": [ "2592af76-c9ae-4d48-aa62-f391c39a08d2" ], + "x-ms-client-request-id": [ "3d0e1c64-35f2-49f7-b681-40a498303387" ], "CommandName": [ "Get-AzVMwareCluster" ], "FullCommandName": [ "Get-AzVMwareCluster_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -112,29 +112,29 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:04:25 GMT" ] + "Date": [ "Mon, 27 May 2024 07:01:53 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "424" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"sku\":{\"name\":\"AV20\"},\"properties\":{\"clusterSize\":3,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\"]}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"properties\":{\"clusterSize\":3,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\"]},\"sku\":{\"name\":\"AV20\"}}]}", "isContentBase64": false } }, - "AzVMwareCluster+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t?api-version=2023-03-01+1": { + "AzVMwareCluster+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "30" ], - "x-ms-client-request-id": [ "7f9099d7-4ce9-4b9c-b54d-70a73739b3c9" ], + "x-ms-client-request-id": [ "2322d753-9829-443d-8248-1f48c23f7d6a" ], "CommandName": [ "Get-AzVMwareCluster" ], "FullCommandName": [ "Get-AzVMwareCluster_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -144,21 +144,21 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:04:25 GMT" ] + "Date": [ "Mon, 27 May 2024 07:01:53 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "448" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"sku\":{\"name\":\"AV20\"},\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]},\"sku\":{\"name\":\"AV20\"}}", "isContentBase64": false } }, - "AzVMwareCluster+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01+1": { + "AzVMwareCluster+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01", - "Content": "{\r\n \"sku\": {\r\n \"name\": \"av36\"\r\n },\r\n \"properties\": {\r\n \"clusterSize\": 3\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01", + "Content": "{\r\n \"properties\": {\r\n \"clusterSize\": 3\r\n },\r\n \"sku\": {\r\n \"name\": \"av36\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -171,30 +171,30 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:04:25 GMT" ] + "Date": [ "Mon, 27 May 2024 07:01:53 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "412" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"sku\":{\"name\":\"AV20\"},\"properties\":{\"clusterSize\":3,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"properties\":{\"clusterSize\":3,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\"]},\"sku\":{\"name\":\"AV20\"}}", "isContentBase64": false } }, - "AzVMwareCluster+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01+2": { + "AzVMwareCluster+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "32" ], - "x-ms-client-request-id": [ "6629dc9e-b467-4f91-9680-f71a15413c80" ], + "x-ms-client-request-id": [ "9c76207d-03b3-4ea5-af53-409fbac01d25" ], "CommandName": [ "New-AzVMwareCluster" ], "FullCommandName": [ "New-AzVMwareCluster_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -203,30 +203,30 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:04:56 GMT" ] + "Date": [ "Mon, 27 May 2024 07:02:23 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "448" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"sku\":{\"name\":\"AV20\"},\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]},\"sku\":{\"name\":\"AV20\"}}", "isContentBase64": false } }, - "AzVMwareCluster+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01+3": { + "AzVMwareCluster+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "33" ], - "x-ms-client-request-id": [ "6629dc9e-b467-4f91-9680-f71a15413c80" ], + "x-ms-client-request-id": [ "9c76207d-03b3-4ea5-af53-409fbac01d25" ], "CommandName": [ "New-AzVMwareCluster" ], "FullCommandName": [ "New-AzVMwareCluster_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -235,21 +235,21 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:04:56 GMT" ] + "Date": [ "Mon, 27 May 2024 07:02:23 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "448" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"sku\":{\"name\":\"AV20\"},\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]},\"sku\":{\"name\":\"AV20\"}}", "isContentBase64": false } }, - "AzVMwareCluster+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01+1": { + "AzVMwareCluster+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01", - "Content": "{\r\n \"sku\": {\r\n \"name\": \"av36\"\r\n },\r\n \"properties\": {\r\n \"clusterSize\": 3\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01", + "Content": "{\r\n \"properties\": {\r\n \"clusterSize\": 3\r\n },\r\n \"sku\": {\r\n \"name\": \"av36\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -262,30 +262,30 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:04:56 GMT" ] + "Date": [ "Mon, 27 May 2024 07:02:23 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "412" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"sku\":{\"name\":\"AV20\"},\"properties\":{\"clusterSize\":3,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"properties\":{\"clusterSize\":3,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\"]},\"sku\":{\"name\":\"AV20\"}}", "isContentBase64": false } }, - "AzVMwareCluster+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01+2": { + "AzVMwareCluster+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "35" ], - "x-ms-client-request-id": [ "1b45113c-f0e1-473e-9869-d7cc5344de2a" ], + "x-ms-client-request-id": [ "b06ce854-ea4f-4474-8955-7d1e06723846" ], "CommandName": [ "New-AzVMwareCluster" ], "FullCommandName": [ "New-AzVMwareCluster_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -294,30 +294,30 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:05:26 GMT" ] + "Date": [ "Mon, 27 May 2024 07:02:53 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "448" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"sku\":{\"name\":\"AV20\"},\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]},\"sku\":{\"name\":\"AV20\"}}", "isContentBase64": false } }, - "AzVMwareCluster+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01+3": { + "AzVMwareCluster+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "36" ], - "x-ms-client-request-id": [ "1b45113c-f0e1-473e-9869-d7cc5344de2a" ], + "x-ms-client-request-id": [ "b06ce854-ea4f-4474-8955-7d1e06723846" ], "CommandName": [ "New-AzVMwareCluster" ], "FullCommandName": [ "New-AzVMwareCluster_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -326,20 +326,20 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:05:26 GMT" ] + "Date": [ "Mon, 27 May 2024 07:02:53 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "448" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"sku\":{\"name\":\"AV20\"},\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]},\"sku\":{\"name\":\"AV20\"}}", "isContentBase64": false } }, - "AzVMwareCluster+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01+4": { + "AzVMwareCluster+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01+4": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01", "Content": "{\r\n \"properties\": {\r\n \"clusterSize\": 4\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -353,29 +353,29 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:05:26 GMT" ] + "Date": [ "Mon, 27 May 2024 07:02:53 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "448" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"sku\":{\"name\":\"AV20\"},\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]},\"sku\":{\"name\":\"AV20\"}}", "isContentBase64": false } }, - "AzVMwareCluster+[NoContext]+UpdateExpanded+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01+5": { + "AzVMwareCluster+[NoContext]+UpdateExpanded+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01+5": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "38" ], - "x-ms-client-request-id": [ "bf45bfc1-d0b3-46d9-89aa-2c5469bf5ce1" ], + "x-ms-client-request-id": [ "f50c3232-2596-472a-acb0-cd7de41344af" ], "CommandName": [ "Remove-AzVMwareCluster" ], "FullCommandName": [ "Remove-AzVMwareCluster_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -385,7 +385,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:05:26 GMT" ] + "Date": [ "Mon, 27 May 2024 07:02:53 GMT" ] }, "ContentHeaders": { "Content-Length": [ "0" ] @@ -394,19 +394,19 @@ "isContentBase64": false } }, - "AzVMwareCluster+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01+1": { + "AzVMwareCluster+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel/clusters/5krpza?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98/clusters/0vmczr?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "39" ], - "x-ms-client-request-id": [ "8bbd6d32-3dbf-4bde-a562-cdb8e9e84912" ], + "x-ms-client-request-id": [ "d54489c9-c185-46a2-b0db-192c81bf22ec" ], "CommandName": [ "Remove-AzVMwareCluster" ], "FullCommandName": [ "Remove-AzVMwareCluster_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -416,7 +416,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:05:26 GMT" ] + "Date": [ "Mon, 27 May 2024 07:02:53 GMT" ] }, "ContentHeaders": { "Content-Length": [ "0" ] diff --git a/src/VMware/VMware.Autorest/test/AzVMwareDatastore.Recording.json b/src/VMware/VMware.Autorest/test/AzVMwareDatastore.Recording.json index 675c4f801c4d..a71738d73701 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwareDatastore.Recording.json +++ b/src/VMware/VMware.Autorest/test/AzVMwareDatastore.Recording.json @@ -1,8 +1,8 @@ { - "Get-AzVMwareDatastore+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/datastores/datastore1?api-version=2023-03-01+1": { + "Get-AzVMwareDatastore+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/datastores/datastore1?api-version=2023-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/datastores/datastore1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/datastores/datastore1?api-version=2023-09-01", "Content": "{\r\n \"properties\": {\r\n \"netAppVolume\": {\r\n \"id\": \"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -16,7 +16,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:05:26 GMT" ] + "Date": [ "Mon, 27 May 2024 07:02:53 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -26,20 +26,20 @@ "isContentBase64": false } }, - "Get-AzVMwareDatastore+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/datastores/datastore1?api-version=2023-03-01+2": { + "Get-AzVMwareDatastore+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/datastores/datastore1?api-version=2023-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/datastores/datastore1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/datastores/datastore1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "41" ], - "x-ms-client-request-id": [ "47b70b4f-cdd0-40c3-a601-ed1870277ffd" ], + "x-ms-client-request-id": [ "3ff2e4e5-dbae-4d3b-b8f7-58949902fb11" ], "CommandName": [ "New-AzVMwareDatastore" ], "FullCommandName": [ "New-AzVMwareDatastore_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -48,7 +48,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:05:57 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:24 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -58,20 +58,20 @@ "isContentBase64": false } }, - "Get-AzVMwareDatastore+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/datastores/datastore1?api-version=2023-03-01+3": { + "Get-AzVMwareDatastore+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/datastores/datastore1?api-version=2023-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/datastores/datastore1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/datastores/datastore1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "42" ], - "x-ms-client-request-id": [ "47b70b4f-cdd0-40c3-a601-ed1870277ffd" ], + "x-ms-client-request-id": [ "3ff2e4e5-dbae-4d3b-b8f7-58949902fb11" ], "CommandName": [ "New-AzVMwareDatastore" ], "FullCommandName": [ "New-AzVMwareDatastore_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -80,7 +80,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:05:57 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:24 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -90,19 +90,19 @@ "isContentBase64": false } }, - "Get-AzVMwareDatastore+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/datastores/datastore1?api-version=2023-03-01+1": { + "Get-AzVMwareDatastore+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/datastores/datastore1?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/datastores/datastore1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/datastores/datastore1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "43" ], - "x-ms-client-request-id": [ "d73b6f0c-4798-4ad6-861b-dde572262a70" ], + "x-ms-client-request-id": [ "839b20c5-ab83-470a-95ea-22e9a1b21572" ], "CommandName": [ "Get-AzVMwareDatastore" ], "FullCommandName": [ "Get-AzVMwareDatastore_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -112,7 +112,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:05:57 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:24 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -122,19 +122,19 @@ "isContentBase64": false } }, - "Get-AzVMwareDatastore+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/datastores?api-version=2023-03-01+1": { + "Get-AzVMwareDatastore+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/datastores?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/datastores?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/datastores?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "44" ], - "x-ms-client-request-id": [ "c751ca2a-0732-486a-9a3d-0c0d14ec7060" ], + "x-ms-client-request-id": [ "3f7be4cb-a468-4451-97ce-2ab3278956d3" ], "CommandName": [ "Get-AzVMwareDatastore" ], "FullCommandName": [ "Get-AzVMwareDatastore_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -144,29 +144,29 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:05:57 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:24 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "1133" ] + "Content-Length": [ "1660" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1\",\"name\":\"datastore1\",\"type\":\"Microsoft.AVS/privateClouds/clusters/datastores\",\"properties\":{\"provisioningState\":\"Succeeded\",\"netAppVolume\":{\"id\":\"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1\"},\"status\":\"Accessible\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore2\",\"name\":\"datastore2\",\"type\":\"Microsoft.AVS/privateClouds/clusters/datastores\",\"properties\":{\"provisioningState\":\"Succeeded\",\"diskPoolVolume\":{\"targetId\":\"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.StoragePool/diskPools/DiskPool1/targets/Target1\",\"lunName\":\"lun0\",\"mountOption\":\"MOUNT\",\"path\":\"/vmfs/devices/disks/naa.6001405f75f6bdf7f6f49db8b4b21723\"},\"status\":\"Accessible\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1\",\"name\":\"datastore1\",\"type\":\"Microsoft.AVS/privateClouds/clusters/datastores\",\"properties\":{\"provisioningState\":\"Succeeded\",\"netAppVolume\":{\"id\":\"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1\"},\"status\":\"Accessible\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore2\",\"name\":\"datastore2\",\"type\":\"Microsoft.AVS/privateClouds/clusters/datastores\",\"properties\":{\"provisioningState\":\"Succeeded\",\"diskPoolVolume\":{\"targetId\":\"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.StoragePool/diskPools/DiskPool1/targets/Target1\",\"lunName\":\"lun0\",\"mountOption\":\"MOUNT\",\"path\":\"/vmfs/devices/disks/naa.6001405f75f6bdf7f6f49db8b4b21723\"},\"status\":\"Accessible\"}},{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore2\",\"name\":\"datastore2\",\"type\":\"Microsoft.AVS/privateClouds/clusters/datastores\",\"properties\":{\"provisioningState\":\"Succeeded\",\"elasticSanVolume\":{\"targetId\":\"/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/ResourceGroup1/providers/Microsoft.ElasticSan/elasticSans/ElasticSan1/volumeGroups/VolumeGroup1/volumes/Volume1\"},\"status\":\"Accessible\"}}]}", "isContentBase64": false } }, - "Get-AzVMwareDatastore+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/datastores/datastore1?api-version=2023-03-01+1": { + "Get-AzVMwareDatastore+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/datastores/datastore1?api-version=2023-09-01+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/datastores/datastore1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/datastores/datastore1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "45" ], - "x-ms-client-request-id": [ "2d474737-a0e9-48ed-ae6e-055808ea01f8" ], + "x-ms-client-request-id": [ "43dcb58f-a948-49a7-89db-d68fcd3c5fc4" ], "CommandName": [ "Remove-AzVMwareDatastore" ], "FullCommandName": [ "Remove-AzVMwareDatastore_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -176,7 +176,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:05:57 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:24 GMT" ] }, "ContentHeaders": { "Content-Length": [ "0" ] @@ -185,19 +185,19 @@ "isContentBase64": false } }, - "Get-AzVMwareDatastore+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/datastores/datastore1?api-version=2023-03-01+1": { + "Get-AzVMwareDatastore+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/datastores/datastore1?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/datastores/datastore1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/datastores/datastore1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "46" ], - "x-ms-client-request-id": [ "bcb83b2f-bf3c-4e9d-9f9c-9bbe68a860b6" ], + "x-ms-client-request-id": [ "6bbe0f16-2f27-4b1e-a45b-324bfd5b6e98" ], "CommandName": [ "Get-AzVMwareDatastore" ], "FullCommandName": [ "Get-AzVMwareDatastore_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -207,7 +207,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:05:57 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:24 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -217,19 +217,19 @@ "isContentBase64": false } }, - "Get-AzVMwareDatastore+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1?api-version=2023-03-01+2": { + "Get-AzVMwareDatastore+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1?api-version=2023-09-01+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/datastores/datastore1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "47" ], - "x-ms-client-request-id": [ "cfb4fbe3-47c1-4d05-9f59-1110ca2d0363" ], + "x-ms-client-request-id": [ "2ebca9b9-f9dc-4fa6-9fe8-046572841469" ], "CommandName": [ "Remove-AzVMwareDatastore" ], "FullCommandName": [ "Remove-AzVMwareDatastore_DeleteViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -239,7 +239,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:05:57 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:24 GMT" ] }, "ContentHeaders": { "Content-Length": [ "0" ] diff --git a/src/VMware/VMware.Autorest/test/AzVMwareGlobalReachConnection.Recording.json b/src/VMware/VMware.Autorest/test/AzVMwareGlobalReachConnection.Recording.json index de4883f38023..3ff3b53fed91 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwareGlobalReachConnection.Recording.json +++ b/src/VMware/VMware.Autorest/test/AzVMwareGlobalReachConnection.Recording.json @@ -1,17 +1,17 @@ { - "AzVMwareGlobalReachConnection+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/authorizations/l3cm9t?api-version=2023-03-01+1": { + "AzVMwareGlobalReachConnection+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/authorizations/z5ydkq?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/authorizations/l3cm9t?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/authorizations/z5ydkq?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "48" ], - "x-ms-client-request-id": [ "e4ababf3-4db7-4302-90c9-c67321623764" ], + "x-ms-client-request-id": [ "dc73934b-fdfb-4aba-942f-80b8ac931a05" ], "CommandName": [ "Get-AzVMwareAuthorization" ], "FullCommandName": [ "Get-AzVMwareAuthorization_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -21,7 +21,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:05:57 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:24 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -31,19 +31,19 @@ "isContentBase64": false } }, - "AzVMwareGlobalReachConnection+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudaoz1?api-version=2023-03-01+2": { + "AzVMwareGlobalReachConnection+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudkojn?api-version=2023-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudaoz1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudkojn?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "49" ], - "x-ms-client-request-id": [ "8274daff-d60c-4e0d-bb85-c036c5f82e62" ], + "x-ms-client-request-id": [ "1a54f132-157f-4cec-aab4-02b84f4ddf32" ], "CommandName": [ "Get-AzVMwarePrivateCloud" ], "FullCommandName": [ "Get-AzVMwarePrivateCloud_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -53,20 +53,20 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:05:57 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:24 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "1990" ] + "Content-Length": [ "2196" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"location\":\"eastus2\",\"tags\":{},\"sku\":{\"name\":\"AV36\"},\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\",\"hcxCloudManager\":\"https://192.168.50.4/\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"vcsa\":\"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"hcxCloudManager\":\"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"nsxtManagerIp\":\"192.168.50.3\",\"vcenterIp\":\"192.168.50.2\",\"hcxCloudManagerIp\":\"192.168.50.4\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", "isContentBase64": false } }, - "AzVMwareGlobalReachConnection+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections/2hlsk5?api-version=2023-03-01+3": { + "AzVMwareGlobalReachConnection+[NoContext]+List+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections/26fqx9?api-version=2023-09-01+3": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections/2hlsk5?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections/26fqx9?api-version=2023-09-01", "Content": "{\r\n \"properties\": {\r\n \"authorizationKey\": \"37b0db3b-3b17-4c7b-bf76-bf13b01bcadc\",\r\n \"peerExpressRouteCircuit\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -80,7 +80,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:05:57 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:24 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -90,20 +90,20 @@ "isContentBase64": false } }, - "AzVMwareGlobalReachConnection+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections/2hlsk5?api-version=2023-03-01+4": { + "AzVMwareGlobalReachConnection+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections/26fqx9?api-version=2023-09-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections/2hlsk5?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections/26fqx9?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "51" ], - "x-ms-client-request-id": [ "16f191c5-c320-4352-be13-4674deeea56a" ], + "x-ms-client-request-id": [ "2484e09e-e7b7-4808-a38e-448205f573ea" ], "CommandName": [ "New-AzVMwareGlobalReachConnection" ], "FullCommandName": [ "New-AzVMwareGlobalReachConnection_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -112,7 +112,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:06:28 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:55 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -122,20 +122,20 @@ "isContentBase64": false } }, - "AzVMwareGlobalReachConnection+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections/2hlsk5?api-version=2023-03-01+5": { + "AzVMwareGlobalReachConnection+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections/26fqx9?api-version=2023-09-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections/2hlsk5?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections/26fqx9?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "52" ], - "x-ms-client-request-id": [ "16f191c5-c320-4352-be13-4674deeea56a" ], + "x-ms-client-request-id": [ "2484e09e-e7b7-4808-a38e-448205f573ea" ], "CommandName": [ "New-AzVMwareGlobalReachConnection" ], "FullCommandName": [ "New-AzVMwareGlobalReachConnection_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -144,7 +144,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:06:28 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:55 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -154,19 +154,19 @@ "isContentBase64": false } }, - "AzVMwareGlobalReachConnection+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections?api-version=2023-03-01+6": { + "AzVMwareGlobalReachConnection+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections?api-version=2023-09-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "53" ], - "x-ms-client-request-id": [ "48b67ca0-a4fe-40a5-9371-c711f3258bfa" ], + "x-ms-client-request-id": [ "f467323f-84f2-4e4c-9a7a-eca1fdb1d587" ], "CommandName": [ "Get-AzVMwareGlobalReachConnection" ], "FullCommandName": [ "Get-AzVMwareGlobalReachConnection_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -176,7 +176,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:06:28 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:55 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -186,19 +186,19 @@ "isContentBase64": false } }, - "AzVMwareGlobalReachConnection+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections/2hlsk5?api-version=2023-03-01+1": { + "AzVMwareGlobalReachConnection+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections/26fqx9?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections/2hlsk5?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections/26fqx9?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "54" ], - "x-ms-client-request-id": [ "b534416b-d9c9-4283-924f-54345f521042" ], + "x-ms-client-request-id": [ "261934a7-efb2-49be-b050-381a278f96eb" ], "CommandName": [ "Get-AzVMwareGlobalReachConnection" ], "FullCommandName": [ "Get-AzVMwareGlobalReachConnection_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -208,7 +208,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:06:28 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:55 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -218,19 +218,19 @@ "isContentBase64": false } }, - "AzVMwareGlobalReachConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/authorizations/l3cm9t?api-version=2023-03-01+1": { + "AzVMwareGlobalReachConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/authorizations/z5ydkq?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/authorizations/l3cm9t?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/authorizations/z5ydkq?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "55" ], - "x-ms-client-request-id": [ "55c36a7c-025c-4462-8be7-89d5222dea10" ], + "x-ms-client-request-id": [ "e2c7fb8f-88c2-40df-adaf-357fd9cf0f83" ], "CommandName": [ "Get-AzVMwareAuthorization" ], "FullCommandName": [ "Get-AzVMwareAuthorization_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -240,7 +240,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:06:28 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:55 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -250,19 +250,19 @@ "isContentBase64": false } }, - "AzVMwareGlobalReachConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudaoz1?api-version=2023-03-01+2": { + "AzVMwareGlobalReachConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudkojn?api-version=2023-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudaoz1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudkojn?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "56" ], - "x-ms-client-request-id": [ "c4811e40-4814-41d0-b574-e0f5f3e15d65" ], + "x-ms-client-request-id": [ "f88b1908-2ae8-41a5-87d6-ff4fa42668bf" ], "CommandName": [ "Get-AzVMwarePrivateCloud" ], "FullCommandName": [ "Get-AzVMwarePrivateCloud_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -272,20 +272,20 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:06:28 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:55 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "1990" ] + "Content-Length": [ "2196" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"location\":\"eastus2\",\"tags\":{},\"sku\":{\"name\":\"AV36\"},\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\",\"hcxCloudManager\":\"https://192.168.50.4/\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"vcsa\":\"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"hcxCloudManager\":\"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"nsxtManagerIp\":\"192.168.50.3\",\"vcenterIp\":\"192.168.50.2\",\"hcxCloudManagerIp\":\"192.168.50.4\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", "isContentBase64": false } }, - "AzVMwareGlobalReachConnection+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections/p9uh7g?api-version=2023-03-01+3": { + "AzVMwareGlobalReachConnection+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections/ob3cse?api-version=2023-09-01+3": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections/p9uh7g?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections/ob3cse?api-version=2023-09-01", "Content": "{\r\n \"properties\": {\r\n \"authorizationKey\": \"37b0db3b-3b17-4c7b-bf76-bf13b01bcadc\",\r\n \"peerExpressRouteCircuit\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -299,7 +299,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:06:28 GMT" ] + "Date": [ "Mon, 27 May 2024 07:03:55 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -309,20 +309,20 @@ "isContentBase64": false } }, - "AzVMwareGlobalReachConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections/p9uh7g?api-version=2023-03-01+4": { + "AzVMwareGlobalReachConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections/ob3cse?api-version=2023-09-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections/p9uh7g?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections/ob3cse?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "58" ], - "x-ms-client-request-id": [ "46df967c-b7a5-4b5c-993c-e6badef79cb2" ], + "x-ms-client-request-id": [ "c9d00c7d-7ada-4244-ae86-83473037dc29" ], "CommandName": [ "New-AzVMwareGlobalReachConnection" ], "FullCommandName": [ "New-AzVMwareGlobalReachConnection_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -331,7 +331,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:06:58 GMT" ] + "Date": [ "Mon, 27 May 2024 07:04:25 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -341,20 +341,20 @@ "isContentBase64": false } }, - "AzVMwareGlobalReachConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections/p9uh7g?api-version=2023-03-01+5": { + "AzVMwareGlobalReachConnection+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections/ob3cse?api-version=2023-09-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections/p9uh7g?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections/ob3cse?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "59" ], - "x-ms-client-request-id": [ "46df967c-b7a5-4b5c-993c-e6badef79cb2" ], + "x-ms-client-request-id": [ "c9d00c7d-7ada-4244-ae86-83473037dc29" ], "CommandName": [ "New-AzVMwareGlobalReachConnection" ], "FullCommandName": [ "New-AzVMwareGlobalReachConnection_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -363,7 +363,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:06:58 GMT" ] + "Date": [ "Mon, 27 May 2024 07:04:25 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -373,19 +373,19 @@ "isContentBase64": false } }, - "AzVMwareGlobalReachConnection+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections/p9uh7g?api-version=2023-03-01+1": { + "AzVMwareGlobalReachConnection+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections/ob3cse?api-version=2023-09-01+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/globalReachConnections/p9uh7g?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/globalReachConnections/ob3cse?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "60" ], - "x-ms-client-request-id": [ "05a1916b-7d85-4c78-83f2-062026c75ead" ], + "x-ms-client-request-id": [ "93136850-46c0-4411-8411-d8d744e5de93" ], "CommandName": [ "Remove-AzVMwareGlobalReachConnection" ], "FullCommandName": [ "Remove-AzVMwareGlobalReachConnection_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -395,7 +395,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:06:58 GMT" ] + "Date": [ "Mon, 27 May 2024 07:04:25 GMT" ] }, "ContentHeaders": { "Content-Length": [ "0" ] diff --git a/src/VMware/VMware.Autorest/test/AzVMwareLocationQuotaAvailability.Recording.json b/src/VMware/VMware.Autorest/test/AzVMwareLocationQuotaAvailability.Recording.json index a3d1e6982663..8e995a1a9e0c 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwareLocationQuotaAvailability.Recording.json +++ b/src/VMware/VMware.Autorest/test/AzVMwareLocationQuotaAvailability.Recording.json @@ -1,17 +1,17 @@ { - "AzVMwareLocationQuotaAvailability+[NoContext]+Check+$POST+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/providers/Microsoft.AVS/locations/westcentralus/checkQuotaAvailability?api-version=2023-03-01+1": { + "AzVMwareLocationQuotaAvailability+[NoContext]+Check+$POST+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/providers/Microsoft.AVS/locations/westcentralus/checkQuotaAvailability?api-version=2023-09-01+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/providers/Microsoft.AVS/locations/westcentralus/checkQuotaAvailability?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/providers/Microsoft.AVS/locations/westcentralus/checkQuotaAvailability?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "61" ], - "x-ms-client-request-id": [ "a3613664-6224-4cbd-a144-192f660e69d7" ], + "x-ms-client-request-id": [ "bcceb8ab-df30-466b-8857-e8993e4c1663" ], "CommandName": [ "Test-AzVMwareLocationQuotaAvailability" ], "FullCommandName": [ "Test-AzVMwareLocationQuotaAvailability_Check" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -21,7 +21,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:06:58 GMT" ] + "Date": [ "Mon, 27 May 2024 07:04:25 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], diff --git a/src/VMware/VMware.Autorest/test/AzVMwareLocationTrialAvailability.Recording.json b/src/VMware/VMware.Autorest/test/AzVMwareLocationTrialAvailability.Recording.json index 8215fd6e319e..4b3fddf4ceaa 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwareLocationTrialAvailability.Recording.json +++ b/src/VMware/VMware.Autorest/test/AzVMwareLocationTrialAvailability.Recording.json @@ -1,8 +1,8 @@ { - "AzVMwareLocationTrialAvailability+[NoContext]+Check+$POST+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/providers/Microsoft.AVS/locations/eastus2/checkTrialAvailability?api-version=2023-03-01+1": { + "AzVMwareLocationTrialAvailability+[NoContext]+Check+$POST+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/providers/Microsoft.AVS/locations/eastus2/checkTrialAvailability?api-version=2023-09-01+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/providers/Microsoft.AVS/locations/eastus2/checkTrialAvailability?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/providers/Microsoft.AVS/locations/eastus2/checkTrialAvailability?api-version=2023-09-01", "Content": "{\r\n \"name\": \"av36\"\r\n}", "isContentBase64": false, "Headers": { @@ -16,7 +16,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:06:58 GMT" ] + "Date": [ "Mon, 27 May 2024 07:04:25 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], diff --git a/src/VMware/VMware.Autorest/test/AzVMwarePSCredentialExecutionParameterObject.Tests.ps1 b/src/VMware/VMware.Autorest/test/AzVMwarePSCredentialExecutionParameterObject.Tests.ps1 index 212859777c46..e85154cb8af4 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwarePSCredentialExecutionParameterObject.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/AzVMwarePSCredentialExecutionParameterObject.Tests.ps1 @@ -14,7 +14,8 @@ while(-not $mockingPath) { Describe 'AzVMwarePSCredentialExecutionParameterObject' { It 'Rotate' { { - $config = New-AzVMwarePSCredentialExecutionParameterObject -Name azps_test_credentialvalue -Password "passwordValue" -Username "usernameValue" + $sourcePassword = ConvertTo-SecureString "pass123" -AsPlainText -Force + $config = New-AzVMwarePSCredentialExecutionParameterObject -Name azps_test_credentialvalue -Password $sourcePassword -Username "usernameValue" $config.Type | Should -Be "Credential" } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/AzVMwarePlacementPolicy.Recording.json b/src/VMware/VMware.Autorest/test/AzVMwarePlacementPolicy.Recording.json index 494ab1073ade..f4824b7ecbb4 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwarePlacementPolicy.Recording.json +++ b/src/VMware/VMware.Autorest/test/AzVMwarePlacementPolicy.Recording.json @@ -1,9 +1,9 @@ { - "AzVMwarePlacementPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t?api-version=2023-03-01+1": { + "AzVMwarePlacementPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq?api-version=2023-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t?api-version=2023-03-01", - "Content": "{\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"properties\": {\r\n \"clusterSize\": 3\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq?api-version=2023-09-01", + "Content": "{\r\n \"properties\": {\r\n \"clusterSize\": 3\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -16,30 +16,30 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:07:00 GMT" ] + "Date": [ "Mon, 27 May 2024 07:04:27 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "412" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"sku\":{\"name\":\"AV20\"},\"properties\":{\"clusterSize\":3,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"properties\":{\"clusterSize\":3,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\"]},\"sku\":{\"name\":\"AV20\"}}", "isContentBase64": false } }, - "AzVMwarePlacementPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t?api-version=2023-03-01+2": { + "AzVMwarePlacementPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq?api-version=2023-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "64" ], - "x-ms-client-request-id": [ "a10637f5-ed25-4b87-baa2-152f68fae09c" ], + "x-ms-client-request-id": [ "1292db29-85d4-4e37-89db-ad79aa392782" ], "CommandName": [ "New-AzVMwareCluster" ], "FullCommandName": [ "New-AzVMwareCluster_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -48,30 +48,30 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:07:30 GMT" ] + "Date": [ "Mon, 27 May 2024 07:04:57 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "448" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"sku\":{\"name\":\"AV20\"},\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]},\"sku\":{\"name\":\"AV20\"}}", "isContentBase64": false } }, - "AzVMwarePlacementPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t?api-version=2023-03-01+3": { + "AzVMwarePlacementPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq?api-version=2023-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "65" ], - "x-ms-client-request-id": [ "a10637f5-ed25-4b87-baa2-152f68fae09c" ], + "x-ms-client-request-id": [ "1292db29-85d4-4e37-89db-ad79aa392782" ], "CommandName": [ "New-AzVMwareCluster" ], "FullCommandName": [ "New-AzVMwareCluster_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -80,20 +80,20 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:07:30 GMT" ] + "Date": [ "Mon, 27 May 2024 07:04:57 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "448" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"sku\":{\"name\":\"AV20\"},\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1\",\"name\":\"cluster1\",\"type\":\"Microsoft.AVS/privateClouds/clusters\",\"properties\":{\"clusterSize\":4,\"provisioningState\":\"Succeeded\",\"hosts\":[\"fakehost22.nyc1.kubernetes.center\",\"fakehost23.nyc1.kubernetes.center\",\"fakehost24.nyc1.kubernetes.center\",\"fakehost25.nyc1.kubernetes.center\"]},\"sku\":{\"name\":\"AV20\"}}", "isContentBase64": false } }, - "AzVMwarePlacementPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies/policy1?api-version=2023-03-01+4": { + "AzVMwarePlacementPolicy+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies/policy1?api-version=2023-09-01+4": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies/policy1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies/policy1?api-version=2023-09-01", "Content": "{\r\n \"properties\": {\r\n \"type\": \"VmVm\",\r\n \"vmMembers\": [ \"System.Collections.Hashtable\" ],\r\n \"affinityType\": \"Affinity\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -107,7 +107,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:07:30 GMT" ] + "Date": [ "Mon, 27 May 2024 07:04:57 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -117,20 +117,20 @@ "isContentBase64": false } }, - "AzVMwarePlacementPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies/policy1?api-version=2023-03-01+5": { + "AzVMwarePlacementPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies/policy1?api-version=2023-09-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies/policy1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies/policy1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "67" ], - "x-ms-client-request-id": [ "a2d2259d-41f2-492e-9a6a-ce97d556552e" ], + "x-ms-client-request-id": [ "d31d8140-9379-4c4f-bd7e-408b1a7775c9" ], "CommandName": [ "New-AzVMwarePlacementPolicy" ], "FullCommandName": [ "New-AzVMwarePlacementPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -139,7 +139,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:00 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:27 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -149,20 +149,20 @@ "isContentBase64": false } }, - "AzVMwarePlacementPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies/policy1?api-version=2023-03-01+6": { + "AzVMwarePlacementPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies/policy1?api-version=2023-09-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies/policy1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies/policy1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "68" ], - "x-ms-client-request-id": [ "a2d2259d-41f2-492e-9a6a-ce97d556552e" ], + "x-ms-client-request-id": [ "d31d8140-9379-4c4f-bd7e-408b1a7775c9" ], "CommandName": [ "New-AzVMwarePlacementPolicy" ], "FullCommandName": [ "New-AzVMwarePlacementPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -171,7 +171,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:00 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:27 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -181,19 +181,19 @@ "isContentBase64": false } }, - "AzVMwarePlacementPolicy+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies?api-version=2023-03-01+1": { + "AzVMwarePlacementPolicy+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "69" ], - "x-ms-client-request-id": [ "99b76276-e58e-4925-ac57-427341ca2885" ], + "x-ms-client-request-id": [ "da45c84c-7a6e-4955-8c51-2de6b66441e2" ], "CommandName": [ "Get-AzVMwarePlacementPolicy" ], "FullCommandName": [ "Get-AzVMwarePlacementPolicy_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -203,7 +203,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:00 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:27 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -213,19 +213,19 @@ "isContentBase64": false } }, - "AzVMwarePlacementPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies/policy1?api-version=2023-03-01+1": { + "AzVMwarePlacementPolicy+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies/policy1?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies/policy1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies/policy1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "70" ], - "x-ms-client-request-id": [ "a4193440-9289-4cc8-a154-f8ec8036c194" ], + "x-ms-client-request-id": [ "fb2a3470-7453-44a3-b517-0a5939fe41fb" ], "CommandName": [ "Get-AzVMwarePlacementPolicy" ], "FullCommandName": [ "Get-AzVMwarePlacementPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -235,7 +235,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:00 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:27 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -245,10 +245,10 @@ "isContentBase64": false } }, - "AzVMwarePlacementPolicy+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies/policy1?api-version=2023-03-01+1": { + "AzVMwarePlacementPolicy+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies/policy1?api-version=2023-09-01+1": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies/policy1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies/policy1?api-version=2023-09-01", "Content": "{\r\n \"properties\": {\r\n \"state\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -262,7 +262,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:00 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:27 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -272,19 +272,19 @@ "isContentBase64": false } }, - "AzVMwarePlacementPolicy+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies/policy1?api-version=2023-03-01+1": { + "AzVMwarePlacementPolicy+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies/policy1?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies/policy1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies/policy1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "72" ], - "x-ms-client-request-id": [ "8af6f826-57d4-4999-9aed-aadae8bef7cc" ], + "x-ms-client-request-id": [ "a1a5cbe6-535d-457b-b2f2-29670df5c0f4" ], "CommandName": [ "Get-AzVMwarePlacementPolicy" ], "FullCommandName": [ "Get-AzVMwarePlacementPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -294,7 +294,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:00 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:27 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -304,10 +304,10 @@ "isContentBase64": false } }, - "AzVMwarePlacementPolicy+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-03-01+2": { + "AzVMwarePlacementPolicy+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-09-01+2": { "Request": { "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-09-01", "Content": "{\r\n \"properties\": {\r\n \"state\": \"Enabled\"\r\n }\r\n}", "isContentBase64": false, "Headers": { @@ -321,7 +321,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:00 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:27 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -331,19 +331,19 @@ "isContentBase64": false } }, - "AzVMwarePlacementPolicy+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies/policy1?api-version=2023-03-01+1": { + "AzVMwarePlacementPolicy+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies/policy1?api-version=2023-09-01+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies/policy1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies/policy1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "74" ], - "x-ms-client-request-id": [ "6bd18da8-0edc-4b24-89a3-422fc0a7468f" ], + "x-ms-client-request-id": [ "5b0f2193-97f8-4395-8266-0aef86f85f54" ], "CommandName": [ "Remove-AzVMwarePlacementPolicy" ], "FullCommandName": [ "Remove-AzVMwarePlacementPolicy_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -353,7 +353,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:00 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "0" ] @@ -362,19 +362,19 @@ "isContentBase64": false } }, - "AzVMwarePlacementPolicy+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies/policy1?api-version=2023-03-01+1": { + "AzVMwarePlacementPolicy+[NoContext]+DeleteViaIdentity+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies/policy1?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/placementPolicies/policy1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/placementPolicies/policy1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "75" ], - "x-ms-client-request-id": [ "57d91cf8-67c3-4db0-aa81-4f9f34576002" ], + "x-ms-client-request-id": [ "4aa447f5-f0c4-48b6-93b5-6637f1e9c8e6" ], "CommandName": [ "Get-AzVMwarePlacementPolicy" ], "FullCommandName": [ "Get-AzVMwarePlacementPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -384,7 +384,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:00 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:27 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -394,19 +394,19 @@ "isContentBase64": false } }, - "AzVMwarePlacementPolicy+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-03-01+2": { + "AzVMwarePlacementPolicy+[NoContext]+DeleteViaIdentity+$DELETE+https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-09-01+2": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/placementPolicies/policy1?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "76" ], - "x-ms-client-request-id": [ "ec79fb03-ab0f-4e7c-81c4-6974b1269b48" ], + "x-ms-client-request-id": [ "bc799a45-71e9-41f9-ba64-97183a7508fd" ], "CommandName": [ "Remove-AzVMwarePlacementPolicy" ], "FullCommandName": [ "Remove-AzVMwarePlacementPolicy_DeleteViaIdentity" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -416,7 +416,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:00 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "0" ] diff --git a/src/VMware/VMware.Autorest/test/AzVMwarePlacementPolicy.Tests.ps1 b/src/VMware/VMware.Autorest/test/AzVMwarePlacementPolicy.Tests.ps1 index fb07a7ca3ff0..d3ca63f4c24e 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwarePlacementPolicy.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/AzVMwarePlacementPolicy.Tests.ps1 @@ -17,7 +17,7 @@ Describe 'AzVMwarePlacementPolicy' { $config = New-AzVMwareCluster -Name $env.rstr1 -PrivateCloudName $env.privateCloudName1 -ResourceGroupName $env.resourceGroup1 -ClusterSize 3 -SkuName av20 $config.Name | Should -Be "cluster1" - $config = New-AzVMwareVMPlacementPolicyPropertiesObject -AffinityType 'Affinity' -Type 'VmVm' -VMMember @{"abc"="123"} + $config = New-AzVMwareVMPlacementPolicyPropertyObject -AffinityType 'Affinity' -VMMember @{"abc"="123"} $config = New-AzVMwarePlacementPolicy -ClusterName $env.rstr1 -Name $env.policy1 -PrivateCloudName $env.privateCloudName1 -ResourceGroupName $env.resourceGroup1 -Property $config $config.Name | Should -Be "policy1" } | Should -Not -Throw diff --git a/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloud.Recording.json b/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloud.Recording.json index afea0bcf9591..39b53d5f272b 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloud.Recording.json +++ b/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloud.Recording.json @@ -1,9 +1,9 @@ { - "AzVMwarePrivateCloud+[NoContext]+List1+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/l3cm9t?api-version=2023-03-01+1": { + "AzVMwarePrivateCloud+[NoContext]+List1+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/z5ydkq?api-version=2023-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/l3cm9t?api-version=2023-03-01", - "Content": "{\r\n \"location\": \"centralus\",\r\n \"sku\": {\r\n \"name\": \"av36\"\r\n },\r\n \"properties\": {\r\n \"managementCluster\": {\r\n \"clusterSize\": 3\r\n },\r\n \"networkBlock\": \"192.168.48.0/22\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/z5ydkq?api-version=2023-09-01", + "Content": "{\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"managementCluster\": {\r\n \"clusterSize\": 3\r\n },\r\n \"networkBlock\": \"192.168.48.0/22\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av36\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -16,30 +16,30 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:02 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:27 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "1377" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"location\":\"eastus2\",\"tags\":{},\"sku\":{\"name\":\"AV36\"},\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"}}", "isContentBase64": false } }, - "AzVMwarePrivateCloud+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/l3cm9t?api-version=2023-03-01+2": { + "AzVMwarePrivateCloud+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/z5ydkq?api-version=2023-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/l3cm9t?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/z5ydkq?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "78" ], - "x-ms-client-request-id": [ "6c1a9bc7-2552-4c9b-ae70-65dcb5847336" ], + "x-ms-client-request-id": [ "a578e8cb-1fce-4cd2-b8a5-192239d5b9bc" ], "CommandName": [ "Az.VMware.internal\\New-AzVMwarePrivateCloud" ], "FullCommandName": [ "New-AzVMwarePrivateCloud_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -48,30 +48,30 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:32 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:58 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "1990" ] + "Content-Length": [ "2196" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"location\":\"eastus2\",\"tags\":{},\"sku\":{\"name\":\"AV36\"},\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\",\"hcxCloudManager\":\"https://192.168.50.4/\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"vcsa\":\"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"hcxCloudManager\":\"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"nsxtManagerIp\":\"192.168.50.3\",\"vcenterIp\":\"192.168.50.2\",\"hcxCloudManagerIp\":\"192.168.50.4\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", "isContentBase64": false } }, - "AzVMwarePrivateCloud+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/l3cm9t?api-version=2023-03-01+3": { + "AzVMwarePrivateCloud+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/z5ydkq?api-version=2023-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/l3cm9t?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/z5ydkq?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "79" ], - "x-ms-client-request-id": [ "6c1a9bc7-2552-4c9b-ae70-65dcb5847336" ], + "x-ms-client-request-id": [ "a578e8cb-1fce-4cd2-b8a5-192239d5b9bc" ], "CommandName": [ "Az.VMware.internal\\New-AzVMwarePrivateCloud" ], "FullCommandName": [ "New-AzVMwarePrivateCloud_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -80,29 +80,29 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:32 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:58 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "1990" ] + "Content-Length": [ "2196" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"location\":\"eastus2\",\"tags\":{},\"sku\":{\"name\":\"AV36\"},\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\",\"hcxCloudManager\":\"https://192.168.50.4/\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"vcsa\":\"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"hcxCloudManager\":\"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"nsxtManagerIp\":\"192.168.50.3\",\"vcenterIp\":\"192.168.50.2\",\"hcxCloudManagerIp\":\"192.168.50.4\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", "isContentBase64": false } }, - "AzVMwarePrivateCloud+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/providers/Microsoft.AVS/privateClouds?api-version=2023-03-01+4": { + "AzVMwarePrivateCloud+[NoContext]+List1+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/providers/Microsoft.AVS/privateClouds?api-version=2023-09-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/providers/Microsoft.AVS/privateClouds?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/providers/Microsoft.AVS/privateClouds?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "80" ], - "x-ms-client-request-id": [ "dbba201c-c843-4bd5-adbe-e2347bda2c1d" ], + "x-ms-client-request-id": [ "144b24ca-fe92-4e84-849e-f881dceaf28f" ], "CommandName": [ "Get-AzVMwarePrivateCloud" ], - "FullCommandName": [ "Get-AzVMwarePrivateCloud_List1" ], + "FullCommandName": [ "Get-AzVMwarePrivateCloud_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -112,29 +112,29 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:32 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:58 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "1509" ] + "Content-Length": [ "1715" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"location\":\"eastus2\",\"tags\":{},\"sku\":{\"name\":\"AV36\"},\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\",\"hcxCloudManager\":\"https://192.168.50.4/\"},\"networkBlock\":\"192.168.48.0/22\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"vcsa\":\"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"hcxCloudManager\":\"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"nsxtManagerIp\":\"192.168.50.3\",\"vcenterIp\":\"192.168.50.2\",\"hcxCloudManagerIp\":\"192.168.50.4\"},\"networkBlock\":\"192.168.48.0/22\"},\"sku\":{\"name\":\"AV36\"}}]}", "isContentBase64": false } }, - "AzVMwarePrivateCloud+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/l3cm9t?api-version=2023-03-01+1": { + "AzVMwarePrivateCloud+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/z5ydkq?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/l3cm9t?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/z5ydkq?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "81" ], - "x-ms-client-request-id": [ "448e7e05-97bf-43b2-9b4c-55fb059e743e" ], + "x-ms-client-request-id": [ "ae683227-dab5-4250-a04f-a442608f96e0" ], "CommandName": [ "Get-AzVMwarePrivateCloud" ], "FullCommandName": [ "Get-AzVMwarePrivateCloud_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -144,29 +144,29 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:32 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:58 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "1990" ] + "Content-Length": [ "2196" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"location\":\"eastus2\",\"tags\":{},\"sku\":{\"name\":\"AV36\"},\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\",\"hcxCloudManager\":\"https://192.168.50.4/\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"vcsa\":\"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"hcxCloudManager\":\"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"nsxtManagerIp\":\"192.168.50.3\",\"vcenterIp\":\"192.168.50.2\",\"hcxCloudManagerIp\":\"192.168.50.4\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", "isContentBase64": false } }, - "AzVMwarePrivateCloud+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds?api-version=2023-03-01+1": { + "AzVMwarePrivateCloud+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "82" ], - "x-ms-client-request-id": [ "a80c955e-704d-41b8-880f-766401fd3d2f" ], + "x-ms-client-request-id": [ "ef8d8442-c573-476f-b912-ade20fc16d2d" ], "CommandName": [ "Get-AzVMwarePrivateCloud" ], - "FullCommandName": [ "Get-AzVMwarePrivateCloud_List" ], + "FullCommandName": [ "Get-AzVMwarePrivateCloud_List1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -176,21 +176,21 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:32 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:58 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "1654" ] + "Content-Length": [ "1860" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"location\":\"eastus2\",\"tags\":{},\"sku\":{\"name\":\"AV36\"},\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\",\"hcxCloudManager\":\"https://192.168.50.4/\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"vcsa\":\"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"hcxCloudManager\":\"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"nsxtManagerIp\":\"192.168.50.3\",\"vcenterIp\":\"192.168.50.2\",\"hcxCloudManagerIp\":\"192.168.50.4\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"}}]}", "isContentBase64": false } }, - "AzVMwarePrivateCloud+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/5krpza?api-version=2023-03-01+1": { + "AzVMwarePrivateCloud+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/0vmczr?api-version=2023-09-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/5krpza?api-version=2023-03-01", - "Content": "{\r\n \"location\": \"centralus\",\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n },\r\n \"properties\": {\r\n \"managementCluster\": {\r\n \"clusterSize\": 3\r\n },\r\n \"networkBlock\": \"192.168.48.0/22\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/0vmczr?api-version=2023-09-01", + "Content": "{\r\n \"location\": \"centralus\",\r\n \"properties\": {\r\n \"managementCluster\": {\r\n \"clusterSize\": 3\r\n },\r\n \"networkBlock\": \"192.168.48.0/22\"\r\n },\r\n \"sku\": {\r\n \"name\": \"av20\"\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -203,30 +203,30 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:08:32 GMT" ] + "Date": [ "Mon, 27 May 2024 07:05:58 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], "Content-Length": [ "1377" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"location\":\"eastus2\",\"tags\":{},\"sku\":{\"name\":\"AV36\"},\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"}}", "isContentBase64": false } }, - "AzVMwarePrivateCloud+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/5krpza?api-version=2023-03-01+2": { + "AzVMwarePrivateCloud+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/0vmczr?api-version=2023-09-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/5krpza?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/0vmczr?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "84" ], - "x-ms-client-request-id": [ "79018c20-51d1-45f7-9de6-ad4511a75afc" ], + "x-ms-client-request-id": [ "f58c4cfc-a818-487b-8e7e-0f249451d13d" ], "CommandName": [ "Az.VMware.internal\\New-AzVMwarePrivateCloud" ], "FullCommandName": [ "New-AzVMwarePrivateCloud_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -235,30 +235,153 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:09:02 GMT" ] + "Date": [ "Mon, 27 May 2024 07:06:29 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "1990" ] + "Content-Length": [ "2196" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"location\":\"eastus2\",\"tags\":{},\"sku\":{\"name\":\"AV36\"},\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\",\"hcxCloudManager\":\"https://192.168.50.4/\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"vcsa\":\"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"hcxCloudManager\":\"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"nsxtManagerIp\":\"192.168.50.3\",\"vcenterIp\":\"192.168.50.2\",\"hcxCloudManagerIp\":\"192.168.50.4\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", "isContentBase64": false } }, - "AzVMwarePrivateCloud+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/5krpza?api-version=2023-03-01+3": { + "AzVMwarePrivateCloud+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/0vmczr?api-version=2023-09-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/5krpza?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/0vmczr?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "85" ], - "x-ms-client-request-id": [ "79018c20-51d1-45f7-9de6-ad4511a75afc" ], + "x-ms-client-request-id": [ "f58c4cfc-a818-487b-8e7e-0f249451d13d" ], "CommandName": [ "Az.VMware.internal\\New-AzVMwarePrivateCloud" ], "FullCommandName": [ "New-AzVMwarePrivateCloud_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ] + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Server": [ "Rocket" ], + "Date": [ "Mon, 27 May 2024 07:06:29 GMT" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "2196" ] + }, + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"vcsa\":\"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"hcxCloudManager\":\"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"nsxtManagerIp\":\"192.168.50.3\",\"vcenterIp\":\"192.168.50.2\",\"hcxCloudManagerIp\":\"192.168.50.4\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", + "isContentBase64": false + } + }, + "AzVMwarePrivateCloud+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/0vmczr?api-version=2023-09-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/0vmczr?api-version=2023-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "86" ], + "x-ms-client-request-id": [ "7a0d4424-200a-4ee4-b985-abe23c08619c" ], + "CommandName": [ "Update-AzVMwarePrivateCloud" ], + "FullCommandName": [ "Update-AzVMwarePrivateCloud_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Server": [ "Rocket" ], + "Date": [ "Mon, 27 May 2024 07:06:29 GMT" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "2196" ] + }, + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"vcsa\":\"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"hcxCloudManager\":\"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"nsxtManagerIp\":\"192.168.50.3\",\"vcenterIp\":\"192.168.50.2\",\"hcxCloudManagerIp\":\"192.168.50.4\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", + "isContentBase64": false + } + }, + "AzVMwarePrivateCloud+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/0vmczr?api-version=2023-09-01+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/0vmczr?api-version=2023-09-01", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"managementCluster\": {\r\n \"clusterSize\": 4,\r\n \"hosts\": [ \"fakehost18.nyc1.kubernetes.center\", \"fakehost19.nyc1.kubernetes.center\", \"fakehost20.nyc1.kubernetes.center\", \"fakehost21.nyc1.kubernetes.center\" ]\r\n },\r\n \"availability\": {\r\n \"strategy\": \"SingleZone\",\r\n \"zone\": 1\r\n },\r\n \"encryption\": {\r\n \"keyVaultProperties\": {\r\n \"keyName\": \"keyname1\",\r\n \"keyVersion\": \"ver1.0\",\r\n \"keyVaultUrl\": \"https://keyvault1-kmip-kvault.vault.azure.net/\"\r\n },\r\n \"status\": \"Enabled\"\r\n },\r\n \"internet\": \"Disabled\",\r\n \"identitySources\": [\r\n {\r\n \"name\": \"group1\",\r\n \"alias\": \"groupAlias\",\r\n \"domain\": \"domain1\",\r\n \"baseUserDN\": \"ou=baseUser\",\r\n \"baseGroupDN\": \"ou=baseGroup\",\r\n \"primaryServer\": \"ldaps://1.1.1.1:636/\",\r\n \"secondaryServer\": \"ldaps://1.1.1.2:636/\",\r\n \"ssl\": \"Enabled\"\r\n }\r\n ],\r\n \"networkBlock\": \"192.168.48.0/22\"\r\n },\r\n \"sku\": {\r\n \"name\": \"AV36\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "1104" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Server": [ "Rocket" ], + "Date": [ "Mon, 27 May 2024 07:06:29 GMT" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "1377" ] + }, + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"}}", + "isContentBase64": false + } + }, + "AzVMwarePrivateCloud+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/0vmczr?api-version=2023-09-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/0vmczr?api-version=2023-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "88" ], + "x-ms-client-request-id": [ "7a0d4424-200a-4ee4-b985-abe23c08619c" ], + "CommandName": [ "Update-AzVMwarePrivateCloud" ], + "FullCommandName": [ "Update-AzVMwarePrivateCloud_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Server": [ "Rocket" ], + "Date": [ "Mon, 27 May 2024 07:06:59 GMT" ] + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "2196" ] + }, + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"vcsa\":\"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"hcxCloudManager\":\"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"nsxtManagerIp\":\"192.168.50.3\",\"vcenterIp\":\"192.168.50.2\",\"hcxCloudManagerIp\":\"192.168.50.4\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", + "isContentBase64": false + } + }, + "AzVMwarePrivateCloud+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/0vmczr?api-version=2023-09-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/0vmczr?api-version=2023-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "89" ], + "x-ms-client-request-id": [ "7a0d4424-200a-4ee4-b985-abe23c08619c" ], + "CommandName": [ "Update-AzVMwarePrivateCloud" ], + "FullCommandName": [ "Update-AzVMwarePrivateCloud_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] }, "ContentHeaders": { } @@ -267,83 +390,152 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:09:02 GMT" ] + "Date": [ "Mon, 27 May 2024 07:06:59 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "1990" ] + "Content-Length": [ "2196" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"location\":\"eastus2\",\"tags\":{},\"sku\":{\"name\":\"AV36\"},\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\",\"hcxCloudManager\":\"https://192.168.50.4/\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"vcsa\":\"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"hcxCloudManager\":\"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"nsxtManagerIp\":\"192.168.50.3\",\"vcenterIp\":\"192.168.50.2\",\"hcxCloudManagerIp\":\"192.168.50.4\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", "isContentBase64": false } }, - "AzVMwarePrivateCloud+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/5krpza?api-version=2023-03-01+1": { + "AzVMwarePrivateCloud+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98?api-version=2023-09-01+1": { "Request": { - "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/5krpza?api-version=2023-03-01", - "Content": "{\r\n \"properties\": {\r\n \"managementCluster\": {\r\n \"clusterSize\": 4\r\n }\r\n }\r\n}", + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98?api-version=2023-09-01", + "Content": null, "isContentBase64": false, "Headers": { + "x-ms-unique-id": [ "90" ], + "x-ms-client-request-id": [ "cb67ff0a-55d0-420f-b91d-cdb366efe60d" ], + "CommandName": [ "Update-AzVMwarePrivateCloud" ], + "FullCommandName": [ "Update-AzVMwarePrivateCloud_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Server": [ "Rocket" ], + "Date": [ "Mon, 27 May 2024 07:06:59 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "87" ] + "Content-Length": [ "2196" ] + }, + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"vcsa\":\"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"hcxCloudManager\":\"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"nsxtManagerIp\":\"192.168.50.3\",\"vcenterIp\":\"192.168.50.2\",\"hcxCloudManagerIp\":\"192.168.50.4\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", + "isContentBase64": false + } + }, + "AzVMwarePrivateCloud+[NoContext]+UpdateViaIdentityExpanded+$PUT+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98?api-version=2023-09-01+2": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98?api-version=2023-09-01", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"managementCluster\": {\r\n \"clusterSize\": 4,\r\n \"hosts\": [ \"fakehost18.nyc1.kubernetes.center\", \"fakehost19.nyc1.kubernetes.center\", \"fakehost20.nyc1.kubernetes.center\", \"fakehost21.nyc1.kubernetes.center\" ]\r\n },\r\n \"availability\": {\r\n \"strategy\": \"SingleZone\",\r\n \"zone\": 1\r\n },\r\n \"encryption\": {\r\n \"keyVaultProperties\": {\r\n \"keyName\": \"keyname1\",\r\n \"keyVersion\": \"ver1.0\",\r\n \"keyVaultUrl\": \"https://keyvault1-kmip-kvault.vault.azure.net/\"\r\n },\r\n \"status\": \"Enabled\"\r\n },\r\n \"internet\": \"Disabled\",\r\n \"identitySources\": [\r\n {\r\n \"name\": \"group1\",\r\n \"alias\": \"groupAlias\",\r\n \"domain\": \"domain1\",\r\n \"baseUserDN\": \"ou=baseUser\",\r\n \"baseGroupDN\": \"ou=baseGroup\",\r\n \"primaryServer\": \"ldaps://1.1.1.1:636/\",\r\n \"secondaryServer\": \"ldaps://1.1.1.2:636/\",\r\n \"ssl\": \"Enabled\"\r\n }\r\n ],\r\n \"networkBlock\": \"192.168.48.0/22\"\r\n },\r\n \"sku\": {\r\n \"name\": \"AV36\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "1104" ] } }, "Response": { "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:09:02 GMT" ] + "Date": [ "Mon, 27 May 2024 07:06:59 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "1827" ] + "Content-Length": [ "1377" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"location\":\"eastus2\",\"tags\":{},\"sku\":{\"name\":\"AV36\"},\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\",\"hcxCloudManager\":\"https://192.168.50.4/\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"}}", "isContentBase64": false } }, - "AzVMwarePrivateCloud+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel?api-version=2023-03-01+1": { + "AzVMwarePrivateCloud+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98?api-version=2023-09-01+3": { "Request": { - "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudukel?api-version=2023-03-01", - "Content": "{\r\n \"properties\": {\r\n \"managementCluster\": {\r\n \"clusterSize\": 4\r\n }\r\n }\r\n}", + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98?api-version=2023-09-01", + "Content": null, "isContentBase64": false, "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "92" ], + "x-ms-client-request-id": [ "cb67ff0a-55d0-420f-b91d-cdb366efe60d" ], + "CommandName": [ "Update-AzVMwarePrivateCloud" ], + "FullCommandName": [ "Update-AzVMwarePrivateCloud_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Server": [ "Rocket" ], + "Date": [ "Mon, 27 May 2024 07:07:30 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "87" ] + "Content-Length": [ "2196" ] + }, + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"vcsa\":\"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"hcxCloudManager\":\"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"nsxtManagerIp\":\"192.168.50.3\",\"vcenterIp\":\"192.168.50.2\",\"hcxCloudManagerIp\":\"192.168.50.4\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", + "isContentBase64": false + } + }, + "AzVMwarePrivateCloud+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98?api-version=2023-09-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbo98?api-version=2023-09-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "93" ], + "x-ms-client-request-id": [ "cb67ff0a-55d0-420f-b91d-cdb366efe60d" ], + "CommandName": [ "Update-AzVMwarePrivateCloud" ], + "FullCommandName": [ "Update-AzVMwarePrivateCloud_UpdateViaIdentityExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ] + }, + "ContentHeaders": { } }, "Response": { "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:09:02 GMT" ] + "Date": [ "Mon, 27 May 2024 07:07:30 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "1827" ] + "Content-Length": [ "2196" ] }, - "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"location\":\"eastus2\",\"tags\":{},\"sku\":{\"name\":\"AV36\"},\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://192.168.50.3/\",\"vcsa\":\"https://192.168.50.2/\",\"hcxCloudManager\":\"https://192.168.50.4/\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]}}", + "Content": "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1\",\"name\":\"cloud1\",\"type\":\"Microsoft.AVS/privateClouds\",\"tags\":{},\"location\":\"eastus2\",\"properties\":{\"managementCluster\":{\"clusterSize\":4,\"clusterId\":1,\"hosts\":[\"fakehost18.nyc1.kubernetes.center\",\"fakehost19.nyc1.kubernetes.center\",\"fakehost20.nyc1.kubernetes.center\",\"fakehost21.nyc1.kubernetes.center\"]},\"internet\":\"Disabled\",\"identitySources\":[{\"name\":\"group1\",\"alias\":\"groupAlias\",\"domain\":\"domain1\",\"baseUserDN\":\"ou=baseUser\",\"baseGroupDN\":\"ou=baseGroup\",\"primaryServer\":\"ldaps://1.1.1.1:636/\",\"secondaryServer\":\"ldaps://1.1.1.2:636/\",\"ssl\":\"Enabled\"}],\"availability\":{\"strategy\":\"SingleZone\",\"zone\":1},\"encryption\":{\"status\":\"Enabled\",\"keyVaultProperties\":{\"keyName\":\"keyname1\",\"keyVersion\":\"ver1.0\",\"keyVaultUrl\":\"https://keyvault1-kmip-kvault.vault.azure.net/\",\"keyState\":\"Connected\",\"versionType\":\"Fixed\"}},\"provisioningState\":\"Succeeded\",\"circuit\":{\"primarySubnet\":\"192.168.53.0/30\",\"secondarySubnet\":\"192.168.53.4/30\",\"expressRouteID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2/providers/Microsoft.Network/expressroutecircuits/tnt13-41a90db2-9d5e-4bd5-a77a-5ce7b58213d6-eastus2-xconnect\",\"expressRoutePrivatePeeringID\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tnt42-cust-p01-dmo01/providers/Microsoft.Network/expressroutecircuits/tnt42-cust-p01-dmo01-er/peerings/AzurePrivatePeering\"},\"endpoints\":{\"nsxtManager\":\"https://nsx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"vcsa\":\"https://vc.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"hcxCloudManager\":\"https://hcx.290351365f5b41a19b77af.eastus.avslab.azure.com/\",\"nsxtManagerIp\":\"192.168.50.3\",\"vcenterIp\":\"192.168.50.2\",\"hcxCloudManagerIp\":\"192.168.50.4\"},\"networkBlock\":\"192.168.48.0/22\",\"externalCloudLinks\":[\"/subscriptions/12341234-1234-1234-1234-123412341234/resourceGroups/mygroup/providers/Microsoft.AVS/privateClouds/cloud2\"]},\"sku\":{\"name\":\"AV36\"},\"identity\":{\"principalId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"tenantId\":\"881e5573-063f-49e4-8c08-79d7df0169d8\",\"type\":\"SystemAssigned\"}}", "isContentBase64": false } }, - "AzVMwarePrivateCloud+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/5krpza?api-version=2023-03-01+1": { + "AzVMwarePrivateCloud+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/0vmczr?api-version=2023-09-01+1": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/5krpza?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/0vmczr?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "88" ], - "x-ms-client-request-id": [ "d58fe77d-3d1f-4f50-a19e-773ee4e4fa33" ], + "x-ms-unique-id": [ "94" ], + "x-ms-client-request-id": [ "6c3e65af-8234-4da2-ba9f-5915f5600995" ], "CommandName": [ "Az.VMware.internal\\Remove-AzVMwarePrivateCloud" ], "FullCommandName": [ "Remove-AzVMwarePrivateCloud_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -353,7 +545,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:09:02 GMT" ] + "Date": [ "Mon, 27 May 2024 07:07:30 GMT" ] }, "ContentHeaders": { "Content-Length": [ "0" ] diff --git a/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloud.Tests.ps1 b/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloud.Tests.ps1 index 78695c58e5e5..ea30d0fecc74 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloud.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloud.Tests.ps1 @@ -45,7 +45,7 @@ Describe 'AzVMwarePrivateCloud' { It 'UpdateExpanded' { { - $config = Update-AzVMwarePrivateCloud -Name $env.rstr2 -ResourceGroupName $env.resourceGroup2 -ManagementClusterSize 4 + $config = Update-AzVMwarePrivateCloud -Name $env.rstr2 -ResourceGroupName $env.resourceGroup2 $config.ManagementClusterSize | Should -BeGreaterThan 0 } | Should -Not -Throw } @@ -53,7 +53,7 @@ Describe 'AzVMwarePrivateCloud' { It 'UpdateViaIdentityExpanded' { { $Id2 = "/subscriptions/$($env.SubscriptionId)/resourceGroups/$($env.resourceGroup2)/providers/Microsoft.AVS/privateClouds/$($env.privateCloudName2)" - $config = Update-AzVMwarePrivateCloud -InputObject $Id2 -ManagementClusterSize 4 + $config = Update-AzVMwarePrivateCloud -InputObject $Id2 $config.ManagementClusterSize | Should -BeGreaterThan 0 } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloudAdminCredential.Recording.json b/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloudAdminCredential.Recording.json index 3b938678240d..8acb2bf52c4d 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloudAdminCredential.Recording.json +++ b/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloudAdminCredential.Recording.json @@ -1,17 +1,17 @@ { - "AzVMwarePrivateCloudAdminCredential+[NoContext]+List+$POST+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/listAdminCredentials?api-version=2023-03-01+1": { + "AzVMwarePrivateCloudAdminCredential+[NoContext]+List+$POST+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/listAdminCredentials?api-version=2023-09-01+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/listAdminCredentials?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/listAdminCredentials?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "89" ], - "x-ms-client-request-id": [ "6f1aa896-b5de-4a1a-9738-cac82b9dd4a1" ], + "x-ms-unique-id": [ "95" ], + "x-ms-client-request-id": [ "654b3ef2-0118-4bf5-aa06-763f8c57288c" ], "CommandName": [ "Get-AzVMwarePrivateCloudAdminCredential" ], "FullCommandName": [ "Get-AzVMwarePrivateCloudAdminCredential_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -21,7 +21,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:09:02 GMT" ] + "Date": [ "Mon, 27 May 2024 07:07:30 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], diff --git a/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloudNsxtPassword.Recording.json b/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloudNsxtPassword.Recording.json index b5328d5327d0..da63e020396f 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloudNsxtPassword.Recording.json +++ b/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloudNsxtPassword.Recording.json @@ -1,17 +1,17 @@ { - "AzVMwarePrivateCloudNsxtPassword+[NoContext]+Rotate+$POST+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/rotateNsxtPassword?api-version=2023-03-01+1": { + "AzVMwarePrivateCloudNsxtPassword+[NoContext]+Rotate+$POST+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/rotateNsxtPassword?api-version=2023-09-01+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/rotateNsxtPassword?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/rotateNsxtPassword?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "90" ], - "x-ms-client-request-id": [ "436cacf4-5b03-4bb6-a386-e079722c88b5" ], + "x-ms-unique-id": [ "96" ], + "x-ms-client-request-id": [ "4aee2e7d-0d64-405e-9a41-e3f90ba5b3f3" ], "CommandName": [ "New-AzVMwarePrivateCloudNsxtPassword" ], "FullCommandName": [ "New-AzVMwarePrivateCloudNsxtPassword_Rotate" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -21,7 +21,7 @@ "StatusCode": 204, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:09:04 GMT" ] + "Date": [ "Mon, 27 May 2024 07:07:30 GMT" ] }, "ContentHeaders": { "Content-Length": [ "0" ] diff --git a/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloudVcenterPassword.Recording.json b/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloudVcenterPassword.Recording.json index 777d3111cbcc..47461de1315d 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloudVcenterPassword.Recording.json +++ b/src/VMware/VMware.Autorest/test/AzVMwarePrivateCloudVcenterPassword.Recording.json @@ -1,17 +1,17 @@ { - "AzVMwarePrivateCloudVcenterPassword+[NoContext]+Rotate+$POST+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/rotateVcenterPassword?api-version=2023-03-01+1": { + "AzVMwarePrivateCloudVcenterPassword+[NoContext]+Rotate+$POST+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/rotateVcenterPassword?api-version=2023-09-01+1": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/rotateVcenterPassword?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/rotateVcenterPassword?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "91" ], - "x-ms-client-request-id": [ "6a48e146-4234-42ad-af61-4274e92e9796" ], + "x-ms-unique-id": [ "97" ], + "x-ms-client-request-id": [ "45659d04-ef9e-48bc-83af-39db5d48e2c6" ], "CommandName": [ "New-AzVMwarePrivateCloudVcenterPassword" ], "FullCommandName": [ "New-AzVMwarePrivateCloudVcenterPassword_Rotate" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -21,7 +21,7 @@ "StatusCode": 204, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:09:04 GMT" ] + "Date": [ "Mon, 27 May 2024 07:07:31 GMT" ] }, "ContentHeaders": { "Content-Length": [ "0" ] diff --git a/src/VMware/VMware.Autorest/test/AzVMwareScriptSecureStringExecutionParameterObject.Tests.ps1 b/src/VMware/VMware.Autorest/test/AzVMwareScriptSecureStringExecutionParameterObject.Tests.ps1 index a4e2bd0b48d6..3240299b8393 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwareScriptSecureStringExecutionParameterObject.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/AzVMwareScriptSecureStringExecutionParameterObject.Tests.ps1 @@ -13,8 +13,9 @@ while(-not $mockingPath) { Describe 'AzVMwareScriptSecureStringExecutionParameterObject' { It 'Rotate' { - { - $config = New-AzVMwareScriptSecureStringExecutionParameterObject -Name azps_test_securevalue -SecureValue "passwordValue" + { + $sourcePassword = ConvertTo-SecureString "pass123" -AsPlainText -Force + $config = New-AzVMwareScriptSecureStringExecutionParameterObject -Name azps_test_securevalue -SecureValue $sourcePassword $config.Type | Should -Be "SecureValue" } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/AzVMwareVMPlacementPolicyPropertiesObject.Tests.ps1 b/src/VMware/VMware.Autorest/test/AzVMwareVMPlacementPolicyPropertyObject.Tests.ps1 similarity index 73% rename from src/VMware/VMware.Autorest/test/AzVMwareVMPlacementPolicyPropertiesObject.Tests.ps1 rename to src/VMware/VMware.Autorest/test/AzVMwareVMPlacementPolicyPropertyObject.Tests.ps1 index d6fffcacd671..4f708780610b 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwareVMPlacementPolicyPropertiesObject.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/AzVMwareVMPlacementPolicyPropertyObject.Tests.ps1 @@ -3,7 +3,7 @@ if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) -$TestRecordingFile = Join-Path $PSScriptRoot 'AzVMwareVMPlacementPolicyPropertiesObject.Recording.json' +$TestRecordingFile = Join-Path $PSScriptRoot 'AzVMwareVMPlacementPolicyPropertyObject.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -11,10 +11,10 @@ while(-not $mockingPath) { } . ($mockingPath | Select-Object -First 1).FullName -Describe 'New-AzVMwareVMPlacementPolicyPropertiesObject' { +Describe 'New-AzVMwareVMPlacementPolicyPropertyObject' { It '__AllParameterSets' { { - $config = New-AzVMwareVMPlacementPolicyPropertiesObject -AffinityType 'Affinity' -Type 'VmVm' -VMMember @{"test"="test"} + $config = New-AzVMwareVMPlacementPolicyPropertyObject -AffinityType 'Affinity' -VMMember @{"test"="test"} $config.AffinityType | Should -Be "Affinity" } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/AzVMwareVirtualMachine.Recording.json b/src/VMware/VMware.Autorest/test/AzVMwareVirtualMachine.Recording.json index c7dfa430da12..0d91595182c0 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwareVirtualMachine.Recording.json +++ b/src/VMware/VMware.Autorest/test/AzVMwareVirtualMachine.Recording.json @@ -1,17 +1,17 @@ { - "AzVMwareVirtualMachine+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/virtualMachines?api-version=2023-03-01+1": { + "AzVMwareVirtualMachine+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/virtualMachines?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/virtualMachines?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/virtualMachines?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "92" ], - "x-ms-client-request-id": [ "487d45e8-6a95-48fe-ac02-82b83d881a1f" ], + "x-ms-unique-id": [ "98" ], + "x-ms-client-request-id": [ "5b504176-5ffe-4937-b9c6-e116a788f578" ], "CommandName": [ "Get-AzVMwareVirtualMachine" ], "FullCommandName": [ "Get-AzVMwareVirtualMachine_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -21,7 +21,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:09:06 GMT" ] + "Date": [ "Mon, 27 May 2024 07:07:32 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], @@ -31,19 +31,19 @@ "isContentBase64": false } }, - "AzVMwareVirtualMachine+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/virtualMachines/vm-209?api-version=2023-03-01+1": { + "AzVMwareVirtualMachine+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/virtualMachines/vm-209?api-version=2023-09-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupp9uh7g/providers/Microsoft.AVS/privateClouds/azps_test_cloudb092/clusters/l3cm9t/virtualMachines/vm-209?api-version=2023-03-01", + "RequestUri": "https://management.azure.com/subscriptions/cef41485-ad1e-4cc3-a652-4c2620b8a2d0/resourceGroups/testgroupob3cse/providers/Microsoft.AVS/privateClouds/azps_test_cloudbe0c/clusters/z5ydkq/virtualMachines/vm-209?api-version=2023-09-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "93" ], - "x-ms-client-request-id": [ "5aee0f03-bbb5-4e4b-829f-711bd8e4771b" ], + "x-ms-unique-id": [ "99" ], + "x-ms-client-request-id": [ "99d42ef9-6bd0-425c-94ee-f356db284741" ], "CommandName": [ "Get-AzVMwareVirtualMachine" ], "FullCommandName": [ "Get-AzVMwareVirtualMachine_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.9", "Az.VMware/0.4.0" ], + "User-Agent": [ "AzurePowershell/v11.2.0", "PSVersion/v7.4.2", "Az.VMware/0.4.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -53,7 +53,7 @@ "StatusCode": 200, "Headers": { "Server": [ "Rocket" ], - "Date": [ "Fri, 12 Jan 2024 19:09:06 GMT" ] + "Date": [ "Mon, 27 May 2024 07:07:32 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json" ], diff --git a/src/VMware/VMware.Autorest/test/AzVMwareVmHostPlacementPolicyPropertiesObject.Tests.ps1 b/src/VMware/VMware.Autorest/test/AzVMwareVmHostPlacementPolicyPropertyObject.Tests.ps1 similarity index 70% rename from src/VMware/VMware.Autorest/test/AzVMwareVmHostPlacementPolicyPropertiesObject.Tests.ps1 rename to src/VMware/VMware.Autorest/test/AzVMwareVmHostPlacementPolicyPropertyObject.Tests.ps1 index 5ff2ef59d511..a17d7ba41d93 100644 --- a/src/VMware/VMware.Autorest/test/AzVMwareVmHostPlacementPolicyPropertiesObject.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/AzVMwareVmHostPlacementPolicyPropertyObject.Tests.ps1 @@ -3,7 +3,7 @@ if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) -$TestRecordingFile = Join-Path $PSScriptRoot 'AzVMwareVmHostPlacementPolicyPropertiesObject.Recording.json' +$TestRecordingFile = Join-Path $PSScriptRoot 'AzVMwareVmHostPlacementPolicyPropertyObject.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -11,10 +11,10 @@ while(-not $mockingPath) { } . ($mockingPath | Select-Object -First 1).FullName -Describe 'AzVMwareVmHostPlacementPolicyPropertiesObject' { +Describe 'AzVMwareVmHostPlacementPolicyPropertyObject' { It '__AllParameterSets' { { - $config = New-AzVMwareVmHostPlacementPolicyPropertiesObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -Type 'VmHost' -VMMember @{"test"="test"} + $config = New-AzVMwareVmHostPlacementPolicyPropertyObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -VMMember @{"test"="test"} $config.AffinityType | Should -Be "AntiAffinity" } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareAuthorization.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareAuthorization.Tests.ps1 index b9f83fcc8b50..4c79524dab1c 100644 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareAuthorization.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Get-AzVMwareAuthorization.Tests.ps1 @@ -19,6 +19,10 @@ Describe 'Get-AzVMwareAuthorization' { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'GetViaIdentityPrivateCloud' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'Get' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareCloudLink.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareCloudLink.Tests.ps1 index 40b8d172951f..991e5046978f 100644 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareCloudLink.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Get-AzVMwareCloudLink.Tests.ps1 @@ -19,6 +19,10 @@ Describe 'Get-AzVMwareCloudLink' { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'GetViaIdentityPrivateCloud' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'Get' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareCluster.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareCluster.Tests.ps1 index d870ed58d75a..5aecd134a881 100644 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareCluster.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Get-AzVMwareCluster.Tests.ps1 @@ -19,6 +19,10 @@ Describe 'Get-AzVMwareCluster' { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'GetViaIdentityPrivateCloud' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'Get' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareDatastore.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareDatastore.Tests.ps1 index 8f2d804ee08c..a28c0db7dbe8 100644 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareDatastore.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Get-AzVMwareDatastore.Tests.ps1 @@ -19,10 +19,18 @@ Describe 'Get-AzVMwareDatastore' { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'GetViaIdentityPrivateCloud' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'Get' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'GetViaIdentityCluster' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'GetViaIdentity' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareGlobalReachConnection.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareGlobalReachConnection.Tests.ps1 index 62670e437f16..497930dabfde 100644 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareGlobalReachConnection.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Get-AzVMwareGlobalReachConnection.Tests.ps1 @@ -19,6 +19,10 @@ Describe 'Get-AzVMwareGlobalReachConnection' { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'GetViaIdentityPrivateCloud' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'Get' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareHcxEnterpriseSite.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareHcxEnterpriseSite.Tests.ps1 deleted file mode 100644 index 89311aa1af0c..000000000000 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareHcxEnterpriseSite.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzVMwareHcxEnterpriseSite')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzVMwareHcxEnterpriseSite.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzVMwareHcxEnterpriseSite' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentityPrivateCloud' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareScriptExecutionLog.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareIscsiPath.Tests.ps1 similarity index 73% rename from src/VMware/VMware.Autorest/test/Get-AzVMwareScriptExecutionLog.Tests.ps1 rename to src/VMware/VMware.Autorest/test/Get-AzVMwareIscsiPath.Tests.ps1 index 3b46faa60259..24247fd71d96 100644 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareScriptExecutionLog.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Get-AzVMwareIscsiPath.Tests.ps1 @@ -1,11 +1,11 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzVMwareScriptExecutionLog')) +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzVMwareIscsiPath')) { $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzVMwareScriptExecutionLog.Recording.json' + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzVMwareIscsiPath.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -14,16 +14,16 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzVMwareScriptExecutionLo . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Get-AzVMwareScriptExecutionLog' { - It 'GetViaIdentity' -skip { +Describe 'Get-AzVMwareIscsiPath' { + It 'Get' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - It 'Get' -skip { + It 'List' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - It 'GetViaIdentityPrivateCloud' -skip { + It 'GetViaIdentity' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } } diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwarePlacementPolicy.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwarePlacementPolicy.Tests.ps1 index 1fb0d0d8ecdb..3cd36e656142 100644 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwarePlacementPolicy.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Get-AzVMwarePlacementPolicy.Tests.ps1 @@ -19,10 +19,18 @@ Describe 'Get-AzVMwarePlacementPolicy' { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'GetViaIdentityPrivateCloud' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'Get' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'GetViaIdentityCluster' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'GetViaIdentity' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareScriptCmdlet.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareScriptCmdlet.Tests.ps1 deleted file mode 100644 index e9655ace0b64..000000000000 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareScriptCmdlet.Tests.ps1 +++ /dev/null @@ -1,37 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzVMwareScriptCmdlet')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzVMwareScriptCmdlet.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzVMwareScriptCmdlet' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentityScriptPackage' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentityPrivateCloud' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareScriptExecution.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareScriptExecution.Tests.ps1 deleted file mode 100644 index d9534a0a9a9a..000000000000 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareScriptExecution.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzVMwareScriptExecution')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzVMwareScriptExecution.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzVMwareScriptExecution' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentityPrivateCloud' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareScriptPackage.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareScriptPackage.Tests.ps1 deleted file mode 100644 index 71c66d4f2cb0..000000000000 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareScriptPackage.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzVMwareScriptPackage')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzVMwareScriptPackage.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzVMwareScriptPackage' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentityPrivateCloud' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareVirtualMachine.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareVirtualMachine.Tests.ps1 index 91fdafccfba7..7c3fc48e9091 100644 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareVirtualMachine.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Get-AzVMwareVirtualMachine.Tests.ps1 @@ -19,10 +19,18 @@ Describe 'Get-AzVMwareVirtualMachine' { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'GetViaIdentityPrivateCloud' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'Get' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'GetViaIdentityCluster' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'GetViaIdentity' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkDhcp.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkDhcp.Tests.ps1 deleted file mode 100644 index dba14cba8e63..000000000000 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkDhcp.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzVMwareWorkloadNetworkDhcp')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzVMwareWorkloadNetworkDhcp.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzVMwareWorkloadNetworkDhcp' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentityDhcpConfiguration' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkDnsService.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkDnsService.Tests.ps1 deleted file mode 100644 index 0e3c09332db1..000000000000 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkDnsService.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzVMwareWorkloadNetworkDnsService')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzVMwareWorkloadNetworkDnsService.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzVMwareWorkloadNetworkDnsService' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentityPrivateCloud' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 deleted file mode 100644 index a85c44c5a4d6..000000000000 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzVMwareWorkloadNetworkDnsZone')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzVMwareWorkloadNetworkDnsZone.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzVMwareWorkloadNetworkDnsZone' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentityPrivateCloud' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkGateway.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkGateway.Tests.ps1 deleted file mode 100644 index 5df06083b2ad..000000000000 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkGateway.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzVMwareWorkloadNetworkGateway')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzVMwareWorkloadNetworkGateway.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzVMwareWorkloadNetworkGateway' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentityPrivateCloud' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkPortMirroring.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkPortMirroring.Tests.ps1 deleted file mode 100644 index 7d59ec297aa4..000000000000 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkPortMirroring.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzVMwareWorkloadNetworkPortMirroring')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzVMwareWorkloadNetworkPortMirroring.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzVMwareWorkloadNetworkPortMirroring' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentityPrivateCloud' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkPublicIP.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkPublicIP.Tests.ps1 deleted file mode 100644 index 9f363e639173..000000000000 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkPublicIP.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzVMwareWorkloadNetworkPublicIP')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzVMwareWorkloadNetworkPublicIP.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzVMwareWorkloadNetworkPublicIP' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentityPrivateCloud' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkSegment.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkSegment.Tests.ps1 deleted file mode 100644 index ef41313a2d72..000000000000 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkSegment.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzVMwareWorkloadNetworkSegment')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzVMwareWorkloadNetworkSegment.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzVMwareWorkloadNetworkSegment' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentityPrivateCloud' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkVM.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkVM.Tests.ps1 deleted file mode 100644 index b5fe2d005104..000000000000 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkVM.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzVMwareWorkloadNetworkVM')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzVMwareWorkloadNetworkVM.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzVMwareWorkloadNetworkVM' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentityPrivateCloud' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 b/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 deleted file mode 100644 index c74b41f06012..000000000000 --- a/src/VMware/VMware.Autorest/test/Get-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Get-AzVMwareWorkloadNetworkVMGroup')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzVMwareWorkloadNetworkVMGroup.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Get-AzVMwareWorkloadNetworkVMGroup' { - It 'List' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'Get' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentityPrivateCloud' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'GetViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Lock-AzVMwareVirtualMachineMovement.Tests.ps1 b/src/VMware/VMware.Autorest/test/Lock-AzVMwareVirtualMachineMovement.Tests.ps1 deleted file mode 100644 index 97c749c0b9e6..000000000000 --- a/src/VMware/VMware.Autorest/test/Lock-AzVMwareVirtualMachineMovement.Tests.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Lock-AzVMwareVirtualMachineMovement')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Lock-AzVMwareVirtualMachineMovement.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Lock-AzVMwareVirtualMachineMovement' { - It 'RestrictExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'RestrictViaIdentityPrivateCloudExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'RestrictViaIdentityClusterExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'RestrictViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/New-AzVMWareAuthorization.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMWareAuthorization.Tests.ps1 index 5f72fd18b532..17f35c282005 100644 --- a/src/VMware/VMware.Autorest/test/New-AzVMWareAuthorization.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/New-AzVMWareAuthorization.Tests.ps1 @@ -18,4 +18,12 @@ Describe 'New-AzVMwareAuthorization' { It 'CreateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } + + It 'CreateViaIdentityPrivateCloudExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } } diff --git a/src/VMware/VMware.Autorest/test/New-AzVMWareCluster.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMWareCluster.Tests.ps1 index 1d239bf3d5a0..177932488b12 100644 --- a/src/VMware/VMware.Autorest/test/New-AzVMWareCluster.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/New-AzVMWareCluster.Tests.ps1 @@ -18,4 +18,12 @@ Describe 'New-AzVMwareCluster' { It 'CreateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } + + It 'CreateViaIdentityPrivateCloudExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } } diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareAddonVrPropertiesObject.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareAddonSrmPropertyObject.Tests.ps1 similarity index 86% rename from src/VMware/VMware.Autorest/test/New-AzVMwareAddonVrPropertiesObject.Tests.ps1 rename to src/VMware/VMware.Autorest/test/New-AzVMwareAddonSrmPropertyObject.Tests.ps1 index 7f0950a8564a..bb037e1eefc9 100644 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareAddonVrPropertiesObject.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/New-AzVMwareAddonSrmPropertyObject.Tests.ps1 @@ -1,11 +1,11 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareAddonVrPropertiesObject')) +if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareAddonSrmPropertyObject')) { $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareAddonVrPropertiesObject.Recording.json' + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareAddonSrmPropertyObject.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareAddonVrProperties . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzVMwareAddonVrPropertiesObject' { +Describe 'New-AzVMwareAddonSrmPropertyObject' { It '__AllParameterSets' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareAddonSrmPropertiesObject.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareAddonVrPropertyObject.Tests.ps1 similarity index 86% rename from src/VMware/VMware.Autorest/test/New-AzVMwareAddonSrmPropertiesObject.Tests.ps1 rename to src/VMware/VMware.Autorest/test/New-AzVMwareAddonVrPropertyObject.Tests.ps1 index c2f9c645fdf3..5575b2c288f3 100644 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareAddonSrmPropertiesObject.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/New-AzVMwareAddonVrPropertyObject.Tests.ps1 @@ -1,11 +1,11 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareAddonSrmPropertiesObject')) +if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareAddonVrPropertyObject')) { $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareAddonSrmPropertiesObject.Recording.json' + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareAddonVrPropertyObject.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareAddonSrmPropertie . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzVMwareAddonSrmPropertiesObject' { +Describe 'New-AzVMwareAddonVrPropertyObject' { It '__AllParameterSets' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareCloudLink.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareCloudLink.Tests.ps1 index 3bcd90c4a7ae..b6107526b955 100644 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareCloudLink.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/New-AzVMwareCloudLink.Tests.ps1 @@ -18,4 +18,12 @@ Describe 'New-AzVMwareCloudLink' { It 'CreateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } + + It 'CreateViaIdentityPrivateCloudExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } } diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareDatastore.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareDatastore.Tests.ps1 index 6e74a2482d2a..91b841d344a8 100644 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareDatastore.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/New-AzVMwareDatastore.Tests.ps1 @@ -18,4 +18,16 @@ Describe 'New-AzVMwareDatastore' { It 'CreateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } + + It 'CreateViaIdentityPrivateCloudExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaIdentityClusterExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } } diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareGlobalReachConnection.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareGlobalReachConnection.Tests.ps1 index a99199d781a0..4a64d75317a9 100644 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareGlobalReachConnection.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/New-AzVMwareGlobalReachConnection.Tests.ps1 @@ -18,4 +18,12 @@ Describe 'New-AzVMwareGlobalReachConnection' { It 'CreateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } + + It 'CreateViaIdentityPrivateCloudExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } } diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareHcxEnterpriseSite.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareHcxEnterpriseSite.Tests.ps1 deleted file mode 100644 index 9514254882e3..000000000000 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareHcxEnterpriseSite.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareHcxEnterpriseSite')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareHcxEnterpriseSite.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'New-AzVMwareHcxEnterpriseSite' { - It 'CreateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityPrivateCloudExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareIdentitySourceObject.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareIscsiPath.Tests.ps1 similarity index 68% rename from src/VMware/VMware.Autorest/test/New-AzVMwareIdentitySourceObject.Tests.ps1 rename to src/VMware/VMware.Autorest/test/New-AzVMwareIscsiPath.Tests.ps1 index 68b66358de65..a8b8fde3c54b 100644 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareIdentitySourceObject.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/New-AzVMwareIscsiPath.Tests.ps1 @@ -1,11 +1,11 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareIdentitySourceObject')) +if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareIscsiPath')) { $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareIdentitySourceObject.Recording.json' + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareIscsiPath.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -14,8 +14,12 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareIdentitySourceObj . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzVMwareIdentitySourceObject' { - It '__AllParameterSets' -skip { +Describe 'New-AzVMwareIscsiPath' { + It 'CreateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaIdentityExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } } diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwarePlacementPolicy.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwarePlacementPolicy.Tests.ps1 index 2986a6bf884c..cfa75c185561 100644 --- a/src/VMware/VMware.Autorest/test/New-AzVMwarePlacementPolicy.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/New-AzVMwarePlacementPolicy.Tests.ps1 @@ -18,4 +18,16 @@ Describe 'New-AzVMwarePlacementPolicy' { It 'CreateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } + + It 'CreateViaIdentityPrivateCloudExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaIdentityClusterExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } } diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareScriptExecution.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareScriptExecution.Tests.ps1 deleted file mode 100644 index 874c9928fea9..000000000000 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareScriptExecution.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareScriptExecution')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareScriptExecution.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'New-AzVMwareScriptExecution' { - It 'CreateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityPrivateCloudExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareVMPlacementPolicyPropertiesObject.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareVMPlacementPolicyPropertyObject.Tests.ps1 similarity index 83% rename from src/VMware/VMware.Autorest/test/New-AzVMwareVMPlacementPolicyPropertiesObject.Tests.ps1 rename to src/VMware/VMware.Autorest/test/New-AzVMwareVMPlacementPolicyPropertyObject.Tests.ps1 index cc7f8ece2fe3..a237adc1a06f 100644 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareVMPlacementPolicyPropertiesObject.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/New-AzVMwareVMPlacementPolicyPropertyObject.Tests.ps1 @@ -1,11 +1,11 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareVMPlacementPolicyPropertiesObject')) +if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareVMPlacementPolicyPropertyObject')) { $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareVMPlacementPolicyPropertiesObject.Recording.json' + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareVMPlacementPolicyPropertyObject.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareVMPlacementPolicy . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzVMwareVMPlacementPolicyPropertiesObject' { +Describe 'New-AzVMwareVMPlacementPolicyPropertyObject' { It '__AllParameterSets' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareVmHostPlacementPolicyPropertiesObject.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareVmHostPlacementPolicyPropertyObject.Tests.ps1 similarity index 82% rename from src/VMware/VMware.Autorest/test/New-AzVMwareVmHostPlacementPolicyPropertiesObject.Tests.ps1 rename to src/VMware/VMware.Autorest/test/New-AzVMwareVmHostPlacementPolicyPropertyObject.Tests.ps1 index df4744c45acf..b4cbf65fa14f 100644 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareVmHostPlacementPolicyPropertiesObject.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/New-AzVMwareVmHostPlacementPolicyPropertyObject.Tests.ps1 @@ -1,11 +1,11 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareVmHostPlacementPolicyPropertiesObject')) +if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareVmHostPlacementPolicyPropertyObject')) { $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareVmHostPlacementPolicyPropertiesObject.Recording.json' + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareVmHostPlacementPolicyPropertyObject.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -14,7 +14,7 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareVmHostPlacementPo . ($mockingPath | Select-Object -First 1).FullName } -Describe 'New-AzVMwareVmHostPlacementPolicyPropertiesObject' { +Describe 'New-AzVMwareVmHostPlacementPolicyPropertyObject' { It '__AllParameterSets' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkDhcp.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkDhcp.Tests.ps1 deleted file mode 100644 index 4368f0fb5a36..000000000000 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkDhcp.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareWorkloadNetworkDhcp')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareWorkloadNetworkDhcp.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'New-AzVMwareWorkloadNetworkDhcp' { - It 'CreateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityPrivateCloudExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkDnsService.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkDnsService.Tests.ps1 deleted file mode 100644 index 1ecfc96b3937..000000000000 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkDnsService.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareWorkloadNetworkDnsService')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareWorkloadNetworkDnsService.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'New-AzVMwareWorkloadNetworkDnsService' { - It 'CreateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityPrivateCloudExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 deleted file mode 100644 index 356e2cbb2821..000000000000 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareWorkloadNetworkDnsZone')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareWorkloadNetworkDnsZone.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'New-AzVMwareWorkloadNetworkDnsZone' { - It 'CreateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityPrivateCloudExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkPortMirroring.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkPortMirroring.Tests.ps1 deleted file mode 100644 index b71f9b7f0f34..000000000000 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkPortMirroring.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareWorkloadNetworkPortMirroring')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareWorkloadNetworkPortMirroring.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'New-AzVMwareWorkloadNetworkPortMirroring' { - It 'CreateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityPrivateCloudExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkPublicIP.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkPublicIP.Tests.ps1 deleted file mode 100644 index 64888706de6f..000000000000 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkPublicIP.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareWorkloadNetworkPublicIP')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareWorkloadNetworkPublicIP.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'New-AzVMwareWorkloadNetworkPublicIP' { - It 'CreateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityPrivateCloudExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkSegment.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkSegment.Tests.ps1 deleted file mode 100644 index 8fb2beba215c..000000000000 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkSegment.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareWorkloadNetworkSegment')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareWorkloadNetworkSegment.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'New-AzVMwareWorkloadNetworkSegment' { - It 'CreateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityPrivateCloudExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 b/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 deleted file mode 100644 index 7b6982940eb6..000000000000 --- a/src/VMware/VMware.Autorest/test/New-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'New-AzVMwareWorkloadNetworkVMGroup')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzVMwareWorkloadNetworkVMGroup.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'New-AzVMwareWorkloadNetworkVMGroup' { - It 'CreateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityPrivateCloudExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CreateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Remove-AzVMwareAuthorization.Tests.ps1 b/src/VMware/VMware.Autorest/test/Remove-AzVMwareAuthorization.Tests.ps1 index e53c464fc286..e982050f297b 100644 --- a/src/VMware/VMware.Autorest/test/Remove-AzVMwareAuthorization.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Remove-AzVMwareAuthorization.Tests.ps1 @@ -19,6 +19,10 @@ Describe 'Remove-AzVMwareAuthorization' { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'DeleteViaIdentityPrivateCloud' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'DeleteViaIdentity' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Remove-AzVMwareCloudLink.Tests.ps1 b/src/VMware/VMware.Autorest/test/Remove-AzVMwareCloudLink.Tests.ps1 index cf8dc30296d7..97beb9ad426f 100644 --- a/src/VMware/VMware.Autorest/test/Remove-AzVMwareCloudLink.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Remove-AzVMwareCloudLink.Tests.ps1 @@ -19,6 +19,10 @@ Describe 'Remove-AzVMwareCloudLink' { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'DeleteViaIdentityPrivateCloud' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'DeleteViaIdentity' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Remove-AzVMwareCluster.Tests.ps1 b/src/VMware/VMware.Autorest/test/Remove-AzVMwareCluster.Tests.ps1 index ce655606deff..ea311bf28304 100644 --- a/src/VMware/VMware.Autorest/test/Remove-AzVMwareCluster.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Remove-AzVMwareCluster.Tests.ps1 @@ -19,6 +19,10 @@ Describe 'Remove-AzVMwareCluster' { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'DeleteViaIdentityPrivateCloud' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'DeleteViaIdentity' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Remove-AzVMwareDatastore.Tests.ps1 b/src/VMware/VMware.Autorest/test/Remove-AzVMwareDatastore.Tests.ps1 index 7b4cfd389a6f..a4593753e11f 100644 --- a/src/VMware/VMware.Autorest/test/Remove-AzVMwareDatastore.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Remove-AzVMwareDatastore.Tests.ps1 @@ -19,6 +19,14 @@ Describe 'Remove-AzVMwareDatastore' { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'DeleteViaIdentityPrivateCloud' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DeleteViaIdentityCluster' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'DeleteViaIdentity' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Remove-AzVMwareGlobalReachConnection.Tests.ps1 b/src/VMware/VMware.Autorest/test/Remove-AzVMwareGlobalReachConnection.Tests.ps1 index d60f1d6c664d..8c4b28ff2e1c 100644 --- a/src/VMware/VMware.Autorest/test/Remove-AzVMwareGlobalReachConnection.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Remove-AzVMwareGlobalReachConnection.Tests.ps1 @@ -19,6 +19,10 @@ Describe 'Remove-AzVMwareGlobalReachConnection' { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'DeleteViaIdentityPrivateCloud' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'DeleteViaIdentity' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Remove-AzVMwareHcxEnterpriseSite.Tests.ps1 b/src/VMware/VMware.Autorest/test/Remove-AzVMwareHcxEnterpriseSite.Tests.ps1 deleted file mode 100644 index 1635ff2ada7b..000000000000 --- a/src/VMware/VMware.Autorest/test/Remove-AzVMwareHcxEnterpriseSite.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzVMwareHcxEnterpriseSite')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzVMwareHcxEnterpriseSite.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Remove-AzVMwareHcxEnterpriseSite' { - It 'Delete' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentityPrivateCloud' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Remove-AzVMwareScriptExecution.Tests.ps1 b/src/VMware/VMware.Autorest/test/Remove-AzVMwareIscsiPath.Tests.ps1 similarity index 72% rename from src/VMware/VMware.Autorest/test/Remove-AzVMwareScriptExecution.Tests.ps1 rename to src/VMware/VMware.Autorest/test/Remove-AzVMwareIscsiPath.Tests.ps1 index c29e29a921b8..27d09987c00f 100644 --- a/src/VMware/VMware.Autorest/test/Remove-AzVMwareScriptExecution.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Remove-AzVMwareIscsiPath.Tests.ps1 @@ -1,11 +1,11 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzVMwareScriptExecution')) +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzVMwareIscsiPath')) { $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzVMwareScriptExecution.Recording.json' + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzVMwareIscsiPath.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -14,15 +14,11 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzVMwareScriptExecutio . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Remove-AzVMwareScriptExecution' { +Describe 'Remove-AzVMwareIscsiPath' { It 'Delete' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - It 'DeleteViaIdentityPrivateCloud' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - It 'DeleteViaIdentity' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Remove-AzVMwarePlacementPolicy.Tests.ps1 b/src/VMware/VMware.Autorest/test/Remove-AzVMwarePlacementPolicy.Tests.ps1 index e10aec33a36a..79f7c64267b3 100644 --- a/src/VMware/VMware.Autorest/test/Remove-AzVMwarePlacementPolicy.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Remove-AzVMwarePlacementPolicy.Tests.ps1 @@ -19,6 +19,14 @@ Describe 'Remove-AzVMwarePlacementPolicy' { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'DeleteViaIdentityPrivateCloud' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DeleteViaIdentityCluster' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'DeleteViaIdentity' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkDhcp.Tests.ps1 b/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkDhcp.Tests.ps1 deleted file mode 100644 index acbbf49e1349..000000000000 --- a/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkDhcp.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzVMwareWorkloadNetworkDhcp')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzVMwareWorkloadNetworkDhcp.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Remove-AzVMwareWorkloadNetworkDhcp' { - It 'Delete' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentityPrivateCloud' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkDnsService.Tests.ps1 b/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkDnsService.Tests.ps1 deleted file mode 100644 index 24d2e0700488..000000000000 --- a/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkDnsService.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzVMwareWorkloadNetworkDnsService')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzVMwareWorkloadNetworkDnsService.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Remove-AzVMwareWorkloadNetworkDnsService' { - It 'Delete' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentityDnsService' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 b/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 deleted file mode 100644 index 5d38d5bef198..000000000000 --- a/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzVMwareWorkloadNetworkDnsZone')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzVMwareWorkloadNetworkDnsZone.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Remove-AzVMwareWorkloadNetworkDnsZone' { - It 'Delete' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentityDnsZone' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkPortMirroring.Tests.ps1 b/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkPortMirroring.Tests.ps1 deleted file mode 100644 index 19a0320abe20..000000000000 --- a/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkPortMirroring.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzVMwareWorkloadNetworkPortMirroring')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzVMwareWorkloadNetworkPortMirroring.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Remove-AzVMwareWorkloadNetworkPortMirroring' { - It 'Delete' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentityPortMirroringProfile' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkPublicIP.Tests.ps1 b/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkPublicIP.Tests.ps1 deleted file mode 100644 index 7a04da91f302..000000000000 --- a/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkPublicIP.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzVMwareWorkloadNetworkPublicIP')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzVMwareWorkloadNetworkPublicIP.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Remove-AzVMwareWorkloadNetworkPublicIP' { - It 'Delete' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentityPublicIP' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkSegment.Tests.ps1 b/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkSegment.Tests.ps1 deleted file mode 100644 index 1713e34a1b5a..000000000000 --- a/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkSegment.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzVMwareWorkloadNetworkSegment')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzVMwareWorkloadNetworkSegment.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Remove-AzVMwareWorkloadNetworkSegment' { - It 'Delete' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentityPrivateCloud' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 b/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 deleted file mode 100644 index d209b536fcf9..000000000000 --- a/src/VMware/VMware.Autorest/test/Remove-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzVMwareWorkloadNetworkVMGroup')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzVMwareWorkloadNetworkVMGroup.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Remove-AzVMwareWorkloadNetworkVMGroup' { - It 'Delete' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentityVMGroup' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Test-AzVMWareLocationTrialAvailability.Tests.ps1 b/src/VMware/VMware.Autorest/test/Test-AzVMWareLocationTrialAvailability.Tests.ps1 index c67a26942bfc..228fa3df9410 100644 --- a/src/VMware/VMware.Autorest/test/Test-AzVMWareLocationTrialAvailability.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Test-AzVMWareLocationTrialAvailability.Tests.ps1 @@ -18,12 +18,4 @@ Describe 'Test-AzVMwareLocationTrialAvailability' { It 'CheckExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - - It 'Check' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'CheckViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } } diff --git a/src/VMware/VMware.Autorest/test/Update-AzVMwareCluster.Tests.ps1 b/src/VMware/VMware.Autorest/test/Update-AzVMwareCluster.Tests.ps1 index e7ac24812cf4..b1f2d0ddd476 100644 --- a/src/VMware/VMware.Autorest/test/Update-AzVMwareCluster.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Update-AzVMwareCluster.Tests.ps1 @@ -19,6 +19,10 @@ Describe 'Update-AzVMwareCluster' { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'UpdateViaIdentityPrivateCloudExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'UpdateViaIdentityExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkDhcp.Tests.ps1 b/src/VMware/VMware.Autorest/test/Update-AzVMwareIscsiPath.Tests.ps1 similarity index 71% rename from src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkDhcp.Tests.ps1 rename to src/VMware/VMware.Autorest/test/Update-AzVMwareIscsiPath.Tests.ps1 index be8360833da0..bdbc9947829a 100644 --- a/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkDhcp.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Update-AzVMwareIscsiPath.Tests.ps1 @@ -1,11 +1,11 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Update-AzVMwareWorkloadNetworkDhcp')) +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzVMwareIscsiPath')) { $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzVMwareWorkloadNetworkDhcp.Recording.json' + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzVMwareIscsiPath.Recording.json' $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File @@ -14,15 +14,11 @@ if(($null -eq $TestName) -or ($TestName -contains 'Update-AzVMwareWorkloadNetwor . ($mockingPath | Select-Object -First 1).FullName } -Describe 'Update-AzVMwareWorkloadNetworkDhcp' { +Describe 'Update-AzVMwareIscsiPath' { It 'UpdateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - It 'UpdateViaIdentityPrivateCloudExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - It 'UpdateViaIdentityExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Update-AzVMwarePlacementPolicy.Tests.ps1 b/src/VMware/VMware.Autorest/test/Update-AzVMwarePlacementPolicy.Tests.ps1 index 310857e078d8..61038e03ed10 100644 --- a/src/VMware/VMware.Autorest/test/Update-AzVMwarePlacementPolicy.Tests.ps1 +++ b/src/VMware/VMware.Autorest/test/Update-AzVMwarePlacementPolicy.Tests.ps1 @@ -19,6 +19,14 @@ Describe 'Update-AzVMwarePlacementPolicy' { { throw [System.NotImplementedException] } | Should -Not -Throw } + It 'UpdateViaIdentityPrivateCloudExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityClusterExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + It 'UpdateViaIdentityExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkDnsService.Tests.ps1 b/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkDnsService.Tests.ps1 deleted file mode 100644 index 803cc65ee578..000000000000 --- a/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkDnsService.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Update-AzVMwareWorkloadNetworkDnsService')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzVMwareWorkloadNetworkDnsService.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Update-AzVMwareWorkloadNetworkDnsService' { - It 'UpdateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityPrivateCloudExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 b/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 deleted file mode 100644 index 45c273f985b0..000000000000 --- a/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkDnsZone.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Update-AzVMwareWorkloadNetworkDnsZone')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzVMwareWorkloadNetworkDnsZone.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Update-AzVMwareWorkloadNetworkDnsZone' { - It 'UpdateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityPrivateCloudExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkPortMirroring.Tests.ps1 b/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkPortMirroring.Tests.ps1 deleted file mode 100644 index b8ec8a149855..000000000000 --- a/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkPortMirroring.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Update-AzVMwareWorkloadNetworkPortMirroring')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzVMwareWorkloadNetworkPortMirroring.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Update-AzVMwareWorkloadNetworkPortMirroring' { - It 'UpdateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityPrivateCloudExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkSegment.Tests.ps1 b/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkSegment.Tests.ps1 deleted file mode 100644 index e6c18c756cd1..000000000000 --- a/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkSegment.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Update-AzVMwareWorkloadNetworkSegment')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzVMwareWorkloadNetworkSegment.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Update-AzVMwareWorkloadNetworkSegment' { - It 'UpdateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityPrivateCloudExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 b/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 deleted file mode 100644 index 12eaf3e48a0f..000000000000 --- a/src/VMware/VMware.Autorest/test/Update-AzVMwareWorkloadNetworkVMGroup.Tests.ps1 +++ /dev/null @@ -1,29 +0,0 @@ -if(($null -eq $TestName) -or ($TestName -contains 'Update-AzVMwareWorkloadNetworkVMGroup')) -{ - $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' - if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' - } - . ($loadEnvPath) - $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzVMwareWorkloadNetworkVMGroup.Recording.json' - $currentPath = $PSScriptRoot - while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent - } - . ($mockingPath | Select-Object -First 1).FullName -} - -Describe 'Update-AzVMwareWorkloadNetworkVMGroup' { - It 'UpdateExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityPrivateCloudExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/VMware/VMware.Autorest/test/env.json b/src/VMware/VMware.Autorest/test/env.json index 412e67e74c6f..b24301382490 100644 --- a/src/VMware/VMware.Autorest/test/env.json +++ b/src/VMware/VMware.Autorest/test/env.json @@ -1,18 +1,18 @@ { - "resourceGroup2": "testgroupp9uh7g", - "rstr4": "p9uh7g", "policy1": "policy1", - "privateCloudName2": "azps_test_cloudukel", - "rstr3": "2hlsk5", - "location1": "centralus", - "rstr1": "l3cm9t", + "privateCloudName3": "azps_test_cloudkojn", + "rstr2": "0vmczr", + "privateCloudName1": "azps_test_cloudbe0c", + "rstr3": "26fqx9", + "privateCloudName2": "azps_test_cloudbo98", + "location2": "westcentralus", + "resourceGroup3": "testgroupob3cse", + "rstr4": "ob3cse", + "rstr1": "z5ydkq", + "policy2": "policy2", "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", "SubscriptionId": "cef41485-ad1e-4cc3-a652-4c2620b8a2d0", - "resourceGroup3": "testgroupp9uh7g", - "rstr2": "5krpza", - "privateCloudName1": "azps_test_cloudb092", - "policy2": "policy2", - "privateCloudName3": "azps_test_cloudaoz1", - "location2": "westcentralus", - "resourceGroup1": "testgroupp9uh7g" + "resourceGroup2": "testgroupob3cse", + "resourceGroup1": "testgroupob3cse", + "location1": "centralus" } diff --git a/src/VMware/VMware/Az.VMware.psd1 b/src/VMware/VMware/Az.VMware.psd1 index 7e5a71829253..638b24537478 100644 --- a/src/VMware/VMware/Az.VMware.psd1 +++ b/src/VMware/VMware/Az.VMware.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 23/04/2024 +# Generated on: 5/27/2024 # @{ @@ -51,19 +51,19 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.19.0'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'VMware.Autorest/bin/Az.VMware.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'VMware.Autorest\Az.VMware.format.ps1xml' +FormatsToProcess = 'VMware.Autorest/Az.VMware.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('VMware.Autorest/Az.VMware.psm1') @@ -72,31 +72,32 @@ NestedModules = @('VMware.Autorest/Az.VMware.psm1') FunctionsToExport = 'Get-AzVMwareAddon', 'Get-AzVMwareAuthorization', 'Get-AzVMwareCloudLink', 'Get-AzVMwareCluster', 'Get-AzVMwareClusterZone', 'Get-AzVMwareDatastore', - 'Get-AzVMwareGlobalReachConnection', 'Get-AzVMwarePlacementPolicy', - 'Get-AzVMwarePrivateCloud', + 'Get-AzVMwareGlobalReachConnection', 'Get-AzVMwareIscsiPath', + 'Get-AzVMwarePlacementPolicy', 'Get-AzVMwarePrivateCloud', 'Get-AzVMwarePrivateCloudAdminCredential', 'Get-AzVMwareVirtualMachine', 'New-AzVMwareAddon', - 'New-AzVMwareAddonSrmPropertiesObject', - 'New-AzVMwareAddonVrPropertiesObject', 'New-AzVMwareAuthorization', + 'New-AzVMwareAddonSrmPropertyObject', + 'New-AzVMwareAddonVrPropertyObject', 'New-AzVMwareAuthorization', 'New-AzVMwareCloudLink', 'New-AzVMwareCluster', 'New-AzVMwareDatastore', 'New-AzVMwareGlobalReachConnection', - 'New-AzVMwareIdentitySourceObject', 'New-AzVMwarePlacementPolicy', + 'New-AzVMwareIscsiPath', 'New-AzVMwarePlacementPolicy', 'New-AzVMwarePrivateCloud', 'New-AzVMwarePrivateCloudNsxtPassword', 'New-AzVMwarePrivateCloudVcenterPassword', 'New-AzVMwarePSCredentialExecutionParameterObject', 'New-AzVMwareScriptSecureStringExecutionParameterObject', 'New-AzVMwareScriptStringExecutionParameterObject', - 'New-AzVMwareVmHostPlacementPolicyPropertiesObject', - 'New-AzVMwareVMPlacementPolicyPropertiesObject', + 'New-AzVMwareVmHostPlacementPolicyPropertyObject', + 'New-AzVMwareVMPlacementPolicyPropertyObject', 'Remove-AzVMwareAddon', 'Remove-AzVMwareAuthorization', 'Remove-AzVMwareCloudLink', 'Remove-AzVMwareCluster', 'Remove-AzVMwareDatastore', 'Remove-AzVMwareGlobalReachConnection', - 'Remove-AzVMwarePlacementPolicy', 'Remove-AzVMwarePrivateCloud', + 'Remove-AzVMwareIscsiPath', 'Remove-AzVMwarePlacementPolicy', + 'Remove-AzVMwarePrivateCloud', 'Test-AzVMwareLocationQuotaAvailability', 'Test-AzVMwareLocationTrialAvailability', 'Update-AzVMwareAuthorization', 'Update-AzVMwareCloudLink', 'Update-AzVMwareCluster', 'Update-AzVMwareDatastore', - 'Update-AzVMwareGlobalReachConnection', + 'Update-AzVMwareGlobalReachConnection', 'Update-AzVMwareIscsiPath', 'Update-AzVMwarePlacementPolicy', 'Update-AzVMwarePrivateCloud' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. @@ -123,7 +124,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','VMware' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'VMware' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -148,7 +149,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/VMware/VMware/help/Az.VMware.md b/src/VMware/VMware/help/Az.VMware.md index 62513c95543c..2a4d7e468c99 100644 --- a/src/VMware/VMware/help/Az.VMware.md +++ b/src/VMware/VMware/help/Az.VMware.md @@ -15,64 +15,67 @@ Microsoft Azure PowerShell: Azure VMware Solution cmdlets Get an addon by name in a private cloud ### [Get-AzVMwareAuthorization](Get-AzVMwareAuthorization.md) -Get an ExpressRoute Circuit Authorization by name in a private cloud +Get a ExpressRouteAuthorization ### [Get-AzVMwareCloudLink](Get-AzVMwareCloudLink.md) -Get an cloud link by name in a private cloud +Get a CloudLink ### [Get-AzVMwareCluster](Get-AzVMwareCluster.md) -Get a cluster by name in a private cloud +Get a Cluster ### [Get-AzVMwareClusterZone](Get-AzVMwareClusterZone.md) List hosts by zone in a cluster ### [Get-AzVMwareDatastore](Get-AzVMwareDatastore.md) -Get a datastore in a private cloud cluster +Get a Datastore ### [Get-AzVMwareGlobalReachConnection](Get-AzVMwareGlobalReachConnection.md) -Get a global reach connection by name in a private cloud +Get a GlobalReachConnection + +### [Get-AzVMwareIscsiPath](Get-AzVMwareIscsiPath.md) +Get a IscsiPath ### [Get-AzVMwarePlacementPolicy](Get-AzVMwarePlacementPolicy.md) -Get a placement policy by name in a private cloud cluster +Get a PlacementPolicy ### [Get-AzVMwarePrivateCloud](Get-AzVMwarePrivateCloud.md) -Get a private cloud +Get a PrivateCloud ### [Get-AzVMwarePrivateCloudAdminCredential](Get-AzVMwarePrivateCloudAdminCredential.md) List the admin credentials for the private cloud ### [Get-AzVMwareVirtualMachine](Get-AzVMwareVirtualMachine.md) -Get a virtual machine by id in a private cloud cluster +Get a VirtualMachine ### [New-AzVMwareAddon](New-AzVMwareAddon.md) Create or update a addon in a private cloud -### [New-AzVMwareAddonSrmPropertiesObject](New-AzVMwareAddonSrmPropertiesObject.md) -Create a in-memory object for AddonSrmProperties +### [New-AzVMwareAddonSrmPropertyObject](New-AzVMwareAddonSrmPropertyObject.md) +Create an in-memory object for AddonSrmProperties. -### [New-AzVMwareAddonVrPropertiesObject](New-AzVMwareAddonVrPropertiesObject.md) -Create a in-memory object for AddonVrProperties +### [New-AzVMwareAddonVrPropertyObject](New-AzVMwareAddonVrPropertyObject.md) +Create an in-memory object for AddonVrProperties. ### [New-AzVMwareAuthorization](New-AzVMwareAuthorization.md) -Create an ExpressRoute Circuit Authorization in a private cloud +Create a ExpressRouteAuthorization ### [New-AzVMwareCloudLink](New-AzVMwareCloudLink.md) -Create a cloud link in a private cloud +Create a CloudLink ### [New-AzVMwareCluster](New-AzVMwareCluster.md) -Create a cluster in a private cloud +Create a Cluster ### [New-AzVMwareDatastore](New-AzVMwareDatastore.md) -Create a datastore in a private cloud cluster +Create a Datastore ### [New-AzVMwareGlobalReachConnection](New-AzVMwareGlobalReachConnection.md) -Create a global reach connection in a private cloud +Create a GlobalReachConnection -### [New-AzVMwareIdentitySourceObject](New-AzVMwareIdentitySourceObject.md) -Create an in-memory object for IdentitySource. +### [New-AzVMwareIscsiPath](New-AzVMwareIscsiPath.md) +Create a IscsiPath ### [New-AzVMwarePlacementPolicy](New-AzVMwarePlacementPolicy.md) -Create a placement policy in a private cloud cluster +Create a PlacementPolicy ### [New-AzVMwarePrivateCloud](New-AzVMwarePrivateCloud.md) Create a private cloud @@ -84,40 +87,43 @@ Rotate the NSX-T Manager password Rotate the vCenter password ### [New-AzVMwarePSCredentialExecutionParameterObject](New-AzVMwarePSCredentialExecutionParameterObject.md) -Create a in-memory object for PSCredentialExecutionParameter +Create an in-memory object for PSCredentialExecutionParameter. ### [New-AzVMwareScriptSecureStringExecutionParameterObject](New-AzVMwareScriptSecureStringExecutionParameterObject.md) -Create a in-memory object for ScriptSecureStringExecutionParameter +Create an in-memory object for ScriptSecureStringExecutionParameter. ### [New-AzVMwareScriptStringExecutionParameterObject](New-AzVMwareScriptStringExecutionParameterObject.md) -Create a in-memory object for ScriptStringExecutionParameter +Create an in-memory object for ScriptStringExecutionParameter. -### [New-AzVMwareVmHostPlacementPolicyPropertiesObject](New-AzVMwareVmHostPlacementPolicyPropertiesObject.md) +### [New-AzVMwareVmHostPlacementPolicyPropertyObject](New-AzVMwareVmHostPlacementPolicyPropertyObject.md) Create an in-memory object for VmHostPlacementPolicyProperties. -### [New-AzVMwareVMPlacementPolicyPropertiesObject](New-AzVMwareVMPlacementPolicyPropertiesObject.md) +### [New-AzVMwareVMPlacementPolicyPropertyObject](New-AzVMwareVMPlacementPolicyPropertyObject.md) Create an in-memory object for VMPlacementPolicyProperties. ### [Remove-AzVMwareAddon](Remove-AzVMwareAddon.md) Delete a addon in a private cloud ### [Remove-AzVMwareAuthorization](Remove-AzVMwareAuthorization.md) -Delete an ExpressRoute Circuit Authorization in a private cloud +Delete a ExpressRouteAuthorization ### [Remove-AzVMwareCloudLink](Remove-AzVMwareCloudLink.md) -Delete a cloud link in a private cloud +Delete a CloudLink ### [Remove-AzVMwareCluster](Remove-AzVMwareCluster.md) -Delete a cluster in a private cloud +Delete a Cluster ### [Remove-AzVMwareDatastore](Remove-AzVMwareDatastore.md) -Delete a datastore in a private cloud cluster +Delete a Datastore ### [Remove-AzVMwareGlobalReachConnection](Remove-AzVMwareGlobalReachConnection.md) -Delete a global reach connection in a private cloud +Delete a GlobalReachConnection + +### [Remove-AzVMwareIscsiPath](Remove-AzVMwareIscsiPath.md) +Delete a IscsiPath ### [Remove-AzVMwarePlacementPolicy](Remove-AzVMwarePlacementPolicy.md) -Delete a placement policy in a private cloud cluster +Delete a PlacementPolicy ### [Remove-AzVMwarePrivateCloud](Remove-AzVMwarePrivateCloud.md) Delete a private cloud @@ -129,23 +135,26 @@ Return quota for subscription by region Return trial status for subscription by region ### [Update-AzVMwareAuthorization](Update-AzVMwareAuthorization.md) -Update an ExpressRoute Circuit Authorization in a private cloud +Update a ExpressRouteAuthorization ### [Update-AzVMwareCloudLink](Update-AzVMwareCloudLink.md) -Update a cloud link in a private cloud +Update a CloudLink ### [Update-AzVMwareCluster](Update-AzVMwareCluster.md) -Update a cluster in a private cloud +Update a Cluster ### [Update-AzVMwareDatastore](Update-AzVMwareDatastore.md) -Update a datastore in a private cloud cluster +Update a Datastore ### [Update-AzVMwareGlobalReachConnection](Update-AzVMwareGlobalReachConnection.md) -Update a global reach connection in a private cloud +Update a GlobalReachConnection + +### [Update-AzVMwareIscsiPath](Update-AzVMwareIscsiPath.md) +Update a IscsiPath ### [Update-AzVMwarePlacementPolicy](Update-AzVMwarePlacementPolicy.md) -Update a placement policy in a private cloud cluster +Update a PlacementPolicy ### [Update-AzVMwarePrivateCloud](Update-AzVMwarePrivateCloud.md) -Update a private cloud +Update a PrivateCloud diff --git a/src/VMware/VMware/help/Get-AzVMwareAddon.md b/src/VMware/VMware/help/Get-AzVMwareAddon.md index e60678e2befe..dd7d30c5ad7d 100644 --- a/src/VMware/VMware/help/Get-AzVMwareAddon.md +++ b/src/VMware/VMware/help/Get-AzVMwareAddon.md @@ -15,19 +15,19 @@ Get an addon by name in a private cloud ### List (Default) ``` Get-AzVMwareAddon -PrivateCloudName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareAddon -PrivateCloudName -ResourceGroupName [-SubscriptionId ] - -AddonType [-DefaultProfile ] [] + -AddonType [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareAddon -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -125,6 +125,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwareAuthorization.md b/src/VMware/VMware/help/Get-AzVMwareAuthorization.md index 7740f0d8f9fc..16652a79bcd2 100644 --- a/src/VMware/VMware/help/Get-AzVMwareAuthorization.md +++ b/src/VMware/VMware/help/Get-AzVMwareAuthorization.md @@ -8,37 +8,37 @@ schema: 2.0.0 # Get-AzVMwareAuthorization ## SYNOPSIS -Get an ExpressRoute Circuit Authorization by name in a private cloud +Get a ExpressRouteAuthorization ## SYNTAX ### List (Default) ``` Get-AzVMwareAuthorization -PrivateCloudName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareAuthorization -Name -PrivateCloudInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareAuthorization -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareAuthorization -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION -Get an ExpressRoute Circuit Authorization by name in a private cloud +Get a ExpressRouteAuthorization ## EXAMPLES @@ -102,7 +102,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the ExpressRoute Circuit Authorization in the private cloud +Name of the ExpressRoute Circuit Authorization ```yaml Type: System.String @@ -146,6 +146,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -164,6 +179,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware/help/Get-AzVMwareCloudLink.md b/src/VMware/VMware/help/Get-AzVMwareCloudLink.md index ec1fdff8928b..7c04151f0bbb 100644 --- a/src/VMware/VMware/help/Get-AzVMwareCloudLink.md +++ b/src/VMware/VMware/help/Get-AzVMwareCloudLink.md @@ -8,37 +8,37 @@ schema: 2.0.0 # Get-AzVMwareCloudLink ## SYNOPSIS -Get an cloud link by name in a private cloud +Get a CloudLink ## SYNTAX ### List (Default) ``` Get-AzVMwareCloudLink -PrivateCloudName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareCloudLink -Name -PrivateCloudInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareCloudLink -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareCloudLink -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION -Get an cloud link by name in a private cloud +Get a CloudLink ## EXAMPLES @@ -102,7 +102,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the cloud link resource +Name of the cloud link. ```yaml Type: System.String @@ -146,6 +146,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -164,6 +179,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware/help/Get-AzVMwareCluster.md b/src/VMware/VMware/help/Get-AzVMwareCluster.md index 83085a0a2f08..2bb3887b6c70 100644 --- a/src/VMware/VMware/help/Get-AzVMwareCluster.md +++ b/src/VMware/VMware/help/Get-AzVMwareCluster.md @@ -8,37 +8,37 @@ schema: 2.0.0 # Get-AzVMwareCluster ## SYNOPSIS -Get a cluster by name in a private cloud +Get a Cluster ## SYNTAX ### List (Default) ``` Get-AzVMwareCluster -PrivateCloudName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareCluster -Name -PrivateCloudInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareCluster -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareCluster -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION -Get a cluster by name in a private cloud +Get a Cluster ## EXAMPLES @@ -102,7 +102,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -146,6 +146,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -164,6 +179,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware/help/Get-AzVMwareClusterZone.md b/src/VMware/VMware/help/Get-AzVMwareClusterZone.md index 3d4627b39453..01888c22763b 100644 --- a/src/VMware/VMware/help/Get-AzVMwareClusterZone.md +++ b/src/VMware/VMware/help/Get-AzVMwareClusterZone.md @@ -14,7 +14,7 @@ List hosts by zone in a cluster ``` Get-AzVMwareClusterZone -ClusterName -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -39,7 +39,7 @@ List hosts by zone in a cluster ## PARAMETERS ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -84,6 +84,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -102,6 +117,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware/help/Get-AzVMwareDatastore.md b/src/VMware/VMware/help/Get-AzVMwareDatastore.md index 1d8b8d1fc0c5..6e92989e0f3f 100644 --- a/src/VMware/VMware/help/Get-AzVMwareDatastore.md +++ b/src/VMware/VMware/help/Get-AzVMwareDatastore.md @@ -8,44 +8,44 @@ schema: 2.0.0 # Get-AzVMwareDatastore ## SYNOPSIS -Get a datastore in a private cloud cluster +Get a Datastore ## SYNTAX ### List (Default) ``` Get-AzVMwareDatastore -ClusterName -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareDatastore -ClusterName -Name -PrivateCloudInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareDatastore -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentityCluster ``` Get-AzVMwareDatastore -Name -ClusterInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareDatastore -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION -Get a datastore in a private cloud cluster +Get a Datastore ## EXAMPLES @@ -94,7 +94,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -140,7 +140,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the datastore in the private cloud cluster +Name of the datastore ```yaml Type: System.String @@ -184,6 +184,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -202,6 +217,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware/help/Get-AzVMwareGlobalReachConnection.md b/src/VMware/VMware/help/Get-AzVMwareGlobalReachConnection.md index dd5ffff3e29e..80120721a86a 100644 --- a/src/VMware/VMware/help/Get-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware/help/Get-AzVMwareGlobalReachConnection.md @@ -8,38 +8,38 @@ schema: 2.0.0 # Get-AzVMwareGlobalReachConnection ## SYNOPSIS -Get a global reach connection by name in a private cloud +Get a GlobalReachConnection ## SYNTAX ### List (Default) ``` Get-AzVMwareGlobalReachConnection -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareGlobalReachConnection -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareGlobalReachConnection -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION -Get a global reach connection by name in a private cloud +Get a GlobalReachConnection ## EXAMPLES @@ -103,7 +103,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the global reach connection in the private cloud +Name of the global reach connection ```yaml Type: System.String @@ -147,6 +147,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -165,6 +180,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware/help/Get-AzVMwareIscsiPath.md b/src/VMware/VMware/help/Get-AzVMwareIscsiPath.md new file mode 100644 index 000000000000..bf7fe386e484 --- /dev/null +++ b/src/VMware/VMware/help/Get-AzVMwareIscsiPath.md @@ -0,0 +1,169 @@ +--- +external help file: Az.VMware-help.xml +Module Name: Az.VMware +online version: https://learn.microsoft.com/powershell/module/az.vmware/get-azvmwareiscsipath +schema: 2.0.0 +--- + +# Get-AzVMwareIscsiPath + +## SYNOPSIS +Get a IscsiPath + +## SYNTAX + +### Get (Default) +``` +Get-AzVMwareIscsiPath -PrivateCloudName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-ProgressAction ] [] +``` + +### List +``` +Get-AzVMwareIscsiPath -PrivateCloudName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-ProgressAction ] [] +``` + +### GetViaIdentity +``` +Get-AzVMwareIscsiPath -InputObject [-DefaultProfile ] + [-ProgressAction ] [] +``` + +## DESCRIPTION +Get a IscsiPath + +## EXAMPLES + +### Example 1: Get a IscsiPath +```powershell +Get-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/i + scsiPaths/default +Name : default +NetworkBlock : 192.168.0.0/24 +ProvisioningState : Succeeded +ResourceGroupName : group1 +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : Microsoft.AVS/privateClouds/iscsiPaths +``` + +Get a IscsiPath + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -PrivateCloudName +Name of the private cloud + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + +## NOTES + +## RELATED LINKS diff --git a/src/VMware/VMware/help/Get-AzVMwarePlacementPolicy.md b/src/VMware/VMware/help/Get-AzVMwarePlacementPolicy.md index 1987191bd68a..1f429ea79206 100644 --- a/src/VMware/VMware/help/Get-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware/help/Get-AzVMwarePlacementPolicy.md @@ -8,44 +8,44 @@ schema: 2.0.0 # Get-AzVMwarePlacementPolicy ## SYNOPSIS -Get a placement policy by name in a private cloud cluster +Get a PlacementPolicy ## SYNTAX ### List (Default) ``` Get-AzVMwarePlacementPolicy -ClusterName -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentityCluster ``` Get-AzVMwarePlacementPolicy -Name -ClusterInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwarePlacementPolicy -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION -Get a placement policy by name in a private cloud cluster +Get a PlacementPolicy ## EXAMPLES @@ -94,7 +94,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -140,7 +140,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy +Name of the placement policy. ```yaml Type: System.String @@ -184,6 +184,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -202,6 +217,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware/help/Get-AzVMwarePrivateCloud.md b/src/VMware/VMware/help/Get-AzVMwarePrivateCloud.md index 2fdc0c938de9..735422021428 100644 --- a/src/VMware/VMware/help/Get-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware/help/Get-AzVMwarePrivateCloud.md @@ -8,36 +8,36 @@ schema: 2.0.0 # Get-AzVMwarePrivateCloud ## SYNOPSIS -Get a private cloud +Get a PrivateCloud ## SYNTAX -### List1 (Default) +### List (Default) ``` Get-AzVMwarePrivateCloud [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwarePrivateCloud -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` -### List +### List1 ``` Get-AzVMwarePrivateCloud -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwarePrivateCloud -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION -Get a private cloud +Get a PrivateCloud ## EXAMPLES @@ -128,13 +128,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: Get, List1 Aliases: Required: True @@ -146,10 +161,11 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] -Parameter Sets: List1, Get, List +Parameter Sets: List, Get, List1 Aliases: Required: False diff --git a/src/VMware/VMware/help/Get-AzVMwarePrivateCloudAdminCredential.md b/src/VMware/VMware/help/Get-AzVMwarePrivateCloudAdminCredential.md index 5317d931d4f8..6c0f7baa76e7 100644 --- a/src/VMware/VMware/help/Get-AzVMwarePrivateCloudAdminCredential.md +++ b/src/VMware/VMware/help/Get-AzVMwarePrivateCloudAdminCredential.md @@ -14,7 +14,7 @@ List the admin credentials for the private cloud ``` Get-AzVMwarePrivateCloudAdminCredential -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -69,6 +69,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -87,6 +102,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware/help/Get-AzVMwareVirtualMachine.md b/src/VMware/VMware/help/Get-AzVMwareVirtualMachine.md index 5941876a2077..645bee803109 100644 --- a/src/VMware/VMware/help/Get-AzVMwareVirtualMachine.md +++ b/src/VMware/VMware/help/Get-AzVMwareVirtualMachine.md @@ -8,44 +8,44 @@ schema: 2.0.0 # Get-AzVMwareVirtualMachine ## SYNOPSIS -Get a virtual machine by id in a private cloud cluster +Get a VirtualMachine ## SYNTAX ### List (Default) ``` Get-AzVMwareVirtualMachine -ClusterName -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareVirtualMachine -ClusterName -Id -PrivateCloudInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareVirtualMachine -ClusterName -Id -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentityCluster ``` Get-AzVMwareVirtualMachine -Id -ClusterInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareVirtualMachine -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION -Get a virtual machine by id in a private cloud cluster +Get a VirtualMachine ## EXAMPLES @@ -94,7 +94,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -125,7 +125,7 @@ Accept wildcard characters: False ``` ### -Id -Virtual Machine identifier +ID of the virtual machine. ```yaml Type: System.String @@ -184,6 +184,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -202,6 +217,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/VMware/VMware/help/New-AzVMwareAddon.md b/src/VMware/VMware/help/New-AzVMwareAddon.md index fad4b150274b..f49bfd5a3299 100644 --- a/src/VMware/VMware/help/New-AzVMwareAddon.md +++ b/src/VMware/VMware/help/New-AzVMwareAddon.md @@ -15,7 +15,7 @@ Create or update a addon in a private cloud ``` New-AzVMwareAddon -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-Property ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -25,7 +25,7 @@ Create or update a addon in a private cloud ### Example 1: Create an addon in a private cloud ```powershell -$data = New-AzVMwareAddonVrPropertiesObject -VrsCount 2 +$data = New-AzVMwareAddonVrPropertyObject -VrsCount 2 New-AzVMwareAddon -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -Property $data ``` @@ -99,6 +99,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Property The properties of an addon resource To construct, see NOTES section for PROPERTY properties and create a hash table. diff --git a/src/VMware/VMware/help/New-AzVMwareAddonSrmPropertiesObject.md b/src/VMware/VMware/help/New-AzVMwareAddonSrmPropertyObject.md similarity index 62% rename from src/VMware/VMware/help/New-AzVMwareAddonSrmPropertiesObject.md rename to src/VMware/VMware/help/New-AzVMwareAddonSrmPropertyObject.md index 8d3204f91e41..8e8ec8435a23 100644 --- a/src/VMware/VMware/help/New-AzVMwareAddonSrmPropertiesObject.md +++ b/src/VMware/VMware/help/New-AzVMwareAddonSrmPropertyObject.md @@ -1,30 +1,30 @@ --- external help file: Az.VMware-help.xml Module Name: Az.VMware -online version: https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareAddonSrmPropertiesObject +online version: https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwareaddonsrmpropertyobject schema: 2.0.0 --- -# New-AzVMwareAddonSrmPropertiesObject +# New-AzVMwareAddonSrmPropertyObject ## SYNOPSIS -Create a in-memory object for AddonSrmProperties +Create an in-memory object for AddonSrmProperties. ## SYNTAX ``` -New-AzVMwareAddonSrmPropertiesObject -LicenseKey +New-AzVMwareAddonSrmPropertyObject [-LicenseKey ] [-ProgressAction ] [] ``` ## DESCRIPTION -Create a in-memory object for AddonSrmProperties +Create an in-memory object for AddonSrmProperties. ## EXAMPLES ### Example 1: Create a local SRM object for the Addon Property parameter ```powershell -New-AzVMwareAddonSrmPropertiesObject -LicenseKey "YourLicenseKeyValue" +New-AzVMwareAddonSrmPropertyObject -LicenseKey "YourLicenseKeyValue" ``` ```output @@ -45,7 +45,22 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False Position: Named Default value: None Accept pipeline input: False diff --git a/src/VMware/VMware/help/New-AzVMwareAddonVrPropertiesObject.md b/src/VMware/VMware/help/New-AzVMwareAddonVrPropertyObject.md similarity index 62% rename from src/VMware/VMware/help/New-AzVMwareAddonVrPropertiesObject.md rename to src/VMware/VMware/help/New-AzVMwareAddonVrPropertyObject.md index 0b182014a4ec..31c9ac70778e 100644 --- a/src/VMware/VMware/help/New-AzVMwareAddonVrPropertiesObject.md +++ b/src/VMware/VMware/help/New-AzVMwareAddonVrPropertyObject.md @@ -1,29 +1,29 @@ --- external help file: Az.VMware-help.xml Module Name: Az.VMware -online version: https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareAddonVrPropertiesObject +online version: https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwareaddonvrpropertyobject schema: 2.0.0 --- -# New-AzVMwareAddonVrPropertiesObject +# New-AzVMwareAddonVrPropertyObject ## SYNOPSIS -Create a in-memory object for AddonVrProperties +Create an in-memory object for AddonVrProperties. ## SYNTAX ``` -New-AzVMwareAddonVrPropertiesObject -VrsCount [] +New-AzVMwareAddonVrPropertyObject -VrsCount [-ProgressAction ] [] ``` ## DESCRIPTION -Create a in-memory object for AddonVrProperties +Create an in-memory object for AddonVrProperties. ## EXAMPLES ### Example 1: Create a local VR object for the Addon Property parameter ```powershell -New-AzVMwareAddonVrPropertiesObject -VrsCount 2 +New-AzVMwareAddonVrPropertyObject -VrsCount 2 ``` ```output @@ -36,6 +36,21 @@ Create a local VR object for the Addon Property parameter ## PARAMETERS +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VrsCount The vSphere Replication Server (VRS) count. diff --git a/src/VMware/VMware/help/New-AzVMwareAuthorization.md b/src/VMware/VMware/help/New-AzVMwareAuthorization.md index b7eabb98590c..68430fc2d409 100644 --- a/src/VMware/VMware/help/New-AzVMwareAuthorization.md +++ b/src/VMware/VMware/help/New-AzVMwareAuthorization.md @@ -8,32 +8,33 @@ schema: 2.0.0 # New-AzVMwareAuthorization ## SYNOPSIS -Create an ExpressRoute Circuit Authorization in a private cloud +Create a ExpressRouteAuthorization ## SYNTAX ### CreateExpanded (Default) ``` New-AzVMwareAuthorization -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-ExpressRouteId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityPrivateCloudExpanded ``` -New-AzVMwareAuthorization -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] +New-AzVMwareAuthorization -Name -PrivateCloudInputObject [-ExpressRouteId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` -New-AzVMwareAuthorization -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] +New-AzVMwareAuthorization -InputObject [-ExpressRouteId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION -Create an ExpressRoute Circuit Authorization in a private cloud +Create a ExpressRouteAuthorization ## EXAMPLES @@ -83,6 +84,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ExpressRouteId +The ID of the ExpressRoute Circuit + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter @@ -99,7 +115,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the ExpressRoute Circuit Authorization in the private cloud +Name of the ExpressRoute Circuit Authorization ```yaml Type: System.String @@ -144,7 +160,7 @@ Accept wildcard characters: False ``` ### -PrivateCloudName -The name of the private cloud. +Name of the private cloud ```yaml Type: System.String @@ -158,6 +174,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -176,6 +207,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/New-AzVMwareCloudLink.md b/src/VMware/VMware/help/New-AzVMwareCloudLink.md index 5249808283e2..20608fb580d8 100644 --- a/src/VMware/VMware/help/New-AzVMwareCloudLink.md +++ b/src/VMware/VMware/help/New-AzVMwareCloudLink.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzVMwareCloudLink ## SYNOPSIS -Create a cloud link in a private cloud +Create a CloudLink ## SYNTAX @@ -16,24 +16,24 @@ Create a cloud link in a private cloud ``` New-AzVMwareCloudLink -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-LinkedCloud ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityPrivateCloudExpanded ``` New-AzVMwareCloudLink -Name -PrivateCloudInputObject [-LinkedCloud ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzVMwareCloudLink -InputObject [-LinkedCloud ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create a cloud link in a private cloud +Create a CloudLink ## EXAMPLES @@ -114,7 +114,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the cloud link resource +Name of the cloud link. ```yaml Type: System.String @@ -159,7 +159,7 @@ Accept wildcard characters: False ``` ### -PrivateCloudName -The name of the private cloud. +Name of the private cloud ```yaml Type: System.String @@ -173,6 +173,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -191,6 +206,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/New-AzVMwareCluster.md b/src/VMware/VMware/help/New-AzVMwareCluster.md index d9331420f326..5a90da9346d3 100644 --- a/src/VMware/VMware/help/New-AzVMwareCluster.md +++ b/src/VMware/VMware/help/New-AzVMwareCluster.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzVMwareCluster ## SYNOPSIS -Create a cluster in a private cloud +Create a Cluster ## SYNTAX @@ -16,26 +16,29 @@ Create a cluster in a private cloud ``` New-AzVMwareCluster -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] -SkuName [-ClusterSize ] [-PropertiesHost ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-SkuCapacity ] [-SkuFamily ] [-SkuSize ] [-SkuTier ] + [-VsanDatastoreName ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityPrivateCloudExpanded ``` New-AzVMwareCluster -Name -PrivateCloudInputObject -SkuName - [-ClusterSize ] [-PropertiesHost ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ClusterSize ] [-PropertiesHost ] [-SkuCapacity ] [-SkuFamily ] + [-SkuSize ] [-SkuTier ] [-VsanDatastoreName ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzVMwareCluster -InputObject -SkuName [-ClusterSize ] - [-PropertiesHost ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-PropertiesHost ] [-SkuCapacity ] [-SkuFamily ] [-SkuSize ] + [-SkuTier ] [-VsanDatastoreName ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create a cluster in a private cloud +Create a Cluster ## EXAMPLES @@ -116,7 +119,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -161,7 +164,7 @@ Accept wildcard characters: False ``` ### -PrivateCloudName -The name of the private cloud. +Name of the private cloud ```yaml Type: System.String @@ -175,6 +178,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PropertiesHost The hosts @@ -206,8 +224,42 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SkuCapacity +If the SKU supports scale out/in then the capacity integer should be included. +If scale out/in is not possible for the resource this may be omitted. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuFamily +If the service has different generations of hardware, for the same SKU, then that can be captured here. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SkuName The name of the SKU. +E.g. +P3. +It is typically a letter+number code ```yaml Type: System.String @@ -221,8 +273,40 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SkuSize +The SKU size. +When the name field is the combination of tier and some other value, this would be the standalone code. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuTier +This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -236,6 +320,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -VsanDatastoreName +Name of the vsan datastore associated with the cluster + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/VMware/VMware/help/New-AzVMwareDatastore.md b/src/VMware/VMware/help/New-AzVMwareDatastore.md index e89e1aee188d..60ed6cfd10d9 100644 --- a/src/VMware/VMware/help/New-AzVMwareDatastore.md +++ b/src/VMware/VMware/help/New-AzVMwareDatastore.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzVMwareDatastore ## SYNOPSIS -Create a datastore in a private cloud cluster +Create a Datastore ## SYNTAX @@ -16,37 +16,37 @@ Create a datastore in a private cloud cluster ``` New-AzVMwareDatastore -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DiskPoolVolumeLunName ] - [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-ElasticSanVolumeTargetId ] + [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityPrivateCloudExpanded ``` New-AzVMwareDatastore -ClusterName -Name -PrivateCloudInputObject [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] - [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ElasticSanVolumeTargetId ] [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityClusterExpanded ``` New-AzVMwareDatastore -Name -ClusterInputObject [-DiskPoolVolumeLunName ] - [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-ElasticSanVolumeTargetId ] + [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzVMwareDatastore -InputObject [-DiskPoolVolumeLunName ] - [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-ElasticSanVolumeTargetId ] + [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create a datastore in a private cloud cluster +Create a Datastore ## EXAMPLES @@ -96,7 +96,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -142,7 +142,7 @@ Accept wildcard characters: False ``` ### -DiskPoolVolumeMountOption -Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN +Mode that describes whether the LUN has to be mounted as a datastore orattached as a LUN ```yaml Type: System.String @@ -171,6 +171,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ElasticSanVolumeTargetId +Azure resource ID of the Elastic SAN Volume + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter @@ -187,7 +202,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the datastore in the private cloud cluster +Name of the datastore ```yaml Type: System.String @@ -261,6 +276,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -279,6 +309,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/New-AzVMwareGlobalReachConnection.md b/src/VMware/VMware/help/New-AzVMwareGlobalReachConnection.md index 4e2a1d28c965..5df1921237c7 100644 --- a/src/VMware/VMware/help/New-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware/help/New-AzVMwareGlobalReachConnection.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzVMwareGlobalReachConnection ## SYNOPSIS -Create a global reach connection in a private cloud +Create a GlobalReachConnection ## SYNTAX @@ -17,14 +17,14 @@ Create a global reach connection in a private cloud New-AzVMwareGlobalReachConnection -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteResourceId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityPrivateCloudExpanded ``` New-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteResourceId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,11 +32,11 @@ New-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteResourceId ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-WhatIf] [-Confirm] [] + [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create a global reach connection in a private cloud +Create a GlobalReachConnection ## EXAMPLES @@ -71,7 +71,7 @@ Accept wildcard characters: False ``` ### -AuthorizationKey -Authorization key from the peer express route used for the global reach connection +Authorization key from the peer express route used for the global reachconnection ```yaml Type: System.String @@ -102,7 +102,7 @@ Accept wildcard characters: False ``` ### -ExpressRouteId -The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection +The ID of the Private Cloud's ExpressRoute Circuit that is participating in theglobal reach connection ```yaml Type: System.String @@ -132,7 +132,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the global reach connection in the private cloud +Name of the global reach connection ```yaml Type: System.String @@ -162,7 +162,7 @@ Accept wildcard characters: False ``` ### -PeerExpressRouteResourceId -Identifier of the ExpressRoute Circuit to peer with in the global reach connection +Identifier of the ExpressRoute Circuit to peer with in the global reachconnection ```yaml Type: System.String @@ -192,7 +192,7 @@ Accept wildcard characters: False ``` ### -PrivateCloudName -The name of the private cloud. +Name of the private cloud ```yaml Type: System.String @@ -206,6 +206,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -224,6 +239,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/New-AzVMwareIdentitySourceObject.md b/src/VMware/VMware/help/New-AzVMwareIdentitySourceObject.md deleted file mode 100644 index 9186a30c8ab4..000000000000 --- a/src/VMware/VMware/help/New-AzVMwareIdentitySourceObject.md +++ /dev/null @@ -1,209 +0,0 @@ ---- -external help file: Az.VMware-help.xml -Module Name: Az.VMware -online version: https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwareidentitysourceobject -schema: 2.0.0 ---- - -# New-AzVMwareIdentitySourceObject - -## SYNOPSIS -Create an in-memory object for IdentitySource. - -## SYNTAX - -``` -New-AzVMwareIdentitySourceObject [-Alias ] [-BaseGroupDn ] [-BaseUserDn ] - [-Domain ] [-Name ] [-Password ] [-PrimaryServer ] [-SecondaryServer ] - [-Ssl ] [-Username ] [] -``` - -## DESCRIPTION -Create an in-memory object for IdentitySource. - -## EXAMPLES - -### Example 1: Create an in-memory object for IdentitySource -```powershell -New-AzVMwareIdentitySourceObject -Alias test -``` - -```output -Alias : test -BaseGroupDn : -BaseUserDn : -Domain : -Name : -Password : -PrimaryServer : -SecondaryServer : -Ssl : -Username : -``` - -Create an in-memory object for IdentitySource - -## PARAMETERS - -### -Alias -The domain's NetBIOS name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -BaseGroupDn -The base distinguished name for groups. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -BaseUserDn -The base distinguished name for users. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Domain -The domain's dns name. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Name -The name of the identity source. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Password -The password of the Active Directory user with a minimum of read-only access to Base DN for users and groups. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -PrimaryServer -Primary server URL. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -SecondaryServer -Secondary server URL. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Ssl -Protect LDAP communication using SSL certificate (LDAPS). - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Username -The ID of an Active Directory user with a minimum of read-only access to Base DN for users and group. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -### Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IdentitySource - -## NOTES - -## RELATED LINKS diff --git a/src/VMware/VMware/help/New-AzVMwareIscsiPath.md b/src/VMware/VMware/help/New-AzVMwareIscsiPath.md new file mode 100644 index 000000000000..8086f9c7af13 --- /dev/null +++ b/src/VMware/VMware/help/New-AzVMwareIscsiPath.md @@ -0,0 +1,239 @@ +--- +external help file: Az.VMware-help.xml +Module Name: Az.VMware +online version: https://learn.microsoft.com/powershell/module/az.vmware/new-azvmwareiscsipath +schema: 2.0.0 +--- + +# New-AzVMwareIscsiPath + +## SYNOPSIS +Create a IscsiPath + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzVMwareIscsiPath -PrivateCloudName -ResourceGroupName [-SubscriptionId ] + [-NetworkBlock ] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaIdentityExpanded +``` +New-AzVMwareIscsiPath -InputObject [-NetworkBlock ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Create a IscsiPath + +## EXAMPLES + +### Example 1: Create a IscsiPath +```powershell +New-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/iscsiPaths/default +Name : default +NetworkBlock : 192.168.0.0/24 +ProvisioningState : Succeeded +ResourceGroupName : group1 +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : Microsoft.AVS/privateClouds/iscsiPaths +``` + +Create a IscsiPath + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity +Parameter Sets: CreateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NetworkBlock +CIDR Block for iSCSI path. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PrivateCloudName +Name of the private cloud + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + +## NOTES + +## RELATED LINKS diff --git a/src/VMware/VMware/help/New-AzVMwarePSCredentialExecutionParameterObject.md b/src/VMware/VMware/help/New-AzVMwarePSCredentialExecutionParameterObject.md index 22271877d765..620e36f7dc0a 100644 --- a/src/VMware/VMware/help/New-AzVMwarePSCredentialExecutionParameterObject.md +++ b/src/VMware/VMware/help/New-AzVMwarePSCredentialExecutionParameterObject.md @@ -1,36 +1,37 @@ --- external help file: Az.VMware-help.xml Module Name: Az.VMware -online version: https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwarePSCredentialExecutionParameterObject +online version: https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarepscredentialexecutionparameterobject schema: 2.0.0 --- # New-AzVMwarePSCredentialExecutionParameterObject ## SYNOPSIS -Create a in-memory object for PSCredentialExecutionParameter +Create an in-memory object for PSCredentialExecutionParameter. ## SYNTAX ``` -New-AzVMwarePSCredentialExecutionParameterObject -Name [-Password ] [-Username ] - [] +New-AzVMwarePSCredentialExecutionParameterObject -Name [-Password ] [-Username ] + [-ProgressAction ] [] ``` ## DESCRIPTION -Create a in-memory object for PSCredentialExecutionParameter +Create an in-memory object for PSCredentialExecutionParameter. ## EXAMPLES ### Example 1: Create a local PS Credential Execution object ```powershell -New-AzVMwarePSCredentialExecutionParameterObject -Name azps_test_credentialvalue -Password "passwordValue" -Username "usernameValue" +$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +New-AzVMwarePSCredentialExecutionParameterObject -Name azps_test_credentialvalue -Password $mypwd -Username "usernameValue" ``` ```output -Name Password Type Username ----- -------- ---- -------- -azps_test_credentialvalue passwordValue Credential usernameValue +Name Password Type Username +---- -------- ---- -------- +azps_test_credentialvalue System.Security.SecureString Credential usernameValue ``` Create a local PS Credential Execution object @@ -56,7 +57,7 @@ Accept wildcard characters: False password for login. ```yaml -Type: System.String +Type: System.Security.SecureString Parameter Sets: (All) Aliases: @@ -67,6 +68,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Username username for login. diff --git a/src/VMware/VMware/help/New-AzVMwarePlacementPolicy.md b/src/VMware/VMware/help/New-AzVMwarePlacementPolicy.md index 98fd1c0afb0e..0a02ba0e70ba 100644 --- a/src/VMware/VMware/help/New-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware/help/New-AzVMwarePlacementPolicy.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzVMwarePlacementPolicy ## SYNOPSIS -Create a placement policy in a private cloud cluster +Create a PlacementPolicy ## SYNTAX @@ -16,7 +16,7 @@ Create a placement policy in a private cloud cluster ``` New-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-Property ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,31 +24,31 @@ New-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudNa ``` New-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudInputObject [-Property ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityClusterExpanded ``` New-AzVMwarePlacementPolicy -Name -ClusterInputObject [-Property ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzVMwarePlacementPolicy -InputObject [-Property ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create a placement policy in a private cloud cluster +Create a PlacementPolicy ## EXAMPLES ### Example 1: Create or update a placement policy in a private cloud cluster ```powershell -$abc = New-AzVMwareVMPlacementPolicyPropertiesObject -AffinityType 'Affinity' -Type 'VmVm' -VMMember @{"test"="test"} +$abc = New-AzVMwareVMPlacementPolicyPropertyObject -AffinityType 'Affinity' -VMMember @{"test"="test"} New-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 -Property $abc ``` @@ -62,7 +62,7 @@ Create or update a placement policy in a private cloud cluster ### Example 2: Create or update a placement policy in a private cloud cluster ```powershell -$abc = New-AzVMwareVmHostPlacementPolicyPropertiesObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -Type 'VmHost' -VMMember @{"test"="test"} +$abc = New-AzVMwareVmHostPlacementPolicyPropertyObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -VMMember @{"test"="test"} New-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1 -Property $abc ``` @@ -107,7 +107,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -153,7 +153,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy +Name of the placement policy. ```yaml Type: System.String @@ -212,8 +212,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Property -placement policy properties +The resource-specific properties for this resource. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPlacementPolicyProperties @@ -245,6 +260,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/New-AzVMwarePrivateCloud.md b/src/VMware/VMware/help/New-AzVMwarePrivateCloud.md index bf0b2a87d556..df94152fcc6c 100644 --- a/src/VMware/VMware/help/New-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware/help/New-AzVMwarePrivateCloud.md @@ -20,7 +20,7 @@ New-AzVMwarePrivateCloud -Name -ResourceGroupName [-Subscripti [-IdentityType ] [-Internet ] [-KeyVaultPropertyKeyName ] [-KeyVaultPropertyKeyVaultUrl ] [-KeyVaultPropertyKeyVersion ] [-ManagementClusterHost ] [-NsxtPassword ] [-Tag ] [-VcenterPassword ] - [-AcceptEULA] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] + [-AcceptEULA] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -366,6 +366,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwarePrivateCloudNsxtPassword.md b/src/VMware/VMware/help/New-AzVMwarePrivateCloudNsxtPassword.md index ef261d77a005..fca58f86cfa7 100644 --- a/src/VMware/VMware/help/New-AzVMwarePrivateCloudNsxtPassword.md +++ b/src/VMware/VMware/help/New-AzVMwarePrivateCloudNsxtPassword.md @@ -16,13 +16,13 @@ Rotate the NSX-T Manager password ``` New-AzVMwarePrivateCloudNsxtPassword -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### RotateViaIdentity ``` New-AzVMwarePrivateCloudNsxtPassword -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -134,6 +134,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -152,6 +167,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/New-AzVMwarePrivateCloudVcenterPassword.md b/src/VMware/VMware/help/New-AzVMwarePrivateCloudVcenterPassword.md index b56fa16e47e2..e91cd8c30e0d 100644 --- a/src/VMware/VMware/help/New-AzVMwarePrivateCloudVcenterPassword.md +++ b/src/VMware/VMware/help/New-AzVMwarePrivateCloudVcenterPassword.md @@ -16,13 +16,13 @@ Rotate the vCenter password ``` New-AzVMwarePrivateCloudVcenterPassword -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### RotateViaIdentity ``` New-AzVMwarePrivateCloudVcenterPassword -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -134,6 +134,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -152,6 +167,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/New-AzVMwareScriptSecureStringExecutionParameterObject.md b/src/VMware/VMware/help/New-AzVMwareScriptSecureStringExecutionParameterObject.md index f23581d9d10c..094fbff92951 100644 --- a/src/VMware/VMware/help/New-AzVMwareScriptSecureStringExecutionParameterObject.md +++ b/src/VMware/VMware/help/New-AzVMwareScriptSecureStringExecutionParameterObject.md @@ -1,36 +1,37 @@ --- external help file: Az.VMware-help.xml Module Name: Az.VMware -online version: https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareScriptSecureStringExecutionParameterObject +online version: https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarescriptsecurestringexecutionparameterobject schema: 2.0.0 --- # New-AzVMwareScriptSecureStringExecutionParameterObject ## SYNOPSIS -Create a in-memory object for ScriptSecureStringExecutionParameter +Create an in-memory object for ScriptSecureStringExecutionParameter. ## SYNTAX ``` -New-AzVMwareScriptSecureStringExecutionParameterObject -Name [-SecureValue ] - [] +New-AzVMwareScriptSecureStringExecutionParameterObject -Name [-SecureValue ] + [-ProgressAction ] [] ``` ## DESCRIPTION -Create a in-memory object for ScriptSecureStringExecutionParameter +Create an in-memory object for ScriptSecureStringExecutionParameter. ## EXAMPLES ### Example 1: Create a local Script Secure String Execution object ```powershell -New-AzVMwareScriptSecureStringExecutionParameterObject -Name azps_test_securevalue -SecureValue "passwordValue" +$mypwd = ConvertTo-SecureString -String "1234" -Force -AsPlainText +New-AzVMwareScriptSecureStringExecutionParameterObject -Name azps_test_securevalue -SecureValue $mypwd ``` ```output -Name SecureValue Type ----- ----------- ---- -azps_test_securevalue passwordValue SecureValue +Name SecureValue Type +---- ----------- ---- +azps_test_securevalue System.Security.SecureString SecureValue ``` Create a local Script Secure String Execution object @@ -52,11 +53,26 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SecureValue A secure value for the passed parameter, not to be stored in logs. ```yaml -Type: System.String +Type: System.Security.SecureString Parameter Sets: (All) Aliases: diff --git a/src/VMware/VMware/help/New-AzVMwareScriptStringExecutionParameterObject.md b/src/VMware/VMware/help/New-AzVMwareScriptStringExecutionParameterObject.md index 3e8f23bc5169..830755da1d32 100644 --- a/src/VMware/VMware/help/New-AzVMwareScriptStringExecutionParameterObject.md +++ b/src/VMware/VMware/help/New-AzVMwareScriptStringExecutionParameterObject.md @@ -1,24 +1,24 @@ --- external help file: Az.VMware-help.xml Module Name: Az.VMware -online version: https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareScriptStringExecutionParameterObject +online version: https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarescriptstringexecutionparameterobject schema: 2.0.0 --- # New-AzVMwareScriptStringExecutionParameterObject ## SYNOPSIS -Create a in-memory object for ScriptStringExecutionParameter +Create an in-memory object for ScriptStringExecutionParameter. ## SYNTAX ``` New-AzVMwareScriptStringExecutionParameterObject -Name [-Value ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION -Create a in-memory object for ScriptStringExecutionParameter +Create an in-memory object for ScriptStringExecutionParameter. ## EXAMPLES @@ -28,9 +28,9 @@ New-AzVMwareScriptStringExecutionParameterObject -Name azps_test_value -Value "p ``` ```output -Name Value ----- ----------- -azps_test_value passwordValue +Name Type Value +---- ---- ----- +azps_test_value Value passwordValue ``` Create a local Script String Execution object @@ -52,6 +52,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Value The value for the passed parameter. diff --git a/src/VMware/VMware/help/New-AzVMwareVMPlacementPolicyPropertiesObject.md b/src/VMware/VMware/help/New-AzVMwareVMPlacementPolicyPropertyObject.md similarity index 78% rename from src/VMware/VMware/help/New-AzVMwareVMPlacementPolicyPropertiesObject.md rename to src/VMware/VMware/help/New-AzVMwareVMPlacementPolicyPropertyObject.md index cab2b6e2ef1b..ff622ed3c4b4 100644 --- a/src/VMware/VMware/help/New-AzVMwareVMPlacementPolicyPropertiesObject.md +++ b/src/VMware/VMware/help/New-AzVMwareVMPlacementPolicyPropertyObject.md @@ -1,11 +1,11 @@ --- external help file: Az.VMware-help.xml Module Name: Az.VMware -online version: https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareVMPlacementPolicyPropertiesObject +online version: https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarevmplacementpolicypropertyobject schema: 2.0.0 --- -# New-AzVMwareVMPlacementPolicyPropertiesObject +# New-AzVMwareVMPlacementPolicyPropertyObject ## SYNOPSIS Create an in-memory object for VMPlacementPolicyProperties. @@ -13,8 +13,8 @@ Create an in-memory object for VMPlacementPolicyProperties. ## SYNTAX ``` -New-AzVMwareVMPlacementPolicyPropertiesObject -AffinityType -VMMember -Type - [-DisplayName ] [-State ] [] +New-AzVMwareVMPlacementPolicyPropertyObject -AffinityType -VMMember [-DisplayName ] + [-State ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -24,7 +24,7 @@ Create an in-memory object for VMPlacementPolicyProperties. ### Example 1: Create an in-memory object for VMPlacementPolicyProperties. ```powershell -New-AzVMwareVMPlacementPolicyPropertiesObject -AffinityType 'Affinity' -Type 'VmVm' -VMMember @{"test"="test"} +New-AzVMwareVMPlacementPolicyPropertyObject -AffinityType 'Affinity' -VMMember @{"test"="test"} ``` ```output @@ -70,13 +70,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -State -Whether the placement policy is enabled or disabled. +### -ProgressAction +{{ Fill ProgressAction Description }} ```yaml -Type: System.String +Type: System.Management.Automation.ActionPreference Parameter Sets: (All) -Aliases: +Aliases: proga Required: False Position: Named @@ -85,15 +85,15 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Type -placement policy type. +### -State +Whether the placement policy is enabled or disabled. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False diff --git a/src/VMware/VMware/help/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md b/src/VMware/VMware/help/New-AzVMwareVmHostPlacementPolicyPropertyObject.md similarity index 67% rename from src/VMware/VMware/help/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md rename to src/VMware/VMware/help/New-AzVMwareVmHostPlacementPolicyPropertyObject.md index fad9adb56cf8..56ab7cd452b3 100644 --- a/src/VMware/VMware/help/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md +++ b/src/VMware/VMware/help/New-AzVMwareVmHostPlacementPolicyPropertyObject.md @@ -1,11 +1,11 @@ --- external help file: Az.VMware-help.xml Module Name: Az.VMware -online version: https://learn.microsoft.com/powershell/module/az.VMware/new-AzVMwareVmHostPlacementPolicyPropertiesObject +online version: https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarevmhostplacementpolicypropertyobject schema: 2.0.0 --- -# New-AzVMwareVmHostPlacementPolicyPropertiesObject +# New-AzVMwareVmHostPlacementPolicyPropertyObject ## SYNOPSIS Create an in-memory object for VmHostPlacementPolicyProperties. @@ -13,9 +13,9 @@ Create an in-memory object for VmHostPlacementPolicyProperties. ## SYNTAX ``` -New-AzVMwareVmHostPlacementPolicyPropertiesObject -AffinityType -HostMember - -VMMember -Type [-DisplayName ] [-State ] - [] +New-AzVMwareVmHostPlacementPolicyPropertyObject -AffinityType -HostMember + -VMMember [-AffinityStrength ] [-AzureHybridBenefitType ] [-DisplayName ] + [-State ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -25,7 +25,7 @@ Create an in-memory object for VmHostPlacementPolicyProperties. ### Example 1: Create an in-memory object for VmHostPlacementPolicyProperties. ```powershell -New-AzVMwareVmHostPlacementPolicyPropertiesObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -Type 'VmHost' -VMMember @{"test"="test"} +New-AzVMwareVmHostPlacementPolicyPropertyObject -AffinityType 'AntiAffinity' -HostMember @{"test"="test"} -VMMember @{"test"="test"} ``` ```output @@ -44,6 +44,21 @@ Create an in-memory object for VmHostPlacementPolicyProperties. ## PARAMETERS +### -AffinityStrength +vm-host placement policy affinity strength (should/must). + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -AffinityType placement policy affinity type. @@ -59,6 +74,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -AzureHybridBenefitType +placement policy azure hybrid benefit opt-in type. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DisplayName Display name of the placement policy. @@ -89,13 +119,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -State -Whether the placement policy is enabled or disabled. +### -ProgressAction +{{ Fill ProgressAction Description }} ```yaml -Type: System.String +Type: System.Management.Automation.ActionPreference Parameter Sets: (All) -Aliases: +Aliases: proga Required: False Position: Named @@ -104,15 +134,15 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Type -placement policy type. +### -State +Whether the placement policy is enabled or disabled. ```yaml Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False diff --git a/src/VMware/VMware/help/Remove-AzVMwareAddon.md b/src/VMware/VMware/help/Remove-AzVMwareAddon.md index 3f1c5e89831e..deed95a8b7b4 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareAddon.md +++ b/src/VMware/VMware/help/Remove-AzVMwareAddon.md @@ -16,13 +16,13 @@ Delete a addon in a private cloud ``` Remove-AzVMwareAddon -AddonType -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareAddon -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -152,6 +152,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Remove-AzVMwareAuthorization.md b/src/VMware/VMware/help/Remove-AzVMwareAuthorization.md index 2ad74f1f5a4c..b7951b111136 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareAuthorization.md +++ b/src/VMware/VMware/help/Remove-AzVMwareAuthorization.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Remove-AzVMwareAuthorization ## SYNOPSIS -Delete an ExpressRoute Circuit Authorization in a private cloud +Delete a ExpressRouteAuthorization ## SYNTAX @@ -16,24 +16,24 @@ Delete an ExpressRoute Circuit Authorization in a private cloud ``` Remove-AzVMwareAuthorization -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwareAuthorization -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareAuthorization -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Delete an ExpressRoute Circuit Authorization in a private cloud +Delete a ExpressRouteAuthorization ## EXAMPLES @@ -100,7 +100,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the ExpressRoute Circuit Authorization in the private cloud +Name of the ExpressRoute Circuit Authorization ```yaml Type: System.String @@ -174,6 +174,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -192,6 +207,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/Remove-AzVMwareCloudLink.md b/src/VMware/VMware/help/Remove-AzVMwareCloudLink.md index 19e05e1af50e..cdccf5f5b54b 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareCloudLink.md +++ b/src/VMware/VMware/help/Remove-AzVMwareCloudLink.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Remove-AzVMwareCloudLink ## SYNOPSIS -Delete a cloud link in a private cloud +Delete a CloudLink ## SYNTAX @@ -16,23 +16,23 @@ Delete a cloud link in a private cloud ``` Remove-AzVMwareCloudLink -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwareCloudLink -Name -PrivateCloudInputObject [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareCloudLink -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Delete a cloud link in a private cloud +Delete a CloudLink ## EXAMPLES @@ -99,7 +99,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the cloud link resource +Name of the cloud link. ```yaml Type: System.String @@ -173,6 +173,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -191,6 +206,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/Remove-AzVMwareCluster.md b/src/VMware/VMware/help/Remove-AzVMwareCluster.md index 710aa86bc845..b3338b8ac1ec 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareCluster.md +++ b/src/VMware/VMware/help/Remove-AzVMwareCluster.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Remove-AzVMwareCluster ## SYNOPSIS -Delete a cluster in a private cloud +Delete a Cluster ## SYNTAX @@ -16,23 +16,23 @@ Delete a cluster in a private cloud ``` Remove-AzVMwareCluster -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwareCluster -Name -PrivateCloudInputObject [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareCluster -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Delete a cluster in a private cloud +Delete a Cluster ## EXAMPLES @@ -99,7 +99,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -173,6 +173,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -191,6 +206,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/Remove-AzVMwareDatastore.md b/src/VMware/VMware/help/Remove-AzVMwareDatastore.md index cdb093597e93..6d435106137c 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareDatastore.md +++ b/src/VMware/VMware/help/Remove-AzVMwareDatastore.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Remove-AzVMwareDatastore ## SYNOPSIS -Delete a datastore in a private cloud cluster +Delete a Datastore ## SYNTAX @@ -16,30 +16,30 @@ Delete a datastore in a private cloud cluster ``` Remove-AzVMwareDatastore -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwareDatastore -ClusterName -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityCluster ``` Remove-AzVMwareDatastore -Name -ClusterInputObject [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareDatastore -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Delete a datastore in a private cloud cluster +Delete a Datastore ## EXAMPLES @@ -90,7 +90,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -136,7 +136,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the datastore in the private cloud cluster +Name of the datastore ```yaml Type: System.String @@ -210,6 +210,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -228,6 +243,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/Remove-AzVMwareGlobalReachConnection.md b/src/VMware/VMware/help/Remove-AzVMwareGlobalReachConnection.md index 6c4f55c081c1..d53d74fcd445 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware/help/Remove-AzVMwareGlobalReachConnection.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Remove-AzVMwareGlobalReachConnection ## SYNOPSIS -Delete a global reach connection in a private cloud +Delete a GlobalReachConnection ## SYNTAX @@ -16,24 +16,24 @@ Delete a global reach connection in a private cloud ``` Remove-AzVMwareGlobalReachConnection -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareGlobalReachConnection -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Delete a global reach connection in a private cloud +Delete a GlobalReachConnection ## EXAMPLES @@ -100,7 +100,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the global reach connection in the private cloud +Name of the global reach connection ```yaml Type: System.String @@ -174,6 +174,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -192,6 +207,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/Remove-AzVMwareIscsiPath.md b/src/VMware/VMware/help/Remove-AzVMwareIscsiPath.md new file mode 100644 index 000000000000..5d59dfcd7d67 --- /dev/null +++ b/src/VMware/VMware/help/Remove-AzVMwareIscsiPath.md @@ -0,0 +1,231 @@ +--- +external help file: Az.VMware-help.xml +Module Name: Az.VMware +online version: https://learn.microsoft.com/powershell/module/az.vmware/remove-azvmwareiscsipath +schema: 2.0.0 +--- + +# Remove-AzVMwareIscsiPath + +## SYNOPSIS +Delete a IscsiPath + +## SYNTAX + +### Delete (Default) +``` +Remove-AzVMwareIscsiPath -PrivateCloudName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] + [-Confirm] [] +``` + +### DeleteViaIdentity +``` +Remove-AzVMwareIscsiPath -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Delete a IscsiPath + +## EXAMPLES + +### Example 1: Delete a IscsiPath in a private cloud +```powershell +Remove-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group +``` + +Delete a IscsiPath in a private cloud + +### Example 2: Delete a datastore in a private cloud cluster. +```powershell +Get-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group | Remove-AzVMwareIscsiPath +``` + +Delete a IscsiPath in a private cloud + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PrivateCloudName +Name of the private cloud + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS diff --git a/src/VMware/VMware/help/Remove-AzVMwarePlacementPolicy.md b/src/VMware/VMware/help/Remove-AzVMwarePlacementPolicy.md index 94e07d18ce4b..208aedf43d9a 100644 --- a/src/VMware/VMware/help/Remove-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware/help/Remove-AzVMwarePlacementPolicy.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Remove-AzVMwarePlacementPolicy ## SYNOPSIS -Delete a placement policy in a private cloud cluster +Delete a PlacementPolicy ## SYNTAX @@ -16,31 +16,31 @@ Delete a placement policy in a private cloud cluster ``` Remove-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityCluster ``` Remove-AzVMwarePlacementPolicy -Name -ClusterInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwarePlacementPolicy -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Delete a placement policy in a private cloud cluster +Delete a PlacementPolicy ## EXAMPLES @@ -91,7 +91,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -137,7 +137,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy +Name of the placement policy. ```yaml Type: System.String @@ -211,6 +211,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -229,6 +244,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/Remove-AzVMwarePrivateCloud.md b/src/VMware/VMware/help/Remove-AzVMwarePrivateCloud.md index cbb9242f5f5a..3d011401915a 100644 --- a/src/VMware/VMware/help/Remove-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware/help/Remove-AzVMwarePrivateCloud.md @@ -15,14 +15,14 @@ Delete a private cloud ### Delete (Default) ``` Remove-AzVMwarePrivateCloud -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwarePrivateCloud -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -137,6 +137,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Test-AzVMwareLocationQuotaAvailability.md b/src/VMware/VMware/help/Test-AzVMwareLocationQuotaAvailability.md index 62bd0245ef31..5a98119827e5 100644 --- a/src/VMware/VMware/help/Test-AzVMwareLocationQuotaAvailability.md +++ b/src/VMware/VMware/help/Test-AzVMwareLocationQuotaAvailability.md @@ -14,7 +14,7 @@ Return quota for subscription by region ``` Test-AzVMwareLocationQuotaAvailability -Location [-SubscriptionId ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -54,7 +54,7 @@ Accept wildcard characters: False ``` ### -Location -Azure region +The name of the Azure region. ```yaml Type: System.String @@ -68,8 +68,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/Test-AzVMwareLocationTrialAvailability.md b/src/VMware/VMware/help/Test-AzVMwareLocationTrialAvailability.md index d6c583725d6c..df979440767a 100644 --- a/src/VMware/VMware/help/Test-AzVMwareLocationTrialAvailability.md +++ b/src/VMware/VMware/help/Test-AzVMwareLocationTrialAvailability.md @@ -13,8 +13,9 @@ Return trial status for subscription by region ## SYNTAX ``` -Test-AzVMwareLocationTrialAvailability -Location [-SubscriptionId ] [-Name ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Test-AzVMwareLocationTrialAvailability -Location [-SubscriptionId ] [-Capacity ] + [-Family ] [-Name ] [-Size ] [-Tier ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -37,6 +38,22 @@ Check trial availability ## PARAMETERS +### -Capacity +If the SKU supports scale out/in then the capacity integer should be included. +If scale out/in is not possible for the resource this may be omitted. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -53,8 +70,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Family +If the service has different generations of hardware, for the same SKU, then that can be captured here. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Location -Azure region +The name of the Azure region. ```yaml Type: System.String @@ -70,6 +102,40 @@ Accept wildcard characters: False ### -Name The name of the SKU. +E.g. +P3. +It is typically a letter+number code + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Size +The SKU size. +When the name field is the combination of tier and some other value, this would be the standalone code. ```yaml Type: System.String @@ -85,6 +151,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -98,6 +165,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Tier +This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/VMware/VMware/help/Update-AzVMwareAuthorization.md b/src/VMware/VMware/help/Update-AzVMwareAuthorization.md index 1622b14743a0..98ad8688b399 100644 --- a/src/VMware/VMware/help/Update-AzVMwareAuthorization.md +++ b/src/VMware/VMware/help/Update-AzVMwareAuthorization.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzVMwareAuthorization ## SYNOPSIS -Update an ExpressRoute Circuit Authorization in a private cloud +Update a ExpressRouteAuthorization ## SYNTAX @@ -16,24 +16,24 @@ Update an ExpressRoute Circuit Authorization in a private cloud ``` Update-AzVMwareAuthorization -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` Update-AzVMwareAuthorization -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzVMwareAuthorization -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Update an ExpressRoute Circuit Authorization in a private cloud +Update a ExpressRouteAuthorization ## EXAMPLES @@ -104,7 +104,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the ExpressRoute Circuit Authorization in the private cloud +Name of the ExpressRoute Circuit Authorization ```yaml Type: System.String @@ -149,7 +149,7 @@ Accept wildcard characters: False ``` ### -PrivateCloudName -The name of the private cloud. +Name of the private cloud ```yaml Type: System.String @@ -163,6 +163,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -181,6 +196,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/Update-AzVMwareCloudLink.md b/src/VMware/VMware/help/Update-AzVMwareCloudLink.md index d219461e2a1b..9ed71e5eccf3 100644 --- a/src/VMware/VMware/help/Update-AzVMwareCloudLink.md +++ b/src/VMware/VMware/help/Update-AzVMwareCloudLink.md @@ -8,38 +8,37 @@ schema: 2.0.0 # Update-AzVMwareCloudLink ## SYNOPSIS -Update a cloud link in a private cloud +Update a CloudLink ## SYNTAX ### UpdateExpanded (Default) ``` Update-AzVMwareCloudLink -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-LinkedCloud ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` -Update-AzVMwareCloudLink -Name -PrivateCloudInputObject [-LinkedCloud ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] +Update-AzVMwareCloudLink -Name -PrivateCloudInputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzVMwareCloudLink -InputObject [-LinkedCloud ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] +Update-AzVMwareCloudLink -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Update a cloud link in a private cloud +Update a CloudLink ## EXAMPLES ### Example 1: Update a cloud link in a private cloud ```powershell -Update-AzVMwareCloudLink -Name azps_test_cloudlink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -LinkedCloud "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group2/providers/Microsoft.AVS/privateClouds/azps_test_cloud2/" +Update-AzVMwareCloudLink -Name azps_test_cloudlink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group ``` ```output @@ -98,23 +97,8 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -LinkedCloud -Identifier of the other private cloud participating in the link. - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -Name -Name of the cloud link resource +Name of the cloud link. ```yaml Type: System.String @@ -159,7 +143,7 @@ Accept wildcard characters: False ``` ### -PrivateCloudName -The name of the private cloud. +Name of the private cloud ```yaml Type: System.String @@ -173,6 +157,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -191,6 +190,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/Update-AzVMwareCluster.md b/src/VMware/VMware/help/Update-AzVMwareCluster.md index e9c78a47b6db..8c74738e5ae0 100644 --- a/src/VMware/VMware/help/Update-AzVMwareCluster.md +++ b/src/VMware/VMware/help/Update-AzVMwareCluster.md @@ -8,33 +8,36 @@ schema: 2.0.0 # Update-AzVMwareCluster ## SYNOPSIS -Update a cluster in a private cloud +Update a Cluster ## SYNTAX ### UpdateExpanded (Default) ``` Update-AzVMwareCluster -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-ClusterSize ] [-PropertiesHost ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-ClusterSize ] [-PropertiesHost ] [-SkuCapacity ] + [-SkuFamily ] [-SkuName ] [-SkuSize ] [-SkuTier ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` Update-AzVMwareCluster -Name -PrivateCloudInputObject [-ClusterSize ] - [-PropertiesHost ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-PropertiesHost ] [-SkuCapacity ] [-SkuFamily ] [-SkuName ] + [-SkuSize ] [-SkuTier ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzVMwareCluster -InputObject [-ClusterSize ] [-PropertiesHost ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-SkuCapacity ] [-SkuFamily ] [-SkuName ] [-SkuSize ] [-SkuTier ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Update a cluster in a private cloud +Update a Cluster ## EXAMPLES @@ -128,7 +131,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -187,6 +190,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PropertiesHost The hosts @@ -218,8 +236,89 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SkuCapacity +If the SKU supports scale out/in then the capacity integer should be included. +If scale out/in is not possible for the resource this may be omitted. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuFamily +If the service has different generations of hardware, for the same SKU, then that can be captured here. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuName +The name of the SKU. +E.g. +P3. +It is typically a letter+number code + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuSize +The SKU size. +When the name field is the combination of tier and some other value, this would be the standalone code. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuTier +This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/Update-AzVMwareDatastore.md b/src/VMware/VMware/help/Update-AzVMwareDatastore.md index 8d403b8f6a4f..21c30f0f6610 100644 --- a/src/VMware/VMware/help/Update-AzVMwareDatastore.md +++ b/src/VMware/VMware/help/Update-AzVMwareDatastore.md @@ -8,51 +8,44 @@ schema: 2.0.0 # Update-AzVMwareDatastore ## SYNOPSIS -Update a datastore in a private cloud cluster +Update a Datastore ## SYNTAX ### UpdateExpanded (Default) ``` Update-AzVMwareDatastore -ClusterName -Name -PrivateCloudName - -ResourceGroupName [-SubscriptionId ] [-DiskPoolVolumeLunName ] - [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` Update-AzVMwareDatastore -ClusterName -Name -PrivateCloudInputObject - [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] - [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### UpdateViaIdentityClusterExpanded ``` -Update-AzVMwareDatastore -Name -ClusterInputObject [-DiskPoolVolumeLunName ] - [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] +Update-AzVMwareDatastore -Name -ClusterInputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzVMwareDatastore -InputObject [-DiskPoolVolumeLunName ] - [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] +Update-AzVMwareDatastore -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Update a datastore in a private cloud cluster +Update a Datastore ## EXAMPLES ### Example 1: Update a datastore in a private cloud cluster. ```powershell -Update-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -NetAppVolumeId "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/azps_test_group/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1" +Update-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group ``` ```output @@ -96,7 +89,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -126,51 +119,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -DiskPoolVolumeLunName -Name of the LUN to be used for datastore - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DiskPoolVolumeMountOption -Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -DiskPoolVolumeTargetId -Azure resource ID of the iSCSI target - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -InputObject Identity Parameter @@ -187,7 +135,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the datastore in the private cloud cluster +Name of the datastore ```yaml Type: System.String @@ -201,21 +149,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -NetAppVolumeId -Azure resource ID of the NetApp volume - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -NoWait Run the command asynchronously @@ -261,6 +194,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -279,6 +227,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/Update-AzVMwareGlobalReachConnection.md b/src/VMware/VMware/help/Update-AzVMwareGlobalReachConnection.md index ebf14fcdc7d2..d5067018a8ff 100644 --- a/src/VMware/VMware/help/Update-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware/help/Update-AzVMwareGlobalReachConnection.md @@ -8,35 +8,32 @@ schema: 2.0.0 # Update-AzVMwareGlobalReachConnection ## SYNOPSIS -Update a global reach connection in a private cloud +Update a GlobalReachConnection ## SYNTAX ### UpdateExpanded (Default) ``` Update-AzVMwareGlobalReachConnection -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-AuthorizationKey ] [-ExpressRouteId ] - [-PeerExpressRouteCircuit ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` Update-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject - [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteCircuit ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzVMwareGlobalReachConnection -InputObject [-AuthorizationKey ] - [-ExpressRouteId ] [-PeerExpressRouteCircuit ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] +Update-AzVMwareGlobalReachConnection -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Update a global reach connection in a private cloud +Update a GlobalReachConnection ## EXAMPLES @@ -70,21 +67,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -AuthorizationKey -Authorization key from the peer express route used for the global reach connection - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -DefaultProfile The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. @@ -101,21 +83,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ExpressRouteId -The ID of the Private Cloud's ExpressRoute Circuit that is participating in the global reach connection - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -InputObject Identity Parameter @@ -132,7 +99,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the global reach connection in the private cloud +Name of the global reach connection ```yaml Type: System.String @@ -161,21 +128,6 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -PeerExpressRouteCircuit -Identifier of the ExpressRoute Circuit to peer with in the global reach connection - -```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - ### -PrivateCloudInputObject Identity Parameter @@ -192,7 +144,7 @@ Accept wildcard characters: False ``` ### -PrivateCloudName -The name of the private cloud. +Name of the private cloud ```yaml Type: System.String @@ -206,6 +158,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -224,6 +191,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/Update-AzVMwareIscsiPath.md b/src/VMware/VMware/help/Update-AzVMwareIscsiPath.md new file mode 100644 index 000000000000..cd56c9868391 --- /dev/null +++ b/src/VMware/VMware/help/Update-AzVMwareIscsiPath.md @@ -0,0 +1,224 @@ +--- +external help file: Az.VMware-help.xml +Module Name: Az.VMware +online version: https://learn.microsoft.com/powershell/module/az.vmware/update-azvmwareiscsipath +schema: 2.0.0 +--- + +# Update-AzVMwareIscsiPath + +## SYNOPSIS +Update a IscsiPath + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzVMwareIscsiPath -PrivateCloudName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzVMwareIscsiPath -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Update a IscsiPath + +## EXAMPLES + +### Example 1: Update a IscsiPath +```powershell +Update-AzVMwareIscsiPath -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/iscsiPaths/default +Name : default +NetworkBlock : 192.168.0.0/24 +ProvisioningState : Succeeded +ResourceGroupName : group1 +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : Microsoft.AVS/privateClouds/iscsiPaths +``` + +Update a IscsiPath + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PrivateCloudName +Name of the private cloud + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVMwareIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIscsiPath + +## NOTES + +## RELATED LINKS diff --git a/src/VMware/VMware/help/Update-AzVMwarePlacementPolicy.md b/src/VMware/VMware/help/Update-AzVMwarePlacementPolicy.md index 3b55965834d4..6a1cba72ff7c 100644 --- a/src/VMware/VMware/help/Update-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware/help/Update-AzVMwarePlacementPolicy.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzVMwarePlacementPolicy ## SYNOPSIS -Update a placement policy in a private cloud cluster +Update a PlacementPolicy ## SYNTAX @@ -17,7 +17,7 @@ Update a placement policy in a private cloud cluster Update-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-AffinityStrength ] [-AzureHybridBenefitType ] [-HostMember ] [-State ] [-VMMember ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -25,7 +25,7 @@ Update-AzVMwarePlacementPolicy -ClusterName -Name -PrivateClou ``` Update-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudInputObject [-AffinityStrength ] [-AzureHybridBenefitType ] [-HostMember ] [-State ] - [-VMMember ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-VMMember ] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -33,7 +33,7 @@ Update-AzVMwarePlacementPolicy -ClusterName -Name -PrivateClou ``` Update-AzVMwarePlacementPolicy -Name -ClusterInputObject [-AffinityStrength ] [-AzureHybridBenefitType ] [-HostMember ] [-State ] - [-VMMember ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-VMMember ] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -41,12 +41,12 @@ Update-AzVMwarePlacementPolicy -Name -ClusterInputObject [-AffinityStrength ] [-AzureHybridBenefitType ] [-HostMember ] [-State ] [-VMMember ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Update a placement policy in a private cloud cluster +Update a PlacementPolicy ## EXAMPLES @@ -139,7 +139,7 @@ Accept wildcard characters: False ``` ### -ClusterName -Name of the cluster in the private cloud +Name of the cluster ```yaml Type: System.String @@ -200,7 +200,7 @@ Accept wildcard characters: False ``` ### -Name -Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy +Name of the placement policy. ```yaml Type: System.String @@ -259,6 +259,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -292,6 +307,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/VMware/VMware/help/Update-AzVMwarePrivateCloud.md b/src/VMware/VMware/help/Update-AzVMwarePrivateCloud.md index 81686e32ef32..1c2c71a9508f 100644 --- a/src/VMware/VMware/help/Update-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware/help/Update-AzVMwarePrivateCloud.md @@ -8,39 +8,34 @@ schema: 2.0.0 # Update-AzVMwarePrivateCloud ## SYNOPSIS -Update a private cloud +Update a PrivateCloud ## SYNTAX ### UpdateExpanded (Default) ``` Update-AzVMwarePrivateCloud -Name -ResourceGroupName [-SubscriptionId ] - [-EncryptionStatus ] [-ExtendedNetworkBlock ] [-IdentitySource ] - [-IdentityType ] [-Internet ] [-KeyVaultPropertyKeyName ] - [-KeyVaultPropertyKeyVaultUrl ] [-KeyVaultPropertyKeyVersion ] - [-ManagementClusterHost ] [-ManagementClusterSize ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + [-EnableSystemAssignedIdentity ] [-SkuCapacity ] [-SkuFamily ] [-SkuName ] + [-SkuSize ] [-SkuTier ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` -Update-AzVMwarePrivateCloud -InputObject [-EncryptionStatus ] - [-ExtendedNetworkBlock ] [-IdentitySource ] [-IdentityType ] - [-Internet ] [-KeyVaultPropertyKeyName ] [-KeyVaultPropertyKeyVaultUrl ] - [-KeyVaultPropertyKeyVersion ] [-ManagementClusterHost ] [-ManagementClusterSize ] - [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] +Update-AzVMwarePrivateCloud -InputObject [-EnableSystemAssignedIdentity ] + [-SkuCapacity ] [-SkuFamily ] [-SkuName ] [-SkuSize ] [-SkuTier ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Update a private cloud +Update a PrivateCloud ## EXAMPLES ### Example 1: Update size of private cloud by name ```powershell -Update-AzVMwarePrivateCloud -Name azps_test_cloud -ResourceGroupName azps_test_group -ManagementClusterSize 4 +Update-AzVMwarePrivateCloud -Name azps_test_cloud -ResourceGroupName azps_test_group ``` ```output @@ -53,7 +48,7 @@ Update size of private cloud by name ### Example 2: Update size of private cloud ```powershell -Get-AzVMwarePrivateCloud -ResourceGroupName azps_test_group -Name azps_test_cloud | Update-AzVMwarePrivateCloud -ManagementClusterSize 4 +Get-AzVMwarePrivateCloud -ResourceGroupName azps_test_group -Name azps_test_cloud | Update-AzVMwarePrivateCloud ``` ```output @@ -97,60 +92,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -EncryptionStatus -Status of customer managed encryption key +### -EnableSystemAssignedIdentity +Decides if enable a system assigned identity for the resource. ```yaml -Type: System.String -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -ExtendedNetworkBlock -Array of additional networks noncontiguous with networkBlock. -Networks must be unique and non-overlapping across VNet in your subscription, on-premise, and this privateCloud networkBlock attribute. -Make sure the CIDR format conforms to (A.B.C.D/X). - -```yaml -Type: System.String[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -IdentitySource -vCenter Single Sign On Identity Sources - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IIdentitySource[] -Parameter Sets: (All) -Aliases: - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -IdentityType -The type of identity used for the private cloud. -The type 'SystemAssigned' refers to an implicitly created identity. -The type 'None' will remove any identities from the Private Cloud. - -```yaml -Type: System.String +Type: System.Nullable`1[System.Boolean] Parameter Sets: (All) Aliases: @@ -176,26 +122,26 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` -### -Internet -Connectivity to internet is enabled or disabled +### -Name +Name of the private cloud ```yaml Type: System.String -Parameter Sets: (All) -Aliases: +Parameter Sets: UpdateExpanded +Aliases: PrivateCloudName -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -KeyVaultPropertyKeyName -The name of the key. +### -NoWait +Run the command asynchronously ```yaml -Type: System.String +Type: System.Management.Automation.SwitchParameter Parameter Sets: (All) Aliases: @@ -206,13 +152,13 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -KeyVaultPropertyKeyVaultUrl -The URL of the vault. +### -ProgressAction +{{ Fill ProgressAction Description }} ```yaml -Type: System.String +Type: System.Management.Automation.ActionPreference Parameter Sets: (All) -Aliases: +Aliases: proga Required: False Position: Named @@ -221,26 +167,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -KeyVaultPropertyKeyVersion -The version of the key. +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded Aliases: -Required: False +Required: True Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -ManagementClusterHost -The hosts +### -SkuCapacity +If the SKU supports scale out/in then the capacity integer should be included. +If scale out/in is not possible for the resource this may be omitted. ```yaml -Type: System.String[] +Type: System.Int32 Parameter Sets: (All) Aliases: @@ -251,11 +199,11 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ManagementClusterSize -The cluster size +### -SkuFamily +If the service has different generations of hardware, for the same SKU, then that can be captured here. ```yaml -Type: System.Int32 +Type: System.String Parameter Sets: (All) Aliases: @@ -266,26 +214,30 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -Name -Name of the private cloud +### -SkuName +The name of the SKU. +E.g. +P3. +It is typically a letter+number code ```yaml Type: System.String -Parameter Sets: UpdateExpanded -Aliases: PrivateCloudName +Parameter Sets: (All) +Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` -### -NoWait -Run the command asynchronously +### -SkuSize +The SKU size. +When the name field is the combination of tier and some other value, this would be the standalone code. ```yaml -Type: System.Management.Automation.SwitchParameter +Type: System.String Parameter Sets: (All) Aliases: @@ -296,16 +248,15 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ResourceGroupName -The name of the resource group. -The name is case insensitive. +### -SkuTier +This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -314,6 +265,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -328,7 +280,7 @@ Accept wildcard characters: False ``` ### -Tag -Resource tags +Resource tags. ```yaml Type: System.Collections.Hashtable