From ff14d90336612b2508212f34a037d08c45615910 Mon Sep 17 00:00:00 2001 From: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com> Date: Mon, 3 Aug 2026 16:09:49 +0000 Subject: [PATCH] [skip ci] Archive Schedule --- .../VMware/VMware.Autorest/Az.VMware.psd1 | 2 +- .../exports/New-AzVMwarePrivateCloud.ps1 | 8 + .../exports/New-AzVMwareVcf5LicenseObject.ps1 | 161 ++++++++++++++++++ .../exports/ProxyCmdletDefinitions.ps1 | 160 +++++++++++++++++ .../exports/Update-AzVMwarePrivateCloud.ps1 | 6 + .../VMware/VMware.Autorest/generate-info.json | 2 +- .../api/Models/PrivateCloud.PowerShell.cs | 16 -- .../generated/api/Models/PrivateCloud.cs | 46 +---- .../PrivateCloudProperties.PowerShell.cs | 32 +--- .../api/Models/PrivateCloudProperties.cs | 46 +---- .../api/Models/PrivateCloudProperties.json.cs | 4 +- .../NewAzVMwarePrivateCloud_CreateExpanded.cs | 11 ++ ...dateAzVMwarePrivateCloud_UpdateExpanded.cs | 15 ++ ...ePrivateCloud_UpdateViaIdentityExpanded.cs | 15 ++ .../internal/New-AzVMwarePrivateCloud.ps1 | 6 + .../internal/ProxyCmdletDefinitions.ps1 | 6 + 16 files changed, 412 insertions(+), 124 deletions(-) create mode 100644 generated/VMware/VMware.Autorest/exports/New-AzVMwareVcf5LicenseObject.ps1 diff --git a/generated/VMware/VMware.Autorest/Az.VMware.psd1 b/generated/VMware/VMware.Autorest/Az.VMware.psd1 index f18c485dcd90..657732ed17e3 100644 --- a/generated/VMware/VMware.Autorest/Az.VMware.psd1 +++ b/generated/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-AzVMwareHost', 'Get-AzVMwareIscsiPath', 'Get-AzVMwareLicense', 'Get-AzVMwareLicenseProperty', 'Get-AzVMwareMaintenance', 'Get-AzVMwarePlacementPolicy', 'Get-AzVMwarePrivateCloud', 'Get-AzVMwarePrivateCloudAdminCredential', 'Get-AzVMwarePrivateCloudVcfLicense', 'Get-AzVMwareProvisionedNetwork', 'Get-AzVMwarePureStoragePolicy', 'Get-AzVMwareSku', 'Get-AzVMwareVirtualMachine', 'Invoke-AzVMwareInitiateMaintenanceCheck', 'Invoke-AzVMwareRescheduleMaintenance', 'Invoke-AzVMwareScheduleMaintenance', 'New-AzVMwareAddon', 'New-AzVMwareAddonSrmPropertyObject', 'New-AzVMwareAddonVrPropertyObject', 'New-AzVMwareAuthorization', 'New-AzVMwareCloudLink', 'New-AzVMwareCluster', 'New-AzVMwareDatastore', 'New-AzVMwareGlobalReachConnection', 'New-AzVMwareIscsiPath', 'New-AzVMwareLicense', 'New-AzVMwarePlacementPolicy', 'New-AzVMwarePrivateCloud', 'New-AzVMwarePrivateCloudNsxtPassword', 'New-AzVMwarePrivateCloudVcenterPassword', 'New-AzVMwarePSCredentialExecutionParameterObject', 'New-AzVMwarePureStoragePolicy', 'New-AzVMwareScriptSecureStringExecutionParameterObject', 'New-AzVMwareScriptStringExecutionParameterObject', 'New-AzVMwareVmHostPlacementPolicyPropertyObject', 'New-AzVMwareVMPlacementPolicyPropertyObject', 'Remove-AzVMwareAddon', 'Remove-AzVMwareAuthorization', 'Remove-AzVMwareCloudLink', 'Remove-AzVMwareCluster', 'Remove-AzVMwareDatastore', 'Remove-AzVMwareGlobalReachConnection', 'Remove-AzVMwareIscsiPath', 'Remove-AzVMwareLicense', 'Remove-AzVMwarePlacementPolicy', 'Remove-AzVMwarePrivateCloud', 'Remove-AzVMwarePureStoragePolicy', 'Test-AzVMwareLocationQuotaAvailability', 'Test-AzVMwareLocationTrialAvailability', 'Test-AzVMwareServiceComponentAvailability', 'Update-AzVMwareAuthorization', 'Update-AzVMwareCloudLink', 'Update-AzVMwareCluster', 'Update-AzVMwareDatastore', 'Update-AzVMwareGlobalReachConnection', 'Update-AzVMwareIscsiPath', 'Update-AzVMwareLicense', 'Update-AzVMwarePlacementPolicy', 'Update-AzVMwarePrivateCloud', 'Update-AzVMwarePureStoragePolicy' + FunctionsToExport = 'Get-AzVMwareAddon', 'Get-AzVMwareAuthorization', 'Get-AzVMwareCloudLink', 'Get-AzVMwareCluster', 'Get-AzVMwareClusterZone', 'Get-AzVMwareDatastore', 'Get-AzVMwareGlobalReachConnection', 'Get-AzVMwareHost', 'Get-AzVMwareIscsiPath', 'Get-AzVMwareLicense', 'Get-AzVMwareLicenseProperty', 'Get-AzVMwareMaintenance', 'Get-AzVMwarePlacementPolicy', 'Get-AzVMwarePrivateCloud', 'Get-AzVMwarePrivateCloudAdminCredential', 'Get-AzVMwarePrivateCloudVcfLicense', 'Get-AzVMwareProvisionedNetwork', 'Get-AzVMwarePureStoragePolicy', 'Get-AzVMwareSku', 'Get-AzVMwareVirtualMachine', 'Invoke-AzVMwareInitiateMaintenanceCheck', 'Invoke-AzVMwareRescheduleMaintenance', 'Invoke-AzVMwareScheduleMaintenance', 'New-AzVMwareAddon', 'New-AzVMwareAddonSrmPropertyObject', 'New-AzVMwareAddonVrPropertyObject', 'New-AzVMwareAuthorization', 'New-AzVMwareCloudLink', 'New-AzVMwareCluster', 'New-AzVMwareDatastore', 'New-AzVMwareGlobalReachConnection', 'New-AzVMwareIscsiPath', 'New-AzVMwareLicense', 'New-AzVMwarePlacementPolicy', 'New-AzVMwarePrivateCloud', 'New-AzVMwarePrivateCloudNsxtPassword', 'New-AzVMwarePrivateCloudVcenterPassword', 'New-AzVMwarePSCredentialExecutionParameterObject', 'New-AzVMwarePureStoragePolicy', 'New-AzVMwareScriptSecureStringExecutionParameterObject', 'New-AzVMwareScriptStringExecutionParameterObject', 'New-AzVMwareVcf5LicenseObject', 'New-AzVMwareVmHostPlacementPolicyPropertyObject', 'New-AzVMwareVMPlacementPolicyPropertyObject', 'Remove-AzVMwareAddon', 'Remove-AzVMwareAuthorization', 'Remove-AzVMwareCloudLink', 'Remove-AzVMwareCluster', 'Remove-AzVMwareDatastore', 'Remove-AzVMwareGlobalReachConnection', 'Remove-AzVMwareIscsiPath', 'Remove-AzVMwareLicense', 'Remove-AzVMwarePlacementPolicy', 'Remove-AzVMwarePrivateCloud', 'Remove-AzVMwarePureStoragePolicy', 'Test-AzVMwareLocationQuotaAvailability', 'Test-AzVMwareLocationTrialAvailability', 'Test-AzVMwareServiceComponentAvailability', 'Update-AzVMwareAuthorization', 'Update-AzVMwareCloudLink', 'Update-AzVMwareCluster', 'Update-AzVMwareDatastore', 'Update-AzVMwareGlobalReachConnection', 'Update-AzVMwareIscsiPath', 'Update-AzVMwareLicense', 'Update-AzVMwarePlacementPolicy', 'Update-AzVMwarePrivateCloud', 'Update-AzVMwarePureStoragePolicy' PrivateData = @{ PSData = @{ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'VMware' diff --git a/generated/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloud.ps1 b/generated/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloud.ps1 index f749188c2e94..85dd60dbf98c 100644 --- a/generated/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloud.ps1 +++ b/generated/VMware/VMware.Autorest/exports/New-AzVMwarePrivateCloud.ps1 @@ -198,6 +198,14 @@ param( # Optionally, set the vCenter admin password when the private cloud is created ${VcenterPassword}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense] + # The VMware Cloud Foundation (VCF) license for the private cloud. + # To construct, see NOTES section for VCFLICENSE properties and create a hash table, + # or use New-AzVMwareVcf5LicenseObject to create a Vcf5License object. + ${VcfLicense}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.Management.Automation.SwitchParameter] diff --git a/generated/VMware/VMware.Autorest/exports/New-AzVMwareVcf5LicenseObject.ps1 b/generated/VMware/VMware.Autorest/exports/New-AzVMwareVcf5LicenseObject.ps1 new file mode 100644 index 000000000000..3d738d49da8d --- /dev/null +++ b/generated/VMware/VMware.Autorest/exports/New-AzVMwareVcf5LicenseObject.ps1 @@ -0,0 +1,161 @@ + +# ---------------------------------------------------------------------------------- +# 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 Vcf5License. +.Description +Create an in-memory object for Vcf5License. +.Example +New-AzVMwareVcf5LicenseObject -Core 16 -EndDate (Get-Date "2027-01-01") -LicenseKey (ConvertTo-SecureString "YOUR-LICENSE-KEY" -AsPlainText -Force) -BroadcomSiteId "site123" -BroadcomContractNumber "contract123" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Vcf5License +.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. + +LABEL : Additional labels passed through for license reporting. + Key : The key of the label. + Value : The value of the label. +.Link +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarevcf5licenseobject +#> +function New-AzVMwareVcf5LicenseObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Vcf5License])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.Int32] + # Number of cores included in the license. + ${Core}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.DateTime] + # UTC datetime when the license expires. + ${EndDate}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The Broadcom contract number associated with the license. + ${BroadcomContractNumber}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The Broadcom site ID associated with the license. + ${BroadcomSiteId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILabel[]] + # Additional labels passed through for license reporting. + ${Label}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.Security.SecureString] + # License key. + ${LicenseKey} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $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 ($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-AzVMwareVcf5LicenseObject'; + } + $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) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $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/generated/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 index 7c9772926967..662af7a38826 100644 --- a/generated/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -15288,6 +15288,12 @@ param( # Optionally, set the vCenter admin password when the private cloud is created ${VcenterPassword}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense] + # The private cloud license + ${VcfLicense}, + [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] @@ -16602,6 +16608,14 @@ param( # Optionally, set the vCenter admin password when the private cloud is created ${VcenterPassword}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense] + # The VMware Cloud Foundation (VCF) license for the private cloud. + # To construct, see NOTES section for VCFLICENSE properties and create a hash table, + # or use New-AzVMwareVcf5LicenseObject to create a Vcf5License object. + ${VcfLicense}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.Management.Automation.SwitchParameter] @@ -17115,6 +17129,152 @@ end { } } +<# +.Synopsis +Create an in-memory object for Vcf5License. +.Description +Create an in-memory object for Vcf5License. +.Example +New-AzVMwareVcf5LicenseObject -Core 16 -EndDate (Get-Date "2027-01-01") -LicenseKey (ConvertTo-SecureString "YOUR-LICENSE-KEY" -AsPlainText -Force) -BroadcomSiteId "site123" -BroadcomContractNumber "contract123" + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Vcf5License +.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. + +LABEL : Additional labels passed through for license reporting. + Key : The key of the label. + Value : The value of the label. +.Link +https://learn.microsoft.com/powershell/module/Az.VMware/new-azvmwarevcf5licenseobject +#> +function New-AzVMwareVcf5LicenseObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.Vcf5License])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.Int32] + # Number of cores included in the license. + ${Core}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.DateTime] + # UTC datetime when the license expires. + ${EndDate}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The Broadcom contract number associated with the license. + ${BroadcomContractNumber}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.String] + # The Broadcom site ID associated with the license. + ${BroadcomSiteId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ILabel[]] + # Additional labels passed through for license reporting. + ${Label}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [System.Security.SecureString] + # License key. + ${LicenseKey} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $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 ($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-AzVMwareVcf5LicenseObject'; + } + $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) + if ($wrappedCmd -eq $null) { + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) + } + $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 VmHostPlacementPolicyProperties. diff --git a/generated/VMware/VMware.Autorest/exports/Update-AzVMwarePrivateCloud.ps1 b/generated/VMware/VMware.Autorest/exports/Update-AzVMwarePrivateCloud.ps1 index 5c3b92cc1e93..25432a1d603e 100644 --- a/generated/VMware/VMware.Autorest/exports/Update-AzVMwarePrivateCloud.ps1 +++ b/generated/VMware/VMware.Autorest/exports/Update-AzVMwarePrivateCloud.ps1 @@ -254,6 +254,12 @@ param( # Optionally, set the vCenter admin password when the private cloud is created ${VcenterPassword}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense] + # The private cloud license + ${VcfLicense}, + [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] diff --git a/generated/VMware/VMware.Autorest/generate-info.json b/generated/VMware/VMware.Autorest/generate-info.json index f8bb4dad6a03..2cd78906f1e3 100644 --- a/generated/VMware/VMware.Autorest/generate-info.json +++ b/generated/VMware/VMware.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "2726e206-da56-4c9d-8b45-65d0a875e579" + "generate_Id": "6b5fd672-539d-49db-a352-643b92fcf814" } diff --git a/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.PowerShell.cs b/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.PowerShell.cs index 57ff00846cce..92a210e13609 100644 --- a/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.PowerShell.cs +++ b/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.PowerShell.cs @@ -313,10 +313,6 @@ internal PrivateCloud(global::System.Collections.IDictionary content) { ((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("VcfLicenseKind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VcfLicenseKind = (string) content.GetValueForProperty("VcfLicenseKind",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VcfLicenseKind, 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); @@ -405,10 +401,6 @@ internal PrivateCloud(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SecondaryCircuitExpressRoutePrivatePeeringId = (string) content.GetValueForProperty("SecondaryCircuitExpressRoutePrivatePeeringId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SecondaryCircuitExpressRoutePrivatePeeringId, global::System.Convert.ToString); } - if (content.Contains("VcfLicenseProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VcfLicenseProvisioningState = (string) content.GetValueForProperty("VcfLicenseProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VcfLicenseProvisioningState, global::System.Convert.ToString); - } if (content.Contains("KeyVaultPropertyAutoDetectedKeyVersion")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).KeyVaultPropertyAutoDetectedKeyVersion = (string) content.GetValueForProperty("KeyVaultPropertyAutoDetectedKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).KeyVaultPropertyAutoDetectedKeyVersion, global::System.Convert.ToString); @@ -646,10 +638,6 @@ internal PrivateCloud(global::System.Management.Automation.PSObject content) { ((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("VcfLicenseKind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VcfLicenseKind = (string) content.GetValueForProperty("VcfLicenseKind",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VcfLicenseKind, 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); @@ -738,10 +726,6 @@ internal PrivateCloud(global::System.Management.Automation.PSObject content) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SecondaryCircuitExpressRoutePrivatePeeringId = (string) content.GetValueForProperty("SecondaryCircuitExpressRoutePrivatePeeringId",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).SecondaryCircuitExpressRoutePrivatePeeringId, global::System.Convert.ToString); } - if (content.Contains("VcfLicenseProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VcfLicenseProvisioningState = (string) content.GetValueForProperty("VcfLicenseProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).VcfLicenseProvisioningState, global::System.Convert.ToString); - } if (content.Contains("KeyVaultPropertyAutoDetectedKeyVersion")) { ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).KeyVaultPropertyAutoDetectedKeyVersion = (string) content.GetValueForProperty("KeyVaultPropertyAutoDetectedKeyVersion",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal)this).KeyVaultPropertyAutoDetectedKeyVersion, global::System.Convert.ToString); diff --git a/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.cs b/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.cs index 0103e67949be..1e6b8168ff53 100644 --- a/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.cs +++ b/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloud.cs @@ -294,15 +294,6 @@ public partial class PrivateCloud : /// Internal Acessors for VcenterCertificateThumbprint string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.VcenterCertificateThumbprint { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VcenterCertificateThumbprint; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VcenterCertificateThumbprint = value ?? null; } - /// Internal Acessors for VcfLicense - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.VcfLicense { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VcfLicense; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VcfLicense = value ?? null /* model class */; } - - /// Internal Acessors for VcfLicenseKind - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.VcfLicenseKind { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VcfLicenseKind; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VcfLicenseKind = value ?? null; } - - /// Internal Acessors for VcfLicenseProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.VcfLicenseProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VcfLicenseProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VcfLicenseProvisioningState = value ?? null; } - /// Internal Acessors for VmotionNetwork string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudInternal.VmotionNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VmotionNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VmotionNetwork = value ?? null; } @@ -487,14 +478,6 @@ public partial class PrivateCloud : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense VcfLicense { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VcfLicense; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VcfLicense = value ?? null /* model class */; } - /// License kind - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string VcfLicenseKind { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VcfLicenseKind; } - - /// The state of the license provisioning - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string VcfLicenseProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)Property).VcfLicenseProvisioningState; } - /// 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; } @@ -1137,29 +1120,17 @@ this privateCloud networkBlock attribute. Make sure the CIDR format conforms to SerializedName = @"vcenterPassword", PossibleTypes = new [] { typeof(System.Security.SecureString) })] System.Security.SecureString VcenterPassword { get; set; } - /// License kind + /// The private cloud license [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"License kind", - SerializedName = @"kind", - PossibleTypes = new [] { typeof(string) })] - string VcfLicenseKind { get; } - /// The state of the license provisioning - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The state of the license provisioning", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] - string VcfLicenseProvisioningState { get; } + Description = @"The private cloud license", + SerializedName = @"vcfLicense", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense) })] + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense VcfLicense { get; set; } /// Azure resource ID of the virtual network [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -1363,11 +1334,6 @@ internal partial interface IPrivateCloudInternal : System.Security.SecureString VcenterPassword { get; set; } /// The private cloud license Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense VcfLicense { get; set; } - /// License kind - string VcfLicenseKind { get; set; } - /// The state of the license provisioning - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] - string VcfLicenseProvisioningState { get; set; } /// Azure resource ID of the virtual network string VirtualNetworkId { get; set; } /// Used for live migration of virtual machines diff --git a/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.PowerShell.cs b/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.PowerShell.cs index 96568bf6ce6d..d576500430d9 100644 --- a/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.PowerShell.cs +++ b/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.PowerShell.cs @@ -133,10 +133,6 @@ 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("VcfLicense")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcfLicense = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense) content.GetValueForProperty("VcfLicense",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcfLicense, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VcfLicenseTypeConverter.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); @@ -201,6 +197,10 @@ internal PrivateCloudProperties(global::System.Collections.IDictionary content) { ((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("VcfLicense")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcfLicense = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense) content.GetValueForProperty("VcfLicense",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcfLicense, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VcfLicenseTypeConverter.ConvertFrom); + } if (content.Contains("ManagementClusterHost")) { ((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)); @@ -229,10 +229,6 @@ internal PrivateCloudProperties(global::System.Collections.IDictionary content) { ((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("VcfLicenseKind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcfLicenseKind = (string) content.GetValueForProperty("VcfLicenseKind",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcfLicenseKind, global::System.Convert.ToString); - } if (content.Contains("ManagementClusterSize")) { ((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))); @@ -309,10 +305,6 @@ 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("VcfLicenseProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcfLicenseProvisioningState = (string) content.GetValueForProperty("VcfLicenseProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcfLicenseProvisioningState, 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); @@ -370,10 +362,6 @@ 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("VcfLicense")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcfLicense = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense) content.GetValueForProperty("VcfLicense",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcfLicense, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VcfLicenseTypeConverter.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); @@ -438,6 +426,10 @@ internal PrivateCloudProperties(global::System.Management.Automation.PSObject co { ((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("VcfLicense")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcfLicense = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense) content.GetValueForProperty("VcfLicense",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcfLicense, Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VcfLicenseTypeConverter.ConvertFrom); + } if (content.Contains("ManagementClusterHost")) { ((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)); @@ -466,10 +458,6 @@ internal PrivateCloudProperties(global::System.Management.Automation.PSObject co { ((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("VcfLicenseKind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcfLicenseKind = (string) content.GetValueForProperty("VcfLicenseKind",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcfLicenseKind, global::System.Convert.ToString); - } if (content.Contains("ManagementClusterSize")) { ((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))); @@ -546,10 +534,6 @@ 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("VcfLicenseProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcfLicenseProvisioningState = (string) content.GetValueForProperty("VcfLicenseProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal)this).VcfLicenseProvisioningState, 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); diff --git a/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.cs b/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.cs index f9dc9e76d8df..78720267eeff 100644 --- a/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.cs +++ b/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.cs @@ -294,15 +294,6 @@ public partial class PrivateCloudProperties : /// Internal Acessors for VcenterCertificateThumbprint string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.VcenterCertificateThumbprint { get => this._vcenterCertificateThumbprint; set { {_vcenterCertificateThumbprint = value;} } } - /// Internal Acessors for VcfLicense - Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.VcfLicense { get => (this._vcfLicense = this._vcfLicense ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VcfLicense()); set { {_vcfLicense = value;} } } - - /// Internal Acessors for VcfLicenseKind - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.VcfLicenseKind { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicenseInternal)VcfLicense).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicenseInternal)VcfLicense).Kind = value ?? null; } - - /// Internal Acessors for VcfLicenseProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.VcfLicenseProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicenseInternal)VcfLicense).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicenseInternal)VcfLicense).ProvisioningState = value ?? null; } - /// Internal Acessors for VmotionNetwork string Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IPrivateCloudPropertiesInternal.VmotionNetwork { get => this._vmotionNetwork; set { {_vmotionNetwork = value;} } } @@ -402,14 +393,6 @@ public partial class PrivateCloudProperties : [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Owned)] public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense VcfLicense { get => (this._vcfLicense = this._vcfLicense ?? new Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VcfLicense()); set => this._vcfLicense = value; } - /// License kind - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string VcfLicenseKind { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicenseInternal)VcfLicense).Kind; } - - /// The state of the license provisioning - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Origin(Microsoft.Azure.PowerShell.Cmdlets.VMware.PropertyOrigin.Inlined)] - public string VcfLicenseProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicenseInternal)VcfLicense).ProvisioningState; } - /// Backing field for property. private string _virtualNetworkId; @@ -934,29 +917,17 @@ this privateCloud networkBlock attribute. Make sure the CIDR format conforms to SerializedName = @"vcenterPassword", PossibleTypes = new [] { typeof(System.Security.SecureString) })] System.Security.SecureString VcenterPassword { get; set; } - /// License kind + /// The private cloud license [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, - ReadOnly = true, + ReadOnly = false, Read = true, Create = true, Update = true, - Description = @"License kind", - SerializedName = @"kind", - PossibleTypes = new [] { typeof(string) })] - string VcfLicenseKind { get; } - /// The state of the license provisioning - [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( - Required = false, - ReadOnly = true, - Read = true, - Create = false, - Update = false, - Description = @"The state of the license provisioning", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(string) })] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] - string VcfLicenseProvisioningState { get; } + Description = @"The private cloud license", + SerializedName = @"vcfLicense", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense) })] + Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense VcfLicense { get; set; } /// Azure resource ID of the virtual network [Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Info( Required = false, @@ -1111,11 +1082,6 @@ internal partial interface IPrivateCloudPropertiesInternal System.Security.SecureString VcenterPassword { get; set; } /// The private cloud license Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense VcfLicense { get; set; } - /// License kind - string VcfLicenseKind { get; set; } - /// The state of the license provisioning - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.PSArgumentCompleterAttribute("Succeeded", "Failed", "Canceled")] - string VcfLicenseProvisioningState { get; set; } /// Azure resource ID of the virtual network string VirtualNetworkId { get; set; } /// Used for live migration of virtual machines diff --git a/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.json.cs b/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.json.cs index 27c2ef8e7bab..9cca79a0b332 100644 --- a/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.json.cs +++ b/generated/VMware/VMware.Autorest/generated/api/Models/PrivateCloudProperties.json.cs @@ -83,7 +83,6 @@ internal PrivateCloudProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtim {_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;} - {_vcfLicense = If( json?.PropertyT("vcfLicense"), out var __jsonVcfLicense) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VcfLicense.FromJson(__jsonVcfLicense) : _vcfLicense;} {_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;} @@ -100,6 +99,7 @@ internal PrivateCloudProperties(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtim {_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;} + {_vcfLicense = If( json?.PropertyT("vcfLicense"), out var __jsonVcfLicense) ? Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.VcfLicense.FromJson(__jsonVcfLicense) : _vcfLicense;} AfterFromJson(json); } @@ -134,7 +134,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi 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 ); - AddIf( null != this._vcfLicense ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._vcfLicense.ToJson(null,serializationMode) : null, "vcfLicense" ,container.Add ); 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) { @@ -202,6 +201,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode ToJson(Mi 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 ); + AddIf( null != this._vcfLicense ? (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Json.JsonNode) this._vcfLicense.ToJson(null,serializationMode) : null, "vcfLicense" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs index 213f04dd1054..843ac27ee54a 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs @@ -466,6 +466,17 @@ public partial class NewAzVMwarePrivateCloud_CreateExpanded : global::System.Man PossibleTypes = new [] { typeof(System.Security.SecureString) })] public System.Security.SecureString VcenterPassword { get => _privateCloudBody.VcenterPassword ?? null; set => _privateCloudBody.VcenterPassword = value; } + /// The private cloud license + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The private cloud license")] + [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 private cloud license", + SerializedName = @"vcfLicense", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense) })] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense VcfLicense { get => _privateCloudBody.VcfLicense ?? null /* object */; set => _privateCloudBody.VcfLicense = 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)] diff --git a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs index c81a0ea319f3..767eb753bfd5 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs @@ -420,6 +420,17 @@ public partial class UpdateAzVMwarePrivateCloud_UpdateExpanded : global::System. PossibleTypes = new [] { typeof(System.Security.SecureString) })] public System.Security.SecureString VcenterPassword { get => _privateCloudBody.VcenterPassword ?? null; set => _privateCloudBody.VcenterPassword = value; } + /// The private cloud license + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The private cloud license")] + [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 private cloud license", + SerializedName = @"vcfLicense", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense) })] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense VcfLicense { get => _privateCloudBody.VcfLicense ?? null /* object */; set => _privateCloudBody.VcfLicense = value; } + /// The availability zones. [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The availability zones.")] @@ -774,6 +785,10 @@ private void Update_privateCloudBody() { this.Zone = (string[])(this.MyInvocation?.BoundParameters["Zone"]); } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("VcfLicense"))) + { + this.VcfLicense = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense)(this.MyInvocation?.BoundParameters["VcfLicense"]); + } if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("SkuName"))) { this.SkuName = (string)(this.MyInvocation?.BoundParameters["SkuName"]); diff --git a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs index e72aa6712745..18b4c1be700a 100644 --- a/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs +++ b/generated/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs @@ -380,6 +380,17 @@ public partial class UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded : glob PossibleTypes = new [] { typeof(System.Security.SecureString) })] public System.Security.SecureString VcenterPassword { get => _privateCloudBody.VcenterPassword ?? null; set => _privateCloudBody.VcenterPassword = value; } + /// The private cloud license + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The private cloud license")] + [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 private cloud license", + SerializedName = @"vcfLicense", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense) })] + public Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense VcfLicense { get => _privateCloudBody.VcfLicense ?? null /* object */; set => _privateCloudBody.VcfLicense = value; } + /// The availability zones. [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The availability zones.")] @@ -754,6 +765,10 @@ private void Update_privateCloudBody() { this.Zone = (string[])(this.MyInvocation?.BoundParameters["Zone"]); } + if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("VcfLicense"))) + { + this.VcfLicense = (Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense)(this.MyInvocation?.BoundParameters["VcfLicense"]); + } if ((bool)(true == this.MyInvocation?.BoundParameters.ContainsKey("SkuName"))) { this.SkuName = (string)(this.MyInvocation?.BoundParameters["SkuName"]); diff --git a/generated/VMware/VMware.Autorest/internal/New-AzVMwarePrivateCloud.ps1 b/generated/VMware/VMware.Autorest/internal/New-AzVMwarePrivateCloud.ps1 index 6548f9ff7f1d..88a4c11b8b32 100644 --- a/generated/VMware/VMware.Autorest/internal/New-AzVMwarePrivateCloud.ps1 +++ b/generated/VMware/VMware.Autorest/internal/New-AzVMwarePrivateCloud.ps1 @@ -236,6 +236,12 @@ param( # Optionally, set the vCenter admin password when the private cloud is created ${VcenterPassword}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense] + # The private cloud license + ${VcfLicense}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String] diff --git a/generated/VMware/VMware.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/VMware/VMware.Autorest/internal/ProxyCmdletDefinitions.ps1 index 8f1b4c9dfdd3..5e3ce7e4b272 100644 --- a/generated/VMware/VMware.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/VMware/VMware.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -4548,6 +4548,12 @@ param( # Optionally, set the vCenter admin password when the private cloud is created ${VcenterPassword}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IVcfLicense] + # The private cloud license + ${VcfLicense}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.VMware.Category('Body')] [System.String]